This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to properly build a project for Nordic Thingy 52 ?

Hello dear Nordic Semiconductor!!! I took your wonderful Thingy:52 everything was great until I wanted to build a project based on your Thingy: 52-SDK. I have nrf52840 pdk in order to flash Thingy. Inside the sdk folder I found the project ble_app_thingy_s132_pca20020. I tried to compile it, I got a lot of errors) I did not give up and read README. I installed Python 3.6.2 and the GNU ARM embedded toolchain gcc-arm-none-eabi-5_4. added paths to environment variables (made by default, like added). Do I need to do this if I start the project in Keil 5? Then I ran setup_sdk.py the following appeared:

> INFO:setup:Found SDK zip in _build/
> INFO:setup:Extracting SDK
> INFO:setup:Patching SDK Traceback
> (most recent call last):   File
> "setup_sdk.py", line 76, in <module>
>     subprocess.call(cmd, cwd="external/sdk")   File
> "C:\Users\kordi\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py",
> line 267, in call
>     with Popen(*popenargs, **kwargs) as p:   File
> "C:\Users\kordi\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py",
> line 707, in __init__
>     restore_signals, start_new_session)   File
> "C:\Users\kordi\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py",
> line 992, in _execute_child
>     startupinfo) FileNotFoundError: [WinError 2] 

Then I again tried to compile in Keil 5, errors became less, only one

> .\_debug\app_thingy_s132.axf: error:
> L6002U: Could not open file
> ..\..\..\libs\libmpllib_Keil_M4FP\libmpllib.lib:
> No such file or directory 
> 
> 
> ".\_debug\app_thingy_s132.axf" - 1
> Error(s), 1109 Warning(s).

And I want to ask if it is not difficult for you to correctly compile the project by step and maybe something I did not do right? Thank you

  • Another comment: if you want to upload your own project, you'll have to compile your own bootloader (see here). This link could also be helpful. You will need to use Secure DFU at the moment to be able to flash your own custom application or FW to the Thingy:52.

  • Yes, of course, I'm not a strong connoisseur of gcc and compilers, I understand that I'm doing something wrong and that I do not know, because I can not find it. I understand of course that you can download the project from scratch like nrf52840pdk. For example, take the CC2650 SensorTag or Thunderboard Silicon Labs there is also a similar application, but there you can normally open the project and normally patch it. Well if there is a debugger programmer but the project for Thingy is not going to for example in KeiI certainly understand that the product is new but if the code is opened then it probably somehow should be compiled more simply.I for example did not understand how to compile and compile a project. Although I did everything according to the instructions.

  • Have you taken a look at the comment I posted above in response to Andre? Have you gotten regular OTA-DFU to work on the Nordic Thingy yet (i.e. upload the latest 2.1.0 Thingy FW to your Nordic Thingy:52)? It is possible to compile the Nordic FW via Keil or ARM GCC, but not using Segger Embedded Studio. If you want to upload custom FW or a custom Thingy:52 application, you will need to use Secure DFU unfortunately.

    If you download the 2.1.0 FW from here, you can easily do an OTA-DFU either via the Thingy app on Android or iOS by going to the Device Firmware Update tab, click on the custom tab & pressing the "How To..." button. There, you will get tips on how to transfer the zip file from your computer to your smartphone. After that, it should be plug and play essentially.

    You can also upload the newest Thingy:52 FW via an nrf51/52 dk & attaching a SWD cable to the P19 port on your DK (if you have one). Then attach the other end of the SWD cable to the SWD port to the right of the USB port on the Thingy. Then, open up nrfgostudio & follow the instructions here. Hope that helps!

Related