Difference between revisions of "XMC4xxx series"
(→Flash sector limitations) |
|||
Line 21: | Line 21: | ||
*Decrease of total flash erase cycles possible as a logical sector access promotes uneven memory degradation |
*Decrease of total flash erase cycles possible as a logical sector access promotes uneven memory degradation |
||
+ | For further information regarding this, please refer to the technical reference manual of the XMC4500 series. |
||
− | See the Infineon manual for more information. |
||
+ | However, under special circumstances customers may want to use the logical sector layout. For such scenarios, the J-Link DLL allows to read-modify-write flash sectors in order to *not* erase certain parts of the physical sector when programming the certain logical sectors. Further information regarding this as well as an example can be found here: LINK |
||
− | Nevertheless the possibility exists to override this behavior of the J-Link. To learn how please visit the following page: |
Revision as of 17:39, 13 March 2017
Contents
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 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
For further information regarding this, please refer to the technical reference manual of the XMC4500 series.
However, under special circumstances customers may want to use the logical sector layout. For such scenarios, the J-Link DLL allows to read-modify-write flash sectors in order to *not* erase certain parts of the physical sector when programming the certain logical sectors. Further information regarding this as well as an example can be found here: LINK