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 of the program, set 'Auto select memories and ranges' to 'Allow JLink to Select Memories' as described below.
1
Open the Project Properties window.
2
Select 'SEGGER J-Link' node under 'Categories'.
3
Set 'Option Category' to Memories to Program.
4
Set 'Auto select memories and ranges' to Allow JLink to Select Memories.
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:
1
Check the box next to 'Program Memory'.
2
Specify addresses for 'Program Memory Start' and 'Program Memory End'.
If you want to prevent any program memory location from being programmed:
1
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:
1
Check the box next to 'Preserve Program Memory'.
2
Specify addresses for 'Preserve Program Memory Start' and 'Preserve Program Memory End'.
3
To prevent the Boot Flash memory from being erased, check the box beside 'Preserve Boot Flash Memory'.