Configure the J-Link for Manual Memory and Range Selection
Normally the J-Link will control these options automatically for you. If you want to manually control the memories and ranges to program, set Auto select memories and ranges to Manually select memories and ranges as described below.
Open the Project Properties window.
Select SEGGER J-Link node under Categories.
Select Memories to Program Option Category.
Choose Allow JLink to Select Memories for Auto select memories and ranges.
At this point, all of the defaults are still in place, but you can change the options that apply to your selected device as shown in the following sections.
Program Memory Range Selection
By default, the entire program memory range will be selected.
To restrict programming to a specific range of program memory:
Check the box next to Program Memory
Specify addresses for Program Memory Start and Program Memory End.
If you want to prevent any program memory location from being programmed:
Uncheck the box next to Program Memory
The address range does not apply to the Erase function. The Erase function will erase all data on the device unless it is set to be preserved as described in the next section.
Preserve a Program Memory Range
By default, all program memory is erased during each programming cycle.
To prevent a range of program memory from being erased:
Check the box next to Preserve Program Memory
Specify addresses for Preserve Program Memory Start and Preserve Program Memory End.
To prevent the Boot Flash memory from being erased, check the box beside Preserve Boot Flash Memory.