Jlink flash without erasing first

I’m using jlink to flash my board. I need to leave part of the rom intact. How to I suppress the erase all part of flashing?

You can modify the upload command using upload_cmd to your own wishes. However, if you wish to compile a firmware that is shifted from its start address, you should modify the upload offset, e.g. using

board_upload.offset_address= 0x4000

for starting your firmware at that offset. Some boards already have that as to not overwrite the bootloader (example).

1 Like