Wi-Fi Combo Forum Discussions
After a "make clean", building the ota_fr sample application, or for that matter any application with target "download_apps", results in a crash of the make. Host is Linux kubuntu 64-bit. Running as root or for the BCM943362WCD4 target results in the same crash.
Showing below the last few output lines of the command:
WICED-SDK-3.1.2$ ./make snip.ota_fr-BCMUSI14 JTAG=Olimex_ARM-USB-TINY-H VERBOSE=1 download download_apps run
....
,...
Making snip_ota_fr-BCMUSI14.elf
"./tools/ARM_GNU/bin/Linux64/arm-none-eabi-g++" --static -Wl,-static -Wl,--warn-common -o build/snip_ota_fr-BCMUSI14/binary/snip_ota_fr-BCMUSI14.elf @build/snip_ota_fr-BCMUSI14/binary/link.opts
"./tools/common/Linux64/echo"
"/usr/bin/perl" ./tools/mapfile_parser/map_parse_gcc.pl -a build/snip_ota_fr-BCMUSI14/binary/snip_ota_fr-BCMUSI14.map > build/snip_ota_fr-BCMUSI14/binary/snip_ota_fr-BCMUSI14_map.csv
"./tools/ARM_GNU/bin/Linux64/arm-none-eabi-strip" -o build/snip_ota_fr-BCMUSI14/binary/snip_ota_fr-BCMUSI14.stripped.elf build/snip_ota_fr-BCMUSI14/binary/snip_ota_fr-BCMUSI14.elf
"/usr/bin/perl" ./tools/mapfile_parser/map_parse_gcc.pl build/snip_ota_fr-BCMUSI14/binary/snip_ota_fr-BCMUSI14.map
echo Making snip_ota_fr-BCMUSI14.bin
Making snip_ota_fr-BCMUSI14.bin
"./tools/ARM_GNU/bin/Linux64/arm-none-eabi-objcopy" -O binary -R .eh_frame -R .init -R .fini -R .comment -R .ARM.attributes build/snip_ota_fr-BCMUSI14/binary/snip_ota_fr-BCMUSI14.stripped.elf build/snip_ota_fr-BCMUSI14/binary/snip_ota_fr-BCMUSI14.bin
snip_ota_fr-BCMUSI14
----------------------------------|---------|---------|
| | Static |
Module | Flash | RAM |
----------------------------------+---------+---------|
App | 293 | 0 |
base64 | 518 | 0 |
DHCP_Server | 1510 | 132 |
DNS | 64 | 44 |
Host MCU-family library | 14411 | 2484 |
Interrupt Vectors | 424 | 0 |
libc | 33976 | 3136 |
Networking | 3658 | 14318 |
NetX | 54658 | 536 |
NetX-Duo - Interfaces & Stacks | 0 | 12 |
OTA_Server | 8239 | 676 |
Packet Buffers | 0 | 23142 |
platform | 1300 | 168 |
RAM Initialisation | 2416 | 0 |
resources | 16 | 0 |
Ring_Buffer | 92 | 0 |
SPI_Flash_Library_BCMUSI14 | 636 | 0 |
Startup Stack & Link Script fill | 22 | 4 |
Supplicant - BESL | 89988 | 516 |
ThreadX | 9168 | 396 |
Wi-Fi Firmware | 213212 | 0 |
WICED | 2843 | 820 |
WWD | 13416 | 1112 |
----------------------------------+---------+---------|
TOTAL (bytes) | 448444 | 47496 |
----------------------------------|---------|---------|
"./tools/common/Linux64/mkdir" -p build/eclipse_debug/
echo Downloading Bootloader ...
Downloading Bootloader ...
"./tools/OpenOCD/Linux64/openocd-all-brcm-libftdi" -f ./tools/OpenOCD/Olimex_ARM-USB-TINY-H.cfg -f ./tools/OpenOCD/stm32f2x.cfg -f ./tools/OpenOCD/stm32f2x-flash-app.cfg -c "verify_image_checksum build/waf_bootloader-NoOS-NoNS-BCMUSI14-SDIO/binary/waf_bootloader-NoOS-NoNS-BCMUSI14-SDIO.stripped.elf" -c shutdown >> build/openocd_log.txt 2>&1 && echo No changes detected && "./tools/common/Linux64/echo" || "./tools/OpenOCD/Linux64/openocd-all-brcm-libftdi" -f ./tools/OpenOCD/Olimex_ARM-USB-TINY-H.cfg -f ./tools/OpenOCD/stm32f2x.cfg -f ./tools/OpenOCD/stm32f2x-flash-app.cfg -c "flash write_image erase build/waf_bootloader-NoOS-NoNS-BCMUSI14-SDIO/binary/waf_bootloader-NoOS-NoNS-BCMUSI14-SDIO.stripped.elf" -c shutdown >> build/openocd_log.txt 2>&1 && echo Download complete && "./tools/common/Linux64/echo" || echo "**** OpenOCD failed - ensure you have installed the driver from the drivers directory, and that the debugger is not running **** In Linux this may be due to USB access permissions. In a virtual machine it may be due to USB passthrough settings. Check in the task list that another OpenOCD process is not running. Check that you have the correct target and JTAG device plugged in. ****"
Segmentation fault (core dumped)
make: *** [main_app] Error 139
marco@kubuntu:~/fogsense/WICED-SDK-3.1.2$ file core
core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from './tools/common/Linux64/make -r -j4 -f ./tools/makefiles/wiced_elf.mk snip/ota_f'
Please advise.
Thanks,
-Marco G.
Show LessI'm trying to build the ota_fr app for the BCM943362WCD4 evaluation board but when I run the target that comes pre-loaded in the SDK (3.1.2) it completes the application build but when its trying to build s returns this error:
Building Serial Flash Image
make[1]: ./tools/makefiles/mfg_image.mk: No such file or directory
make[1]: *** No rule to make target `./tools/makefiles/mfg_image.mk'. Stop.
make: *** [sflash_image] Error 2
Are there any missing files that are needed to complete building this snippet?
Thanks
Show LessHi All:
When the target of waf_bootloader-NoOS-NoNS-BCM943362WCD4-SDIO has been made, the DCT.bin file has been made in the same time. But I can'n find the resource files are related to DCT.bin.
Show LessHi,
Is there a reason why we can't use the Cortex M3 on the Wi-Fi module to compile our host application which is less than 50K?
It just seems that with such a powerful MCU on the Wi-Fi module, we should be able to do much more with it. What am I missing?
Show LessHi,
I have been using WICED smartbridge for some product development. I'm using both WiFi and BTLE modules. Now, I would like to build proto boards for which on board debugger and programmer is needed as it is in case of WICED smart bridge. So, I can distribute the boards to various teams for further development. To save cost and time, I'm thinking to retain same FTDI chip on the breakable or extension board to support on board USB to JTAG interface to WiFi and BTLE modules.
I purchased one ST-LINK debugger, but I'm unable to use it. Also the tool is expensive to buy 20 to 25 units. I need your support in configuring FT2232H to mimic similar function as in case of WICED smartbridge to continue using Broadcom's SDK. This will help me build common platform for future developments.
Please suggest a solution.
Basavaraj
Show LessTest on SDK-3.1.1/FreeRTOS+LwIP/on 4390.
My device is running as AP.
Sometimes the device fails to boot due to wiced_network_up() fails.
result = wiced_network_up(WICED_AP_INTERFACE, WICED_USE_INTERNAL_DHCP_SERVER, &ap_ip_settings);
wiced_network_up() returns 2 (TIMEOUT)
->wwd_wifi_start_ap() returns 2 (TIMEOUT)
-> wwd_wifi_ap_init() returns 2
My debug code shows it fails in below lines:
151 CHECK_RETURN_WITH_SEMAPHORE( wwd_management_set_event_handler( apsta_events, wwd_handle_apsta_event, NULL, WWD_AP_INTERFACE ), &wwd_wifi_sleep _flag );
152
153 /* Set AP mode */
154 data = (uint32_t*) wwd_sdpcm_get_ioctl_buffer( &buffer, (uint16_t) 4 );
155 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE( data, &wwd_wifi_sleep_flag );
156 *data = 1; /* Turn on AP */
157 CHECK_RETURN_WITH_SEMAPHORE( wwd_sdpcm_send_ioctl( SDPCM_SET, WLC_SET_AP, buffer, 0, WWD_AP_INTERFACE ), &wwd_wifi_sleep_flag );
I did retry a few times, then
The first error happens at line 151.
The second retry still fails at line 157.
The third time retry hang up completely... (It passes line 151, then hang up)
Just hit reset button a few times to test this issue, it's pretty easy to reproduce this problem.
Generally, the boot failure rate is about 1/6.
Show LessI want to use the BCM43341 as BLE Peripheral, is there any API that I can use?
I'm looking for the pinout for the J7 header on this evaluation board but can only find schematics for the BCM94390WCD2 module. Where can I find schematics for this EVB?
Regards,
Hugh
Show LessDownload errors for Murata SN8205 wiced 3.1.2 snip.ota_fr
It seems these are undefined:
FR_APP_SECTOR_START
DCT_IMAGE_SECTOR_START
SDK version 3.1.2
Murata SN8205x EVK
**** Build of configuration Default for project Wiced-SDK ****
C:\WICED\WICED-SDK-3.1.2\Wiced-SDK\make.exe snip.ota_fr-SN8205x download download_apps run
Making .gdbinit
Building Bootloader
Building Serial Flash Loader App
Finished Building Bootloader
waf_sflash_write-NoOS-NoNS-SN8205x-SDIO
----------------------------------|---------|---------|
| | Static |
Module | Flash | RAM |
----------------------------------+---------+---------|
App | 0 | 21138 |
Host MCU-family library | 0 | 12558 |
Interrupt Vectors | 0 | 424 |
Other | 0 | 548 |
platform | 0 | 888 |
Ring_Buffer | 0 | 36 |
SPI_Flash_Library_SN8205x | 0 | 748 |
Startup Stack & Link Script fill | 0 | 486 |
WWD | 0 | 142 |
----------------------------------+---------+---------|
TOTAL (bytes) | 0 | 36968 |
----------------------------------|---------|---------|
Build complete
Finished Building Serial Flash Loader App
snip_ota_fr-SN8205x
----------------------------------|---------|---------|
| | Static |
Module | Flash | RAM |
----------------------------------+---------+---------|
App | 269 | 0 |
base64 | 518 | 0 |
DHCP_Server | 1510 | 132 |
DNS | 64 | 44 |
Host MCU-family library | 14280 | 2740 |
Interrupt Vectors | 424 | 0 |
libc | 223 | 4 |
Networking | 3658 | 14318 |
NetX | 54658 | 536 |
NetX-Duo - Interfaces & Stacks | 0 | 12 |
OTA_Server | 8235 | 676 |
Other | 33734 | 2332 |
Packet Buffers | 0 | 23142 |
platform | 1024 | 176 |
RAM Initialisation | 2424 | 0 |
resources | 16 | 0 |
Ring_Buffer | 92 | 0 |
SPI_Flash_Library_SN8205x | 636 | 0 |
Startup Stack & Link Script fill | 39 | 804 |
Supplicant - BESL | 89992 | 516 |
ThreadX | 9168 | 396 |
Wi-Fi Firmware | 210412 | 0 |
WICED | 2844 | 820 |
WWD | 13416 | 1112 |
----------------------------------+---------+---------|
TOTAL (bytes) | 445212 | 47760 |
----------------------------------|---------|---------|
Downloading Bootloader ...
Illegal division by zero at ./tools/text_to_c/sector_count.pl line 27.
Illegal division by zero at ./tools/text_to_c/sector_count.pl line 27.
Building apps lookup table
No changes detected
Downloading DCT ...
./WICED/platform/MCU/wiced_apps_lut.c:63:46: error: expected expression before ',' token
.sectors = { {FR_APP_SECTOR_START,FR_APP_SECTOR_COUNT} }
^
./WICED/platform/MCU/wiced_apps_lut.c:68:49: error: expected expression before ',' token
.sectors = { {DCT_IMAGE_SECTOR_START,DCT_IMAGE_SECTOR_COUNT} }
^
./WICED/platform/MCU/wiced_apps_lut.c:73:49: error: expected expression before ',' token
.sectors = { {DCT_IMAGE_SECTOR_START,DCT_IMAGE_SECTOR_COUNT} }
^
tools/makefiles/wiced_apps.mk:64: recipe for target 'build/snip_ota_fr-SN8205x/APPS.elf' failed
make.exe[1]: *** [build/snip_ota_fr-SN8205x/APPS.elf] Error 1
make.exe[1]: *** Waiting for unfinished jobs....
No changes detected
Makefile:185: recipe for target 'main_app' failed
make: *** [main_app] Error 2
Show LessHi
Our project is using the SDK 3.1.2 with ThreadX and Nex_Duo. We want to use a binary semaphore that is triggered from an IRQ. The existing semaphore API host_rtos_init_semaphore() and wiced_rtos_init_semaphore() both are the counting semaphore. Can you provide a binary semaphore API?
Thanks
Show Less