236 CHAPTER 5 Working with J-Link and J-Trace
J-Link / J-Trace (UM08001) ©
2004-2017 SEGGER Microcontroller GmbH & Co. KG
Example 2 with default config:
Flash has 2 * 1 KB sectors
Debugger writes 1280 bytes
J-Link will erase + program 1 KB of first sector.
J-Link will erase + program 256 bytes of second sector. Previous 768 bytes from sec-
ond sector are lost.
The default makes sense for flash programming where old contents in remaining
space of affected sectors are usually not needed anymore. Writes of < 1 KB usually
mean that the user is performing flash manipulation from within a memory window in
a debugger to manipulate the application behavior during runtime (e.g. by writing
some constant data used by the application). In such cases, it is important to pre-
serve the remaining data in the sector to allow the application to further work cor-
rectly.
Syntax
SetFlashDLNoRMWThreshold = <value>
Example
SetFlashDLNoRMWThreshold = 0x100 // 256 Bytes
5.12.1.48SetFlashDLThreshold
This command is used to set a minimum amount of data to be downloaded by the
flash download feature.
Syntax
SetFlashDLThreshold = <value>
Example
SetFlashDLThreshold = 0x100 // 256 Bytes
5.12.1.49SetIgnoreReadMemErrors
This command can be used to ignore read memory errors. Disabled by default.
Syntax
SetIgnoreReadMemErrors = 0 | 1
Example
SetIgnoreReadMemErrors = 1 // Read memory errors will be ignored
SetIgnoreReadMemErrors = 0 // Read memory errors will be reported
5.12.1.50SetIgnoreWriteMemErrors
This command can be used to ignore read memory errors. Disabled by default.
Syntax
SetIgnoreWriteMemErrors = 0 | 1
Example
SetIgnoreWriteMemErrors = 1 // Write memory errors will be ignored
SetIgnoreWriteMemErrors = 0 // Write memory errors will be reported
5.12.1.51SetMonModeDebug
This command is used to enable / disable monitor mode debugging. Disabled by
default.