Make crashes when building ota_fr snip

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

cross mob
MaGr_2160016
Level 4
Level 4
First like received First like given

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.

0 Likes
1 Solution
Anonymous
Not applicable

Have a look at http://community.broadcom.com/thread/4456?sr=stream&ru=17953

and see if the uploaded make file solves your problem.

View solution in original post

0 Likes
5 Replies