Skip navigation
Home > All Places > Software Forums > WICED Studio Wi-Fi/Combo > WICED Studio Wi-Fi/Combo Forums > Blog > Authors VikramR_26

On WICED Studio 5.2.0, when download_apps is used, the make process may encounter a segmentation fault.


We have discovered that both of the following make entries create a segmentation fault under both Mac and Linux operating systems:

./make BCM943364WCD1 download_apps
./make BCM943364WCD1 download download_apps


"./tools/common/Linux64/mkdir" -p build/eclipse_debug/

"./tools/common/Linux64/cp" -f build/waf.bootloader-NoOS-BCM943364WCD1/binary/waf.bootloader-NoOS-BCM943364WCD1.elf build/eclipse_debug/last_bootloader.elf

Segmentation fault (core dumped)

make: *** [main_app] Error 139


What we've discovered is that the segmentation fault occurs when other processes are running concurrently with the following rule in


The fix for this issued is attached and should replace the in the following location: tools/makefiles/

Note: This issue has been resolved in SDK 6.0.0



Posted by VikramR_26 Sep 30, 2017

Different Interfaces supported in WICED

  1. Olimex connector


Driver installation for your pc or laptop is required in order to use the Olimex connector.


     2. J-Link SEGGER debugger



          Used on PSoC+434W kit


Pin out for Olimex and JLink

1) Olimex Pin out




2) J-Link SEGGER debugger pinout


Different configuration files for OpenOCD in the SDK  :\Wiced-SDK\tools\OpenOCD


Olimex connector on WICED EVAL hardware


Sample connection to hardware on CYW943907AEVAL1F hardware.



Connection between CYW43907AEVAL1F and On-board Programmer/Debugger


CYW43907 Based SIP Pin Name

On-board Programmer/Debugger Connection
















(Note: the reset line on this hardware needs to be pulled from J9.3)




Compile and download using WICED SDK

Create the following make target if using Olimex ARM-USB-TINY-H


The command for downloading the scan example app in ...\apps\snip\scan


     snip.scan-CYW943907AEVAL1F JTAG=Olimex_ARM-USB-TINY-H download run


For Segger J-Link

     snip.scan- CYW943907AEVAL1F JTAG=jlink download run



If you need to debug add the debug flag

(debug configuration is default in SDK, if not present follow the steps here:



The command for downloading  and debugging the scan example app in ...\apps\snip\scan


     snip.scan- CYW943907AEVAL1F-debug JTAG=Olimex_ARM-USB-TINY-H download run


For Segger J-Link

     snip.scan- CYW943907AEVAL1F-debug JTAG=jlink download run




In this application you will connect the WICED Sense device to Avnet IoT starter kit over BLE and publish the WICED Sense sensors data to IBM Bluemix using MQTT.

1) Open the project contents provided below

2) Copy the ibm_bt_smartbridge folder from unzipped folder

3) Go back to the SDK (eclipse IDE) navigate to demo folder by expanding apps folder in Project Explorer. Right click and paste the ibm_bt_smartbridge folder.



4) Copy the bt_smartbridge folder from the folder located under libraries/daemons

5) Paste the above copied folder under libraries/daemons

On prompt of overwrite all files press “Yes to all”

6) Navigate to the ibm_bt_smartbridge project under demo and open the wifi_config_dct.h file, edit the SSID and passphrase as per your access point details.

Edit the “YOUR_AP_SSID”


On editing press the Save Icon on Top or “Ctrl+S” to save the changes made


7) Open the bt_smartbridge.c under ibm_bt_smartbridge demo folder and go to Line 257(Pressing Ctrl+L)

Edit the “WICED Sense Kit” to your WICED Sense kit device you have. Else retain it to be default


Press the Save Icon on Top or “Ctrl+S” to save the changes made


8) Import the platform files similar to step 5 and have it copied under the platforms folder


9) In order to compile and download the application to hardware. Create a new Make target in SDK by right clicking on WICED-SDK  in Make target window ( This is on the right side of the SDK)


10) On Click of New make target, the following window opens up. Type in

demo.ibm_bt_smartbridge-BCM94343W_AVN-ThreadX-NetX download download_apps run


11) To start the build process double click the make target that was created above

12) You can notice the progress of the build and download status on the console window as highlighted below

13) On successful build and download of the application, switch to the TeraTerm window and you will notice the hardware rebooting and launching the ibm_bt_smartbridge application


14) Kindly make a note of two things highlighted on teraterm application


15) Make sure your laptop is connected to the same Access point as the Avnet IoT starter Kit is. In the above logs as an example you can notice “MMP” is SSID that the IoT starter kit is connecting to, laptop also is connected to the same access point.


16) Wait for the message in TeraTerm logs

[HTTP] wiced_http_server_start


17) After seeing these launch a browser on your laptop and enter the URL of the IP address the device. As an example notice the highlight in red above “”.

18)  You should see the below page being displayed ( This is the webpage hosted by the Avnet IoT Starter Kit)

Wake Up the WICED Sense ( by using the wake up button) and Hit on Rescan button on the webpage as shown below, this scans for the BLE devices around and displays the scan result.


19) Connect to the device with the WICED Sense advertising name

20) On successful connection the Device gets added under Connection list as seen below



21) On hitting “Details” button, the characteristics and services of the WICED Sense is displayed

  1. 9) The Avnet IoT starter kit is now publishing the WICED Sense sensor data to IBM Bluemix

22) Open a browser on your laptop. Make sure you are connected to a network with Internet connectivity. Type in the below URL


23) Enter the mac id of your device into the device id section of webpage and hit Go.

24) You should see the WICED Sense sensor data being published for every interval. Try shaking the WICED Sense and and notice the values changing on graph.


9/9/16 update:

PS: ibm_bt_smartbridge_V2 added for SDK 3.7.x onwards ..( the Bluetooth layer was changed hence sharing the new application/platform files and details)

WICED connect to quickstart


Download and install the latest version of WICED SDK, available for Windows, Mac and Linux. To setup on Windows platform, follow the steps present in this link.


To connect to the Quickstart Service, follow these steps:


Open the WICED SDK eclipse base IDE
Under demo->IBM , place the bluemix_iot quick start project


The MQTT library implementation is included in the libraries and can be found under protocol section

WICED SDK setup :

Edit the wifi_config_dct.h under bluemix_iot as per your accesspoint credentials



In the make target window add the following new target ( for this example we have used BCM94343W hardware)

And click on build target for this make target. On successfull build and download the application to hardware, open any serial port communication like TeraTerm or Putty to see the hardware console output.

The below console message can be viewed

Enter the deviceId that you see in the console log, in the quickstart website to visualize the data points as shown below

IBM Internet of Things Foundation


At this step, we have successfully sent the sensor data to IBM Watson IoT Platform Quickstart service using the WICED hardware

This blog is about basic debug information and configuration details for OS X on WICED SDK 2.4.1

The video shows very basic debug details



Before debugging always run 'Clean' from the 'Make Target' Window and not eclipse-->build-->clean

Debug Configuration on WICED SDK (2.4.1)

1) Main configuration tab

WICED Mac OSx debug 1.png

2) Debugger Tab (Make sure the 'Force thread list update on suspend' is unchecked)

Screen Shot 2014-10-07 at 4.33.35 PM.png

3) Startup tab

WICED Mac OSx debug 4.png

4)Source tab

WICED Mac OSx debug 5.png

5) Common tab

WICED Mac OSx debug 6.png




Filter Blog

By date:
By tag: