Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: Porting CC3000 to PIC32

$
0
0

Hi Shlomi,

all right, I think I have now an idea how the driver works. I have made my driver implementation completly new with the latest version. The log with a logic analyser showed me that the IRQ comes from the module but my controller did not response to it. With a little modification in the function SpiWrite(), the initDriver() function runs properly:

        while (sSpiInformation.ulSpiState != eSPI_STATE_IDLE)
        {
            ;
        }

        
        sSpiInformation.ulSpiState = eSPI_STATE_WRITE_IRQ;
        sSpiInformation.pTxPacket = pUserBuffer;
        sSpiInformation.usTxPacketLength = usLength;
        
//PIC32 driver modificaton: swap ASSERT_CS() and tSLInformation.WlanInterruptEnable()
        //
        // Assert the CS line and wait till SSI IRQ line is active and then initialize write operation
        //
//        ASSERT_CS();  
        tSLInformation.WlanInterruptEnable();
        //
        // Re-enable IRQ - if it was not disabled - this is not a problem...
        //
//        tSLInformation.WlanInterruptEnable();
        ASSERT_CS();
    }

So far so good. But now I have a issue with the StartSmartConfig() function. The LED does not stop blinking! I use the prefix as in the example "TTT" and send out the Probe TTT6ULMnet2Microchip with a win7 laptop. The router has WPA security with the key Microchip. The attempt  with a smart phone as hotspot also failed.

Any suggestions?

thx, Joerg


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>