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

Programming with pynrfjprog

Hi,

I have a python scipt that uses pynrfjprog to program some custom information into a board's flash to be used by my application (calibration parameters, serial number etc).

I'd like to customise this to also program the softdevice, application and bootloader. nrfjprog can do this using the command:

nrfjprog.exe --eraseall --programs softdevice.hex --program application.hex bootloader.hex --verify --reset

Is there a way to access this functionality from the Python API?

Parents Reply
  • What version of nrfjprog are you using? I'm not sure what the --dfu flag is.

    I guess it is to write the settings flag so you can flash the bootloader, softdevice and appliation (and not have to upload appliation by DFU OTA). This can be accomplished by doing a memory write after programming the softdevice.

    write_u32(0x3FC00, 0x01) # I'm guessing the address. this is for nRF51 - based on memory. nrf52 is different.

Children
No Data
Related