STM32H7BI3-DK WiFi Not Working
- November 29, 2021
- 3 replies
- 2881 views
Hi,
I have been writing drivers for the ISM43341-M4G-L44-SPI WiFi module mounted on the STM32H7BI3-DK.
I can send the device AT commands and get back the OK response, but after setting the network parameters SSID, password, security mode, DHCP after issuing the Join Network command "C0" the module ready line goes low and never sets back to ready.
Overall Response of C0 Cmd
SPI Bus Detail of C0 Cmd
I sent an "I?" command to find the software revision of the WiFi Module and this works fine:
When I use the "I?" command to retrieve the Revision Information using the "RM" command I get:
{ISM43341-M4G-L44-SPI,C3.5.2.6.STM,v3.5.2,v1.4.0.rc1,v8.2.1,144000000, Inventek eS-WiFi
OK
>}
The curly brackets I have added for clarity.
So I am confident the SPI bus is working OK
I have written to the manufacturer of the WiFi module (Inventek), but haven't heard back yet?
I've used a couple of AT WiFi modules, LPB100 and one I can't remember the part number fo in the past both of which used a serial port for processor side comms without any difficulties so I am at a loss why I can't get the Inventek one to work.
Any how I have attached my project to this post. It uses the Cube IDE and should NOT work out of the box.
I had to use a modified HAL Spi driver for the Transmit-Receive. As I am using DMA and the SPI peripheral NSS signal is not wired to the WiFi module you have to use PA11 the HAL_SPI_TransmitReceive function doesn't enable the end of frame interrupt which is required to control the surrogate NSS pin. (I wish the writers of HAL would provide control over the interrupts through the SPI handle so the applications programmer has options.)
In any event I really have only one question: Why doesn't it work.
Hoping someone has more luck than I did. Two days work and nothing to show for it.
Best regards
Rob