User manual

UM0036 In-circuit debugging
Doc ID 7705 Rev 11 227/385
Caution: For XFlash devices, if write protection is enabled, the XFlash memory behaves like ROM
memory. You will not be able to debug your application and it is impossible to rewrite the
XFlash memory.
Handling incompatible option byte settings
When STVD establishes communication with your target MCU, it first reads the option byte
values from your MCU and detects settings that are incompatible with ICD. Detection of
incompatible option byte settings results in an error message. If this occurs:
1. Click on OK in the error message window.
The ICD MCU configuration window opens automatically, so you can reconfigure the
option bytes.
2. Select the Options tab to view the current option byte settings (see Figure 163).
The current settings (including ICD-incompatible settings) are in the Value field
corresponding to each option byte.
3. Click in the Value field to see possible settings for any option byte. Select a new setting
for any ICD-incompatible settings, then click on OK to accept the configuration and
close the window (see Figure 163). If you press Cancel at this point, any changes you
have made are ignored.
Table 71. ICD-incompatible option byte settings
Product memory type STM8 MCU / SWIM protocol ST7 MCU / ICC protocol
All memory types
Global readout protection enabled
Hardware watchdog enabled
Flash memory write protection
enabled
Hardware watchdog (WDG_HW)
enabled
XFlash, HDFlash
Flash memory read-out protection
(FMP_R) enabled
XFlash
Flash memory write protection
(FMP_W) enabled
Sector 0 (SEC [1:0]) other than
minimum