The Thunderboard Forum is no longer active. If you would like to post a question regarding Thunderboard Kits, please use the Bluetooth Forum.

This discussion and its replies are closed

Can you confirm that if I want to compile and run a code on the Thunderboard Sense I need to install IAR workbench. 



  • Bluetooth Low Energy
  • Discussion Forums
  • Answered
  • Thunderboard Kits
  • Yes and no.


    You can compile some examples for TB sense using GCC. At least the "SoC Empty" and "iBeacon" examples from SDK 2.3.0 should work (I just tested SoC Empty on my own kit using GCC).


    The ThunderBoard Sense demo application is currently NOT usable with GCC. This is hopefully going to be fixed soon.




  • Thanks. Is there any way I can run a BGScript code that is working on BLE112 to run on the Thunderbird sense. The code waits for an interrupt from the accelerometer and starts transmitting data on BLE for some time.


    Just to vent a little bit here. I think Silicon Labs has dropped the ball by not giving gcc support. What is the point of having a platform with App and Cloud functionality when a user has to spend a few thousand dollars just to use it for commercial application. What is even worse is that this is not mentioned in the literature clearly. The bullets in the following marketing material imply that having Simplicity Studio is enough to program the sense




    So a fledgling startup like mine after spending valuable dollars and time figure out that we can not do anything meaningful. Please take a leaf out of nRF's playbook. Atleast the Reddit hardware startup group likes them.




  • >> I think Silicon Labs has dropped the ball by not giving gcc support


    We just announced GCC support with our latest Bluetooth SDK release (2.3.0) about a week ago. The TB sense demo app is currently not working with GCC but we are working on fixing this. 


    You can run BGScript apps on TB sense. But the code written for BLE112 will not work directly because the API calls are not exactly the same.


    BGScript is much more limited than C. Instead of porting any BGScript code from BLE112 to TB sense I would recommend porting the BGScript app to C. The "Soc Empty" example from the SDK is a good template. And it builds with GCC.

    Correct Answer
  • Thanks a lot for the help. I was use 2.0.1 SDK because older posts on the forums were suggesting this was the right SDK to use with the TB sense.


    Anyway I will play with the code.

  • The latest Bluetooth SDK 2.3.1 is now out and with that version the TB Sense example can be built with GCC. Just tested this myself and it built right out of the box.


  • Just catching up on the TBs and this is great news!

    Any clues as to what you did? All I want to do is check the calibration of the BMP280 with out messing with the BLE

    Yours Simon M.


  • samarkh wrote:


    Any clues as to what you did?

    No tricks needed. Just installed latest BLE SDK 2.3.1. Plugged in my TB sense, then selected "create new project" and chose the "TB sense app" example project. Builds with GCC out of the box.


  • Thanks for the feedback and the help. It is good to see that GCC now works.


    There is still an issue with my configuration though. As seen in the image below, I have the GNU ARM compiler configured in the profile.




    However, when I try to run/compile the code, I get the following errors with including header files. Do I need to set any paths to my configuration to make this work.





  • @6thsense did you create the TB Sense app from scratch, using the latest SDK 2.3.1? 


    If you have some TB sense project created with older SDK such as 2.0.1 and then you try to modify it to work with GCC it will not work.

  • Hi,


    Thanks for releasing the 2.3.1 stack. I can compile and run the Thunderboard sense app just fine. I can even get the iBeacon and SOC Empty apps to compile and advertise, but they are not "connectable". 


    I am wondering if I am missing some radio or power related initialization, which is causing connection to the GATT server to fail?


    Also, I edited the iBeacon app to advertise as an Eddystone-URL beacon(and it works great), but the current Eddystone specs also need the Eddystone GATT services in order to connect the beacon to the Google Beacon Platform. Is there any plan of releasing anything on those lines, or should I consider spending time writing the GATT services myself?




  • The iBeacon is advertising as non-connectable, but the SoC Empty example should accept connections without any changes in the example code.


    I am not aware of any plans to release an Eddystone example with the GATT services included in the near future.