How to tune wifi_nvram_image.h? OR Why F2 is not ready?
rzec_3016261 Jan 16, 2019 4:05 AMHallo all,
Still debugging our own platform.
Hardware:
- my own (STM32F756 + CYW4343WKUBG)
- bus used == SDIO
Software:
- WICED-Studio-6.2-SDK
- no IDE, just makefiles [ ./make snip.scan-MYPLF-FreeRTOS-LwIP download run ]
Try to initialize our board, but now I'm stuck in
./WICED/WWD/internal/bus_protocols/SDIO/wwd_bus_protocol.c at
while ( ( ( result = wwd_bus_read_register_value( BUS_FUNCTION, SDIOD_CCCR_IORDY, (uint8_t) 1, &byte_data ) ) == WWD_SUCCESS ) &&
( ( byte_data & SDIO_FUNC_READY_2 ) == 0 ) &&
( loop_count < (uint32_t) F2_READY_TIMEOUT_MS ) )
{
(void) host_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.
*/
(BTW: byte_data == SDIO_FUNC_READY_1 at this point)
So the suggestion is that we should tune the wifi_nvram_image.h file to match our platform but answers in these links suggest don't touch the wifi_nvram_image.h file:
- https://community.cypress.com/thread/1187
- https://community.cypress.com/thread/1806
In this link https://community.cypress.com/community/wiced-wifi/wiced-wifi-forums/blog/2018/10/10/stm32f469-porting-in-wiced it states:
c. wifi_nvram_image.h: This is the nvram file for the WLAN module. This is supplied by the module partner.
However if we compared the wifi_nvram_image.h file included in the WICED-Studio-6.2-SDK platforms with a similar chip set:
WLAN_CHIP := 4343W
WLAN_CHIP_REVISION := A1
WLAN_CHIP_FAMILY := 4343x
BT_CHIP := 43438
BT_CHIP_REVISION := A1
BT_CHIP_XTAL_FREQUENCY := 37_4MHz
- BCM94343WWCD2 (26MHZ)
- CY8CKIT_062 (37_4MHZ)
- NEB1DX_01 (37_4MHZ)
Comparing 1,2 and 3 shows they are all different, parameters are included or excluded or have different values.
Same chip set but different wifi_nvram_image.h. We tried them all but no luck. Does not make sense...
We have designed our own platform with the same chip-set (4343W) and need (?? or not) to change/match the wifi_nvram_image.h file. Question is how?
We have no idea what each parameter means ( besides the xtalfreq= ).
Or are there any other suggestion why F2 is not ready?
Used: GLOBAL_DEFINES += SLOW_SDIO_CLOCK
This looks like a similar questions:
- https://community.cypress.com/message/22196
- https://community.cypress.com/message/24685
both unanswered.