Not applicable
Jun 13, 2017
06:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 13, 2017
06:40 AM
I am right that it is not possible to erase a singel page on the XMC4500??
Because on the XMC1xxx I can use the XMC_FLASH_ErasePages funciton.
Thanks
mathias
Because on the XMC1xxx I can use the XMC_FLASH_ErasePages funciton.
Thanks
mathias
- Tags:
- IFX
2 Replies
Jun 14, 2017
01:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 14, 2017
01:23 AM
Hi,
The XMC4 family distiguish between logical and physical sectors.
Sector-wise erase on logical and physical sectors are possible:
void XMC_FLASH_EraseSector(uint32_t *address); // logical erase
void XMC_FLASH_ErasePhysicalSector(uint32_t *address); // physical erase
It is recommended to erase physical sectors rather than logical sectors erase. The logical sector erase lowers the retention of the adjacent logical sectors (see datasheet, parameters tRET and tRETL for more details)
Regards,
Jesus
The XMC4 family distiguish between logical and physical sectors.
Sector-wise erase on logical and physical sectors are possible:
void XMC_FLASH_EraseSector(uint32_t *address); // logical erase
void XMC_FLASH_ErasePhysicalSector(uint32_t *address); // physical erase
It is recommended to erase physical sectors rather than logical sectors erase. The logical sector erase lowers the retention of the adjacent logical sectors (see datasheet, parameters tRET and tRETL for more details)
Regards,
Jesus
Not applicable
Jun 19, 2017
04:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 19, 2017
04:57 AM
hi jesus,
Many thanks, can you give me a number of the manual? I did not find that. ... But there is no possibility to erase a smaller amount of flash? And it is not possible to rewrite a flash without erase first?
I need a solution to save a CRC value in the flash. So on the the XE167 it was possible to erase a page and rewrite the page. So for the XMC that means copy 16kByte to RAM - modify it erase the sector and rewrite
the 16kByte to that flash sector that´s not a good solution. So my problem is that I cannot use a eeprom because i calculate the CRC at build time and save it with srecord into the hex line. Do you have any Idea what I can do?
Many thanks, can you give me a number of the manual? I did not find that. ... But there is no possibility to erase a smaller amount of flash? And it is not possible to rewrite a flash without erase first?
I need a solution to save a CRC value in the flash. So on the the XE167 it was possible to erase a page and rewrite the page. So for the XMC that means copy 16kByte to RAM - modify it erase the sector and rewrite
the 16kByte to that flash sector that´s not a good solution. So my problem is that I cannot use a eeprom because i calculate the CRC at build time and save it with srecord into the hex line. Do you have any Idea what I can do?