WiFi not working

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?

I think so, the wifi interrupt pin can not be shared

It would be good to have any internal GPIO documented so that we can design with knowing what we can and cannot do. :slight_smile:

[EDIT] I know we have schematics, but I simple page with details would be more suitable.

1 Like

I checked the schematic for the SCM20260E and I could not find any reference to any IO interrupts that would conflict with PI4.

Any clues GHI?

I thought you use Px4 interrupt somewhere, seem I am wrong.

Try to test with PA4, PB4… any Px4 but other than PI4 to see if issue happened?

If issue happened mean your code use Px4 for interrupt somewhere.
If not seem only PI4 have problem and let us know so we can start investigation.

Hi Dat, I only have 2 interrupts in total, 1 for the WiFi module, originally on PI4 and now on PH10 and 1 for the touch on PC2.

I don’t have any other Px4 pins wire for anything except GPIO as input or output.

what I mean is try to connect WIFI interrupt pin to any other GPIO with Px4, using external wire.
Another thing I would like to test is, can you control PI4? I mean set it high or low, does it work?