- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have a look at http://community.broadcom.com/thread/4456?sr=stream&ru=17953
and see if the uploaded make file solves your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Marco,
Are you able to make other apps with "download run" just fine? Or is it just the "download_app" that is the problem?
We tried the snip.ota_fr app with JTAG=Olimex_ARM-USB-TINY-H on a BCM43362WCD1 with "download download_apps run", the process went fine through Windows. Could you try the following to ensure that the drivers are installer correctly?
Setup WICED USB J-TAG connection
a. For Ubuntu 12.04 and 14.04:
Create the /etc/udev/rules.d/70-wiced-JTAG.rules file as follow:
sudo gedit /etc/udev/rules.d/70-wiced-JTAG.rules
Set the content of the file as following:
# udev rules file for WICED USB JTAG interface, to allow use by non super-users
SUBSYSTEM=="usb", ATTR{idVendor}=="0a5c", ATTR{idProduct}=="43fa", GROUP="hwlab", MODE="0666"
b. Set the serial port:
sudo modprobe ftdi_sio vendor=0x0a5c product=0x43fa
Above line could be inserted into the ~/.bashrc to load FTDI driver at startup.
Thanks,
Jaeyoung
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jaeyoung,
I can definitely complete the build and download any application with "download run". The problem is when I use "download_apps". I have showed the ota_fr example just because is the one in the SDK with the "download_apps" make option.
Regarding the setup:
marco@kubuntu:~/fogsense/WICED-SDK-3.1.2$ more /etc/udev/rules.d/99-openocd.rules
SUBSYSTEM!="usb"
# Olimex ARM-USB-OCD
ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="0003", MODE="664", GROUP="plugdev"
# Olimex ARM-USB-OCD-TINY
ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="0004", MODE="664", GROUP="plugdev"
# Olimex ARM-JTAG-EW
ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="001e", MODE="664", GROUP="plugdev"
# Olimex ARM-USB-OCD-TINY-H
ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="002a", MODE="666", GROUP="plugdev"
# Olimex ARM-USB-OCD-H
ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="002b", MODE="666", GROUP="plugdev"
Please notice that the "tools/common/Linux64/make' binary crashes. I don't get ftdi or usb errors.
Thanks,
-Marco G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the same behavior under Mac OS host (Yosemite).
Marco-MacBook-Pro-2:WICED-SDK-3.1.2 marco$ ./make snip.ota_fr-BCMUSI14 JTAG=Olimex_ARM-USB-TINY-H VERBOSE=1 download download_apps run
....
....
"./tools/common/OSX/mkdir" -p build/eclipse_debug/
"./tools/common/OSX/echo" Downloading Bootloader ...
Downloading Bootloader ...
"./tools/OpenOCD/OSX/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 && "./tools/common/OSX/echo" No changes detected && "./tools/common/OSX/echo" || "./tools/OpenOCD/OSX/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 && "./tools/common/OSX/echo" Download complete && "./tools/common/OSX/echo" || "./tools/common/OSX/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. ****"
make: *** [main_app] Segmentation fault: 11
-Marco G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have a look at http://community.broadcom.com/thread/4456?sr=stream&ru=17953
and see if the uploaded make file solves your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it does.
Marco G.