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

Reload Thingy hex file once erased with new executable.

I am using a Mac with SES installed.  I created a DFU example and downloaded it to the Thingy 52 to see how it works.  That all went fine.  Unfortunately, it has disabled the Thingy 52 from doing it's normal function.  I would like to refresh the device with a good executable.  Looks like that is available somewhere on Nordic's site thingy_v2.1.0.HW_1.0.hex, but I can't find it.  Please provide me a link to this file.  My plan is to load it using my existing JLink SWD  connection to my Mac.  I am assuming I can do that through SES.

Parents
  • I read my own Thingy's flash out, it should be stock firmware. 
    Thingy52v1.0.0.hex

  • Thanks, When I load the file (using SES), I get an error that the file fails to download.  BTW, the file is only downloadable as an Intel Hex File type.  Also, when I verify the file (again using SES) it shows a large segment starting somewhere in the middle of the file in red (I assume as being incorrect).  Could the file have gotten corrupted in transfer or am I doing something else obviously wrong?

  • I suggest you use the nRF Connect's Programmer application to load the hex file, or nrfjprog. 

Reply Children
  • I downloaded the nRF Connect Programmer app to my Mac.  It doesn't recognize the Thingy.  Looks like nrfjprog is a Windows tool.  I'm trying (without much success) to set up the Python shell that calls the nrfjprog dll

  • I took a stab at simply recompiling the Thingy code using the Make file in the Nordic-Thingy52-FW-Master/project/armgcc folder.
    Seemed to build just fine, but won’t download to the Thingy.
    I get the following error message:
    RESET (pin 15) high, but should be low. Please check target hardware.
    RESET (pin 15) high, but should be low. Please check target hardware.
    RESET (pin 15) high, but should be low. Please check target hardware.
    connect failed
    Failed to connect to target.
    No idcode detected.
    Please check connection and Target Interface Type
    Any idea how to set pin 15 low and will that get proper download?
  • Have you downloaded the nRF5x Command Line Tools for MacOS?

    Installing the nRF5x Command Line Tools 

  • Yes, and when I run the command given in the example;  

    nrfjprog -f NRF52 --program file.hex –-chiperase

    I get the following error message.

    ERROR: An invalid argument was provided. Use --help for a list of valid

    Of course, --help tells me these are correct arguments

    I have tried single and double quotes, in case the file name contains special characters not recognized and used the complete path name to the hex file.  All to no avail.

    I could use some guidance here.

  • Let me be clear about this question.  What I want to do is to take the Thingy source code and modify it for my own application.  I need to be able to successfully compile and download the existing source before I go down that path.  Seems like I am close, but can't get the download to work.  Downloading a hex file to get back to a baseline configuration is a useful thing, but not my end goal.