B-L4S5I-IOT01A - Cannot interface with onboard Wi-Fi chip
Hello,
So I bought a B-L4S5I-IOT01A with the intention to use it as a MQTT device to send and receive data. My problem is that i cannot communicate with the on board Wi-Fi chip "STM32_IWIN_WIFI_V2". Here's what I did :
1- I create a project with STM32CubeMX for STM32CubeIDE, and added FreeRTOS (because I plant to use it in my finished project), and initialized all the peripherals to default. And made sure that UART3 (the Wi-Fi chip com port) was configured with the proper default parameters.
2- Then I added a library called "STM32_IWIN_WIFI_V2" that I found on the Wi-Fi chip manufacturer web site. It's basically a UART wrapper to help interface with the chip. Originally this library is meant for STM32F4, but since it only called HAL_UART so I went ahead and modified #include for STM32L4.
3 - I used a demo program supposed to connect to a Wi-Fi network and post messages about it on the StLink uart port.
4- It didn't work... The MCU could not established UART communication with Wi-Fi chip.
5- After debugging, I tried to send basic AT comment to the Wi-Fi chip by using directly HAL_UART to send and receive commands. I didn't work either.
6- I got frustrated and hooked up an oscilloscope on the Wi-Fi chip's uart Tx port and got two jeberrish UART packets that does not seem to make sense. And the communication did not respond to Rx packets sent from the MCU at every 0,5 seconds.
At this point, I ran out of Idea, If you have any idea on what could be the problem or if you have suggestions I would very much appreciate it!
Thanks you for your time !
