Full modem update using Python script

I'd like to use a Python script to update the modem firmware (full update) instead of the Nordic Programmer tool. The purpose is to have this ability on the manufacturing floor. A J-Link adapter can be used to access the nRF9160 the same way that the Nordic tool does. Is there any documentation or actual Python code that can help me achieve this goal?

Thanks,

Johnas

Parents Reply Children
  • Hi Charlie,

    This definitely helps. The "nrf9160_pca20035_modem_upgrade_over_serial.py" example comes very close to what I need. However, it requires two serial ports. Unfortunately, I will only have one serial port available. I will have the J-Link adapter connected. So, I have an SWD interface and a serial port available. Also, there will be application code and a bootloader in the flash on the nRF9160. This example seems to write a DFU server into the flash which most likely erases or overwrites what was in there before. I need a script that behaves like the Nordic tool which updates the modem firmware with a J-Link adapter and leaves the existing application code and bootloader intact.

    Do you have a Python script that does that?

    Thanks,

    Johnas

Related