User manual

Basic debugging features UM0036
164/385 Doc ID 7705 Rev 11
This returns you to the Debug Instrument Settings window. The new connection option
has been added to those in the Target Port Selection list box and the new option is
selected automatically.
5.2 Configuring your target MCU
From STVD, you can specify the configuration of your microcontroller’s memory and the
behavior of its peripherals. The MCU Configuration window provides interfaces for
configuring:
Memory map
On-chip peripherals
The options presented in the MCU Configuration interface are specific to your
microcontroller. For more information about your microcontroller’s memory map and
supported peripheral features, refer to your microcontroller’s datasheet.
5.2.1 Memory map
The default memory settings depend on the microcontroller selected. However, you can
configure the memory settings as you want if your application requires non-default settings.
This feature enables you, for example, to temporarily decrease the RAM zone, and increase
the size of the ROM (to exceed what is available on the real microcontroller) during the first
stages of development. Once your program is functional, you can start to optimize its size by
reducing your code and returning these zones to their original size. There are two different
actions you can perform on the memory configuration:
change the type of an entire existing zone
define a new zone of any type wherever possible
Depending on your target MCU, the available memory types may be: Peripherals, RAM,
ROM, Stack, System, EEPROM, Reserved, Vectors, Application, NEM. Some of these
zones can have their type and size modified, others cannot be modified. Their definitions
and properties are explained in Tabl e 59.
Table 59. Memory types
Type Description
Peripherals
Microcontroller internal or rebuilt peripherals registers. Their properties are
defined as in the microcontroller datasheet. This memory cannot be modified.
RAM
Random-Access-Memory of the microcontroller. This memory type can be
modified.
ROM
Read-Only Memory of the microcontroller. Write protected. This memory type
can be modified.
Stack Stack of the microcontroller. This memory type cannot be modified.
System
The emulator uses this space for emulation management. This memory type
cannot be modified.
EEPROM
This memory is internal to the microcontroller and is located inside the
emulation device. The programming of this zone is done according to an
automaton found in the datasheet. This memory type cannot be modified.