Manual Memory Selection

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.

memory1.png

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

memory2.png

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

memory3.png

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'.

© 2018 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.