Programming nRF9160 with DAPLink programmer

I am attempting to program/debug an nRF9160 with a CMSIS-DAP programming adapter (not a Segger JLink adapter). Debugging seems to be fully functional. However, any attempts at programming the device are unsuccessful and the tools I use are ARM Cortex M33/ARMv8 aware. I've tried using Keil's Mbed (uVision) and pyOCD. Both debug with full functionality. In terms of programming the device, neither tool works. I have been able to erase the chip by manually manipulating the correct registers. I've also been on the pyOCD forum and I'm told that the algorithm used by Nordic to erase/program the nRF9160 may be the problem. 

I've attempted these activities on three boards: nRF9160DK, Thingy:91, my own board.

Please advise.

Thanks,

Johnas

  • Thanks again! I just ran that command, did a chip erase, and reprogrammed the chip with the file I saved from the previous dump command. It started up and ran just as before.

    This is fantastic. Thanks to everyone that made this possible.

  • Hi, pyOCD v0.35.1 works fine for me with a Raspberry Pi Debug Probe even from a Dockerized installation.

    Does anyone know if a script is available to flash the nRF9160's modem firmware using pyOCD?

    Edit: Process is described in modem_update but is not that easy.

    Best regards

  • Updating the LTE modem turns out to be easy using a Python script:

    Not sure how to do that from the command line though.

« 2 3 4 5 6