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

Having problems with uploading code to my Thingy52.

Hey, i having problems with uploading code to my Thingy52.

Equipment that i using:
nRF DK https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52-DK
Nordic Thingy:52

My computer is using windows 8.1

Things i have done:

Downloaded the Thingy:52-SDK-zip version 2.1.0  from nordic semiconductors webpage.

Followed the Prerequisites steps and run the setup_sdk.sh on this website: https://github.com/NordicSemiconductor/Nordic-Thingy52-FW

Generated the keys as described here: https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/documentation/dfu_generating.html

Replaced the public key with the new public key in this direction “\project\bootloader_secure\” in the Thingy:52-SDK.

Successfully built the project in the direction “\project\bootloader_secure\pca20020\armgcc” in the Thingy:52-SDK with the “GNU Tools ARM Embedded 4.9 2015q3” compiler.

Did this command to generate a zip-file to upload: “nrfutil pkg generate --application nrf52832_xxaa_s132.hex --application-version 25 --hw-version 52 --sd-req 0x98 --key-file private-key.pem dfu-app.zip”

The file nrf52832_xxaa_s132.hex is the file generated from the project in the direction “\project\bootloader_secure\pca20020\armgcc” in the Thingy:52-SDK.

Started nRFgo studio and pressed “erased all” on the softdevice and application for the nRF DK.

Started nRF Conenct v2.6.2 and connected the Thingy52 to th nRF DK and did the following steps:

1. Pressed the "Start Secure DFU button"

2.Choosed the previously generatde zip-fil and then pressed the "Start DFU"

3.And then i get this error message: “When writing 'EXECUTE' command to Control Point Characteristic of DFU Target: Operation code 4 (EXECUTE) failed on DFU Target. Result code 5 (INVALID_OBJECT)”

Does anyone know why i get this error message?

I have also tried the steps above with the SDK from nordic semiconductors git repository from this address:https://github.com/NordicSemiconductor/Nordic-Thingy52-FW

Parents
  • Hi,

    You will not be able to update the bootloader of Thingy with your own customer build bootloader, using the DFU solution. This is only possible with bootloaders built by Nordic with our private key.

    It is possible to flash your own bootloader using the debug out port of the DK and a cable like this one.

    Best regards,
    Jørgen

  • Thanks for the answer,

    is flashing the bootloader when you do like this: Starting the nRFgo studio -> choosing your device under the motherboard tab -> program bootloader -> choosing your bootloader hex-file -> press program button?

    I have done the exact same steps as described above but with the project in the directory "project\pca20020_s132\armgcc" in the Thingy:52-SDK and then i also got the error message:  “When writing 'EXECUTE' command to Control Point Characteristic of DFU Target: Operation code 4 (EXECUTE) failed on DFU Target. Result code 5 (INVALID_OBJECT)”. Do you know why i get the error message then also?

Reply
  • Thanks for the answer,

    is flashing the bootloader when you do like this: Starting the nRFgo studio -> choosing your device under the motherboard tab -> program bootloader -> choosing your bootloader hex-file -> press program button?

    I have done the exact same steps as described above but with the project in the directory "project\pca20020_s132\armgcc" in the Thingy:52-SDK and then i also got the error message:  “When writing 'EXECUTE' command to Control Point Characteristic of DFU Target: Operation code 4 (EXECUTE) failed on DFU Target. Result code 5 (INVALID_OBJECT)”. Do you know why i get the error message then also?

Children
No Data
Related