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

Build and download Asset Tracker but doesn't work - help!

I recently purchased a Thingy:91.  Initially it would not connect to the local network.  I purchased a a J-Link programmer and via the nRF Connect Programmer updated the modem firmware and certificates.  Downloaded the latest compiled firmware (thingy91_ltem_2019-11-29_d3130d77.hex - 959kb) and after programming the Thingy:91 got it working and connecting to the network.  Now I can see the data via nrfcloud.com.

I want to modify the Asset Tracker firmware to add my own functionality.  So I downloaded from the repository (https://github.com/NordicPlayground/fw-nrfconnect-nrf) and also got Segger SES environment setup.  It was quite the job getting everything downloaded and configured.  I can compile and build the Asset Tracker project without errors.

The issue I'm having now is identifying the hex file and downloading to the Thingy:91.  I believe it's the Merged.hex that I need to use, however it's a bit smaller than the complied firmware above.  When I build and download the Thingy:91 is unresponsive (red light).  What am I missing here...?

Thanks if you can help!

  • Thanks again Martin - I did miss that.

    Ok so here are my settings to confirm:

    I did build the solution and download however still not working - no flashing lights or activity.  The merged.hex is now 710kb, still much smaller than the pre-compiled examples.

  • Hi James,

    What NCS version are you on?

    Could you please try to upgrade to the master branch?

    cd ncs/nrf
    git checkout master
    git pull
    west update

    Then delete the build folder for the asset_tracker sample, and re-build with SES. 

    Then try to flash via SES. 

    If nothing is happening, please connect a USB to Thingy:91 and open LTE Link Monitor and uncheck: [Automatic requests, Auto device/port filter]

    Then select the correct port:

    Then you should get out some serial output from the application.


    Please try via command line (nrfjprog) if SES is not working.


    I can confirm that the pre-compiled FW is a bit bigger than the one that you build yourself.

    Best regards,

    Martin L.

  • Thank you so much Martin.

    After typing 'git checkout master' I had this error: "Your local changes to the following files would be overwritten by merge .. Please, commit your changes or stash them before you can merge".

    So I discarded the local changes by doing this:

    1. git reset --hard
    2. git checkout master
    3. git pull
    4. west update

    Built the project and flashed the target Thingy:91 with merged.hex (now 781kb) and it works!

    Thanks so much for providing help, I very much appreciate it!

    James

Related