I have an issue with a ATWINC1510 based custom board not connecting and hanging the system. I have another custom board using a Microe click version of the ATWINC1510 and the wiring is the same. On the click based board everything works using a modified version of the sample code.
Hardware is the SCM20260E for both boards and wired to SPI2.
Both init and wifi handling are done from a Thread as part of the UI based system. The init code is called from the wifithread after 1.5 seconds delay. All of the initialising of the network is fine and I can use the ATWINC1510 commands to read the version number so the SPI interface to the device is working. My debug shows how far it gets.
Network hardware ready
Supported firmware version #1: 19.5.4.15567
Wifi Firmware = #19.5.4.15567
Starting Networking
Network started
Network started is displayed after the call to networkController.Enable() returns. All code after this runs sluggish and the UI thread is never updated.
If I single step up to the .Enable() call, everything runs fine. As soon as I single step the Enable() function, the system runs very slow and debugging becomes sluggish. I have to reset the board to to get Visual Studio to recover.
I have replaced the WiFi module thinking there was an error with it but exact same issue.
The IO is allocated as follows:
PI4 interrupt
PG10 wifi reset
PE4 wifi chip select
PD4 wifi enable
SPI2
[EDIT] I just moved the interrupt from PI4 to PH10 and now it is all working. I know there is a limitation on the interrupts not being able to share if the same index BUT I have no other interrupts as part of this design. Is there an internal interrupt causing this?