cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

chli_2118906
New Contributor II

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
chli_2118906
New Contributor II

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
Anonymous
Not applicable

Could you please post the entire openocd.log file?

Which version of OSX are you running?

Also can you try with JOBS=1 passed to your make command

0 Likes
JoYi_1844281
Contributor II

It cause by the make, not openOcd!

Replace the make with the make of your system should be fixed!

Which also could see on Linux64/Linux32 OS!

chli_2118906
New Contributor II

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

Anonymous
Not applicable

I have the same issue on 10.7.5 even though I am not running download_app. When I look in /usr/bin I dont see the MAKE file. is this the same issue? Can someone upload a working MAKE file?

0 Likes
Anonymous
Not applicable

I found the 11.3.0 version, updated the version tools/common/OSX and no luck.. Same segmentation error on compile.

./tools/OpenOCD/OSX/openocd-all-brcm-libftdi: line 3: 40732 Segmentation fault: 11  ${0}_run "$@"

0 Likes
chli_2118906
New Contributor II

I believe you can download command line tools for developers and it is part of that package.  You should be able to bring up a command line prompt and try to run "make". 

0 Likes
Anonymous
Not applicable

run by the command line and still received this error

./make demo.aws_iot.shadow-BCM94343W_AVN download  run

**** 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. ****

Resetting target

make[1]: *** [run] Error 139

make: *** [main_app] Error 2

and the openocd_log.txt showed the same

./tools/OpenOCD/OSX/openocd-all-brcm-libftdi: line 3: 43639 Segmentation fault: 11  ${0}_run "$@"

0 Likes
GregG_16
Employee

demo.aws_iot.shadow-BCM94343W_AVN download download_apps run

0 Likes
GregG_16
Employee

if this does not work it may be your permissions of your directory.

0 Likes
Anonymous
Not applicable

i switched to Windows 10 PC and everything was running in a few hours. Thanks for the help .