CYW4373E(LAIRD STERLING LWB5+) wifi host driver timed out when waiting for F2 to be ready

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
HarveyZ
Level 2
Level 2
First solution authored 5 sign-ins 10 replies posted

Hardware: STM32H743 Nucleo connects to CYW4373E via SDIO

Software: https://github.com/Infineon/stm32-connectivity/releases/tag/release-v1.3.0 tailored to the above host

After fixing a few issues in the above software package already, I got the SDIO communication up and running. The wifi firmware downloading passed successfully. But then it stuck in checking F2 to be ready.

Here is the code from the github repository:

/* Wait for F2 to be ready */
loop_count = 0;
while ( ( (result = whd_bus_read_register_value(whd_driver, BUS_FUNCTION, SDIOD_CCCR_IORDY, (uint8_t)1,
&byte_data) ) == WHD_SUCCESS ) &&
( (byte_data & SDIO_FUNC_READY_2) == 0 ) &&
(loop_count < (uint32_t)F2_READY_TIMEOUT_MS) )
{
(void)cy_rtos_delay_milliseconds( (uint32_t)1 ); /* Ignore return - nothing can be done if it fails */
loop_count++;
}
if (loop_count >= (uint32_t)F2_READY_TIMEOUT_MS)
{
/* If your system fails here, it could be due to incorrect NVRAM variables.
* Check which 'wifi_nvram_image.h' file your platform is using, and
* check that it matches the WLAN device on your platform, including the
* crystal frequency.
*/
WPRINT_WHD_ERROR( ("Timeout while waiting for function 2 to be ready\n") );
/* Reachable after hitting assert */
return WHD_TIMEOUT;
}

0 Likes
1 Solution
Rakesh_BG
Moderator
Moderator
Moderator
50 solutions authored 100 replies posted 100 sign-ins

Hi,

There might be a chance of no external LPO for clock source or power source issue.

Thanks,

Rakesh B G

 

View solution in original post

0 Likes
3 Replies
Rakesh_BG
Moderator
Moderator
Moderator
50 solutions authored 100 replies posted 100 sign-ins

Hi @HarveyZ ,

Was your setup working previously with any old releases of stm32 connectivity expansion pack?

Thanks,

Rakesh B G

0 Likes

 

Hi @Rakesh_BG , 

We are evaluating this module/chip and it's the first time we are trying to integrate it to our host environment. So we need help from the very beginning.

When I search in the forum this was a similar thread but unfortunately the solution was not posted.

https://community.infineon.com/t5/AIROC-Wi-Fi-and-Wi-Fi-Bluetooth/Wi-Fi-module-Murata-Type-1LV-CYW43...

 

0 Likes
Rakesh_BG
Moderator
Moderator
Moderator
50 solutions authored 100 replies posted 100 sign-ins

Hi,

There might be a chance of no external LPO for clock source or power source issue.

Thanks,

Rakesh B G

 

0 Likes