BCM94343W_AVN Has a problem with download_apps on MAC OS X

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

cross mob
chli_2118906
Level 3
Level 3
First like received

I know this is probably the wrong place to ask, but...

Has anyone else seen a problem with the Avnet BCM94343W Evaluation board and "download_apps".

Specifically this:

resources                         |   55188 |       0 |

Ring_Buffer                       |      92 |       0 |

SPI_Flash_Library_BCM94343W_AVN   |     512 |       0 |

Startup Stack & Link Script fill  |      49 |      18 |

Supplicant - BESL                 |   37232 |     536 |

ThreadX                           |    8588 |     396 |

TLV                               |     200 |       0 |

WICED                             |    4739 |     968 |

Wiced_RO_FS                       |     568 |       0 |

WWD                               |   15973 |    3048 |

----------------------------------+---------+---------|

TOTAL (bytes)                     |  300860 |   57936 |

----------------------------------|---------|---------|

Downloading Bootloader ...

make: *** [main_app] Segmentation fault: 11

No changes detected

Download complete

The exact place of the failure is in the execution of:

./tools/OpenOCD/OSX/openocd-all-brcm-libftdi

in the makefile "standard_platform_targets.mk", and in the "download_bootloader".

I have validated that every file required for the command is present.  I have not tried to run the command from a command line yet, but was trying to short circuit all the debugging time I need to spend to find the problem.  Strangely, I have seen it complete 3 or 4 times for unknown reasons.  I have tested this on Windows and it appears to work perfectly leading me to believe that it might be a race condition somewhere in the boot loader code.  I've searched for community and located some old tricks but none really apply to this problem.

1 Solution

jone,

Magical!

I saw your post about using the native make from about a year ago.  Although I can't find it right now to recheck the process, I will post my fix because I'm not sure it was obvious the first time.  My apologies for stating what is obvious to you.  As I recall I copied my system make from /usr/bin/make to a somewhere in Wiced.

Chucks-MacBook-Air-133:bin chucklink$ pwd

/usr/bin

Chucks-MacBook-Air-133:bin chucklink$ ./make -v

GNU Make 3.81

Copyright (C) 2006  Free Software Foundation, Inc.

This is free software; see the source for copying conditions.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

Chucks-MacBook-Air-133:WICED-SDK-3.5.2 chucklink$ pwd

/Applications/WICED/WICED-SDK-3.5.2

Chucks-MacBook-Air-133:WICED-SDK-3.5.2 chucklink$ ./make -v

GNU Make 3.81

Copyright (C) 2006  Free Software Foundation, Inc.

This is free software; see the source for copying conditions.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.0

Note the problem above.  One is  version 11.3.0 and the other is 11.0.  Small difference that makes a big difference.

Further it is actually necessary to go a little bit deeper into the SDK directory structure than maybe I went from memory.

Chucks-MacBook-Air-133:OSX chucklink$ pwd

/Applications/WICED/WICED-SDK-3.5.2/tools/common/OSX

Chucks-MacBook-Air-133:OSX chucklink$ ./make -v

GNU Make 3.81

Copyright (C) 2006  Free Software Foundation, Inc.

This is free software; see the source for copying conditions.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

Chucks-MacBook-Air-133:OSX chucklink$

Be sure to replace make:

cd /Applications/WICED/WICED-SDK-3.5.2/tools/common/OSX

mv make make.old

cp /usr/bin/make ./make

Then you are good!

I am here to tell you it does work

Chuck

View solution in original post

10 Replies