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
for starting your firmware at that offset. Some boards already have that as to not overwrite the bootloader (example).