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

Parents
  • The instructions given do not work at all for me.

    After fighting with various versions of compilers/linbraries I gave up on trying to compile with hardfp support. Switched to softfp mode and ripped out all the motion stuff from the source code to get it to compile and it still doesn't work.

    Furthest I got is this (GCC): Linking target: nrf52832_xxaa_s132.out /usr/libexec/gcc/arm-none-eabi/ld: section .rel.dyn LMA [0000000000035bc4,000000000003672b] overlaps section .data LMA [0000000000035bc4,0000000000036613] /usr/libexec/gcc/arm-none-eabi/ld: section .dynamic LMA [0000000000036614,00000000000366cb] overlaps section .rel.dyn LMA [0000000000035bc4,000000000003672b] /usr/libexec/gcc/arm-none-eabi/ld: warning: creating a DT_TEXTREL in a shared object. collect2: error: ld returned 1 exit status

    Nordic, massively disapointed here.

    What are the steps to get a project to compile?

    PS: Bonus gripes: Your path setup with all the relative/absolute and "../../../" path is horrible. Also, make with more than one thread completely bombs because your dependencies are not set up. That's really sloppy :(

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

Reply Children
No Data
Related