2.1. When selecting microcontrollers in the STM32C0 series ¶
When generating code for the STM32C071K8U3 microcontroller using the EWARM toolchain, the linker file incorrectly defines the
__ICFEDIT_region_ROM_end__
symbol as
0x0801FFFF. According to the device’s datasheet (DS14693 Rev 1:7), the STM32C071K8U3 has 64 KBytes of Flash memory, so the user should set the ROM end address to
0x0800FFFF
instead of
0x0801FFFF.
/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__ = 0x08000000;
define symbol __ICFEDIT_region_ROM_end__ = 0x0800FFFF;