XMC4xxx series

From SEGGER Wiki
Revision as of 17:28, 13 March 2017 by Nino (talk | contribs) (Flash sector limitations)
Jump to: navigation, search

This article describes device specifics of the Infineon XMC 4500 microcontroller.

Flash sector limitations

The Infineon XMC 4500 MCU comes with the following physical sectors:

  • 2 * 64 kB
  • 1 * 128 kB
  • x * 256 kB

The first 64 kB for example are split up in 4 * 16 kB logical sectors which can be accessed individually. That way the flash memory in the first physical sector can be used for different scenarios where not the whole memory is needed to store the application.

For example if a bootloader is used together with a application it can be beneficial to store the bootloader e.g. in the first logical sector and the application starting from the second logical sector. That way no memory gets wasted.

The J-Link uses only the physical sectors when erasing and writing to flash, because there are disadvantages when using logical sectors that need to be taken into account:

  • Writing into logical flash sectors disturbs adjacent data in the remaining logical sectors and thus increasing the risk of having incorrect data stored in the remaining memory sectors
  • Decrease of total flash erase cycles possible as a logical sector access promotes uneven memory degradation

See the Infineon manual for more information.

Nevertheless the possibility exists to override this behavior of the J-Link. To learn how please visit the following page: