Jul 23, 2013
10:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 23, 2013
10:54 AM
We have recently ported WICED, WWD and LwIP to use u-Velocity. All components seem to work correctly. Our issue is with the firmware programming part of the chip bringup. After the firmware is downloaded and the NVRAM image is downloaded, the function wiced_download_firmware waits for the WLAN component to come back up. At least that is what the comments in the code says. Any clue why the WLAN component would successfully download the firmware and NVRAM but not correctly come back up?Here is the code snippet that always timesout:
/* Wait until the High Throughput clock is available */ loop_count = 0; while ( ( ( result = wiced_read_register_value( BACKPLANE_FUNCTION, SDIO_CHIP_CLOCK_CSR, (uint8_t) 1, &csr_val ) ) == WICED_SUCCESS ) && ( ( csr_val & SBSDIO_HT_AVAIL ) == 0 ) && ( loop_count < (uint32_t) HT_AVAIL_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) HT_AVAIL_TIMEOUT_MS ) { /* If your system times out here, it means that the WLAN firmware is not booting. * Check that your WLAN chip matches the wifi_image.c being built - in GNU toolchain, $(CHIP) * makefile variable must be correct. */ WPRINT_WWD_ERROR(("Timeout while waiting for high throughput clock")); return WICED_TIMEOUT; }
Solved! Go to Solution.
Labels
- Labels:
-
SPI
- Tags:
- $chip
- &csr_val
- aw-ah663
- back
- bcm4330
- booting
- built
- check
- chip
- clockrn
- code
- component
- correct
- correctly
- csr_val
- downloaded
- fails
- firmware
- high
- host_rtos_delay_milliseconds
- ht_avail_timeout_ms
- ignore
- issue
- loop_count
- loop_count++
- makefile
- matches
- means
- nvram
- ported
- recently
- return
- sbsdio_ht_avail
- sdio_chip_clock_csr
- system
- throughput
- times
- toolchain
- uint32_t
- uvel
- variable
- void
- waiting
- wiced
- wiced+wwd+lwip
- wiced_success
- wiced_timeout
- wifi_image.c
- wlan
- wprint_wwd_errortimeout
1 Solution
Nov 26, 2013
04:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 26, 2013
04:31 PM
Sorry for the delayed reply.We switched to a BCM43362 and our port of WWD and LWIP worked correctly with wiced.Thanks.
2 Replies
Anonymous
Not applicable
Sep 04, 2013
06:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep 04, 2013
06:21 PM
WICED currently does not provide a WLAN firmware image compatible with the BCM4330. Are you using the 43362 image or have you sourced a 4330 image from elsewhere?Without the correct image the WLAN chip will not boot up even though the firmware and NVRAM are sucessfully downloaded.
Nov 26, 2013
04:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 26, 2013
04:31 PM
Sorry for the delayed reply.We switched to a BCM43362 and our port of WWD and LWIP worked correctly with wiced.Thanks.