2023-11-20 07:40 AM
Hello everyone,
I'm trying to use the Wifi module MXCHIP EMW3080 from the STWBXCS1 so I want to start from this example on a B-U585I-IOT2A since these boards share the same µC and Wifi module.
I think I just need to change the use of SPI2 for wifi control in the original project, to SPI1 on my board.
I have changed yet :
For the clock of the SPI I chose PCLK2 with a prescaler of 8.
It is still not working as expected because it waits indefinitely for the Flow signal to be raised by the Wifi module.
Did I forget something ? or is the principle of trying to adapt a code made for another board simply wrong?
Thans for your help!
Solved! Go to Solution.
2023-12-05 06:06 AM
I ended up using this code instead and had the same problem but the documentation included said that the firmware of the MXChip needed to be upgraded. After this operation it worked, so I believe the old firmware was the reason why it did not work with the code I was trying to use.
2023-11-20 12:07 PM
Make sure the "enable" pin of the wi-fi chip is in correct state. It may have a reset pin as well, check all such pins.
2023-11-22 06:02 AM - edited 2023-11-22 07:10 AM
The enable pin of the Wifi module is always 3.3V which means that it is never active since it is programed to be active low. The CS pin is high for about a second during the init. Where can I find a description of the signals needed to initialize the module, it is not provided in its datasheet.
2023-11-22 11:48 AM - edited 2023-11-22 11:50 AM
Maybe here you'll find the details: https://github.com/STMicroelectronics/mx_wifi/blob/bed77942481efd19c776e28de1e2ba686bb9c9ff/io_pattern/mx_wifi_spi.c#L89
Otherwise, google ask chatgpt, it knows everything.
2023-12-05 06:06 AM
I ended up using this code instead and had the same problem but the documentation included said that the firmware of the MXChip needed to be upgraded. After this operation it worked, so I believe the old firmware was the reason why it did not work with the code I was trying to use.