Apr 12, 2019
12:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 12, 2019
12:53 AM
Hello,
I use a XMC 47 and want to write data into PFLASH.
The Code I use:
So I can write one page into Sector 11.
What I have to do to write more pages into Sectro 11?
Thanks for your help
S.H.
I use a XMC 47 and want to write data into PFLASH.
The Code I use:
XMC_FLASH_EraseSector(XMC_FLASH_SECTOR_11);
XMC_FLASH_ProgramPage(XMC_FLASH_SECTOR_11, data);
So I can write one page into Sector 11.
What I have to do to write more pages into Sectro 11?
Thanks for your help
S.H.
- Tags:
- IFX
3 Replies
Apr 16, 2019
04:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 16, 2019
04:38 AM
/**
*
* @param address Pointer to the starting address of flash page from where the programming starts.
* @param data Pointer to the source address where targeted data is located.
*
* @return None
*
* \parDescription:
* \if XMC1
* Programs a single flash page associated with the specified \a address.\n\n XMC1000 Flash can be programmed with one
* page (256 bytes) using this API. It calls the Flash Firmware routine \a XMC1000_NvmProgVerify(unsigned long pageAddr)
* to perform the programming. Refer XMC1000 reference manual of for more details on flash firmware routines
* (Section 25.3). Call XMC_FLASH_GetStatus() API after calling this API, to verify the programming operation.
* \endif
* \if XMC4
* Programs a single flash page associated with the specified \a address.\n\n XMC4000 flash can be programmed with a
* granularity of 256 bytes page using this API. Before entering into page write process, it clears the error status
* bits inside status register. It starts the write process by issuing the page mode command followed by the load page
* command which loads the targeted \a data blocks into internal assembly buffer. Finally, it issues the write page
* command which programs the \a data into flash. Call XMC_FLASH_GetStatus() API after calling this API, to verify the
* programming operation.\n
* \endif
*
* \parNote:
* Flash will be busy state during write is ongoing, hence no operations allowed until it completes.
*
* \parRelated APIs:
* None
*
*/
void XMC_FLASH_ProgramPage(uint32_t *address, const uint32_t *data);
May 14, 2019
06:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 14, 2019
06:44 AM
Hallo jferreira,
thanks for the answer.
How can I erase only one Page? Because it takes a long time to erase the complete sector....
Thanks for your help
S.H.
thanks for the answer.
How can I erase only one Page? Because it takes a long time to erase the complete sector....
Thanks for your help
S.H.
May 20, 2019
07:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 20, 2019
07:19 AM
Hi,
The flash can only be erased with sector granularity.
Regards,
Jesus
The flash can only be erased with sector granularity.
Regards,
Jesus