Initializes LBWA1ZZVK7-539,dead in waiting for the chip interrupt., and MSP430 enable pin is high , interrupt pin is configurated input
what caused the accident? hardware or software?
Well, the problem is there is no (ReadWlanInterruptPin) INTERRUPTS on WIFI_SPI_INT during start wlan function, please see below fragment codes:
void wlan_start(unsigned short usPatchesAvailableAtHost)
{
unsigned long ulSpiIRQState;
//
// Allocate the memory for the RX/TX data transactions: the maximal length is
// of the 1700 bytes
//
tSLInformation.pucTxCommandBuffer = wlan_tx_buffer;
//
// init spi
//
SpiOpen(SpiReceiveHandler);
//
// Check the IRQ line
//
ulSpiIRQState = tSLInformation.ReadWlanInterruptPin();
//
// ASIC 1273 chip enable: toggle WLAN EN line
//
tSLInformation.WriteWlanPin( WLAN_ENABLE );
if (ulSpiIRQState)
{
//
// wait till the IRQ line goes low
//
while(tSLInformation.ReadWlanInterruptPin() != 0)
{
}
}
else
{
//
// wait till the IRQ line goes high and than low
//
while(tSLInformation.ReadWlanInterruptPin() == 0) // Now, this became the infinite loop, it was caused there is no interrupts on P3.7!
{
}
while(tSLInformation.ReadWlanInterruptPin() != 0)
{
}
}
…
long ReadWlanInterruptPin(void)
{
return (P2IN & BIT3);
}