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

about options of nrfjprog.exe program

Hi, I hope use nrfjprog.exe to do following things:

HW: nrf1822

  • download s110 6.0
  • download bootloader
  • download firmware
  • write some values to certain addresses
  • use write/read protection to bootloader area and firmware area.

My questions are:

  • Which option should I use for downloading Bootloader? (I failed to use "--programapp")
  • I tried "--rbp ALL" and "--rbp CR0", but I still can read flash values using "--memrd". So how can I do a read protection?

Thank you!

Parents
  • Hi

    Perhaps this thread can help you with how to upload SD+bootloader+application with nrfjprog.

    In order to write specific adresses it is a question of adding to the merged .hex file for the addresses the you want to write. For this to work, you need to study the intelhex format a bit which is the .hex format. In fact, the purpose of merging the app_valid_setting_apply.hex file with the other files is to write specific address in the bootloader settings area, in order to make the bootloader accept the application. I guess you can do something similar for the addresses you want to write.

    In order for the memory protection mechanism to be activated, you need to reset the device.

Reply
  • Hi

    Perhaps this thread can help you with how to upload SD+bootloader+application with nrfjprog.

    In order to write specific adresses it is a question of adding to the merged .hex file for the addresses the you want to write. For this to work, you need to study the intelhex format a bit which is the .hex format. In fact, the purpose of merging the app_valid_setting_apply.hex file with the other files is to write specific address in the bootloader settings area, in order to make the bootloader accept the application. I guess you can do something similar for the addresses you want to write.

    In order for the memory protection mechanism to be activated, you need to reset the device.

Children
No Data
Related