cancel
Showing results for 
Search instead for 
Did you mean: 

unable to bootup CYW4373 (2BC/2AE) with STM32L4R9.

_uttam
Associate

Hi

I'm using STM32L4R9 (I have L4R9I-Eval and on my custom board I am using STM32L4S9ZIJ6) with CYW4373 (I am using EAR00436 and its uSD Adapter, which use 2BC module from Murata which is also mounted directly on my custom board), with ThreadX and NetX Duo. I am configuring the driver on STM32Cube IDE and using the Manage Software Packs in IOC file viewer and selecting Infineon Wi-Fi Drivers with the below specs:

 

_uttam_0-1716294942274.png_uttam_1-1716295060072.png

 

I connected the module on the uSD slot on the devboard using uSD adaptor and followed the guide here(point 8 in this guide). I'm unable to boot up the WiFi module this way, I am encountering the following error:

chip ID: 17267
whd_bus_sdio_cmd53:1088 cyhal_sdio_bulk_transfer SDIO_BLOCK_MODE failed
whd_bus_sdio_download_resource: Failed to write firmware image
Bus common resource download failed, whd_bus_write_wifi_firmware_image failed at 298
Failed to load wifi firmware
WLAN FW download size: 598311 bytes
WLAN FW download time: 28670 ms
SDIO firmware download error, whd_bus_sdio_init failed at 552
Could not initialize bus
Could not initialize wifi platform
0004 00:00:29.160 Error in initializing primary interface !!

0005 00:00:29.180 Error : Initializing Wi-Fi interface

Then I tried by removing the power supply to the uSD Adaptor and plugging it back in during WiFi initialization, which allows for a successful boot-up. Below are the logs:

chip ID: 17267
WLAN FW download size: 598311 bytes
WLAN FW download time: 10880 ms
Enabling FW Capabilities: sae
WLAN MAC Address : DC:FE:23:35:4F:9C
WLAN Firmware : wl0: Aug 3 2022 20:28:09 version 13.10.246.286 (4b0a74a CY) FWID 01-149d4809
WLAN CLM : API: 18.1 Data: Murata.Type2AE Compiler: 1.35.0 ClmImport: 1.39.1 Customization: v3 23/02/09 Creation: 2023-02-09 04:01:47
: 2023-10-19 03:48:22 -050099
0004 00:00:15.390 cy_get_olm_instance
0005 00:00:15.400 Off loads not configured.

This is for boot up. After bootup (using 2nd method), I was still unable to connect the Module to a given access point(in this case my mobile hotspot). I think the module is connecting to wifi but not getting an IP address and on the mobile it shows a device is connected but fails to get any device info . Following are the logs in this case: 

TEST message: always print.
0000 00:00:00.120 TEST message: ERR
0001 00:00:00.130 TEST message: WARNING
0002 00:00:00.140 TEST message: NOTICE
0003 00:00:00.150 DRIVER message: ERR
chip ID: 17267
WLAN FW download size: 598311 bytes
WLAN FW download time: 11110 ms
Enabling FW Capabilities: sae
WLAN MAC Address : DC:FE:23:35:4F:9C
WLAN Firmware: wl0: Aug 3 2022 20:28:09 version 13.10.246.286 (4b0a74a CY) FWID 01-149d4809
WLAN CLM : API: 18.1 Data: Murata.Type2AE Compiler: 1.35.0 ClmImport: 1.39.1 Customization: v3 23/02/09 Creation: 2023-02-09 04:01:47
WHD VERSION : 3.2.1.21799 : master dev-v3.2.1 : GCC 12.3 : 2023-10-19 03:48:22 -0500
0004 00:00:14.420 cy_get_olm_instance
0005 00:00:14.430 Off loads not configured

Here we try to connect to access point Test_AP.:
0006 00:00:17.440 wcm mutex locked ../Middlewares/Third_Party/Infineon_Wireless_Connectivity/wifi-connection-manager/source/cy_wcm.c 1281
0007 00:00:17.530 wcm mutex unlocked ../Middlewares/Third_Party/Infineon_Wireless_Connectivity/wifi-connection-manager/source/cy_wcm.c 1314
Scan result: channel=0 signal=-40 ssid=Test_AP bssid=ee:6b:1e:48:8f:d5
0008 00:00:17.950 wcm mutex locked ../Middlewares/Third_Party/Infineon_Wireless_Connectivity/wifi-connection-manager/source/cy_wcm.c 1237
0009 00:00:17.980 wcm mutex unlocked ../Middlewares/Third_Party/Infineon_Wireless_Connectivity/wifi-connection-manager/source/cy_wcm.c 1266
0010 00:00:18.040 connected_ap_details.keylen:0
0011 00:00:18.050 wcm mutex locked ../Middlewares/Third_Party/Infineon_Wireless_Connectivity/wifi-connection-manager/source/cy_wcm.c 1400
0012 00:00:18.150 Notify connection status = 0!
Unable to adjust header space
Unable to adjust header space
Unable to adjust header space
Unable to adjust header space
Unable to adjust header space
0013 00:02:01.910 failed to bring up the network stack
0014 00:02:01.930 Failed to bring up the network stack
0015 00:02:01.940 wcm mutex unlocked ../Middlewares/Third_Party/Infineon_Wireless_Connectivity/wifi-connection-manager/source/cy_wcm.c 1710
Connection Failed
0016 00:02:01.980 Notify connection status = 2!

Please Help me with the boot up issue and connect Wi-Fi module to given access point.

Regards,

Uttam

1 REPLY 1
STea
ST Employee

Hello @_uttam ,

After checking the Infineon/AIROC github repo you can see that the STM32L4 series of MCUs including STM32L4R9 are not supported for your module. 

image (1).png

BR 

 

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.