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

Simple Thingy52 Firmware Change

Hey everyone,

I'm new to the Nordic/Thingy/Embedded world and was hoping I could get some hand holding to achieve a simple change.

I would like to change the Thingy sample project to display as "MyThingy" instead of "Thingy" verify I can make changes to the Thingy firmware. I am doing my best to achieve this but keep failing. I have a nRF Development Kit to flash my own firmware. I am also using GCC on Windows 10 with the most recent pull from the Nordic-Thingy-FW git branch.

I have updated Nordic-Thingy52-FW\project\pca20020_s132\config\thing_config.h to change the device name from "Thingy" to "MyThingy"

I think run make -j on the armgcc folder which fails initially, but if I run it a couple times it will output a .hex file

I've compiled the 'bootloader_secure' project as well with my own generated public key.

I go in to nRF Studio and place my bootloader hex, the softdevice in Nordic-Thingy52-FW\sdk_components\softdevice\s132\hex hex and the application hex in their respective tabs.

All the files say they program correctly, but nothing seems to change.

I believe there is a good amount I am missing to achieve my goal, but I am stuck and getting frustrated. Please let me know what other information I can provide

Thank you.

  • I tried your approach (except flashing of the bootloader), and I'm seeing the updated name. What is failing when you are compiling with GCC? Which app are you using for checking the updated name? Are you able to see the device at all? Are you erasing the Thingy before flashing the updated application?

  • first and last five lines when runing make -j

    fist 5: rm -rf _build process_begin: CreateProcess(NULL, rm -rf _build, ...) failed. echo makefile makefile Compiling file: main.c

    ...

    last 5: Compiling file: nrf_drv_twi.c make (e=2): The system cannot find the file specified. make: *** [clean] Error 2 make: *** Waiting for unfinished jobs.... mkdir _build

    I am using the nRF Conenct Andiod app to see the device. I am not sure if I am erasing the Thingy prior, but I am setting it to Dfu mode and I see 'ThingyDfu' on the Andriod app.

  • Here are the last 5 lines of make -j when running it a second time

    Compiling file: crc32.c make (e=2): The system cannot find the file specified. make: *** [clean] Error 2 make: *** Waiting for unfinished jobs.... Assembly file: gcc_startup_nrf52.S

    and here is the output when running make -j a third time

    rm -rf _build process_begin: CreateProcess(NULL, rm -rf _build, ...) failed. make (e=2): The system cannot find the file specified. make: *** [clean] Error 2 make: *** Waiting for unfinished jobs.... Linking target: nrf52832_xxaa_s132.out make[1]: Entering directory C:/Software/Build/Nordic-Thingy52-FW/project/pca20020_s132/armgcc Preparing: nrf52832_xxaa_s132.bin Preparing: nrf52832_xxaa_s132.hex ' text data bss dec hex filename 232032 4392 20236 256660 3ea94 _build/nrf52832_xxaa_s132.out ' make[1]: Leaving directory C:/Software/Build/Nordic-Thingy52-FW/project/pca20020_s132/armgcc

  • Sorry for the potentially stupid question. What does the cable connection look like? is it wired between the host computer development kit board only? or is there a wired connection between the Thingy and the development kit as well?

  • Ok looks like I saw an answer to my question in another blog post, the P9 connector of the Thingy needs to connec to the P19 connector of the development kit. I do not have that cable so I'm going to move to the Over The Air solutions

Related