- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
While running code, i.e. executing from the built-in flash, is it possible to do non blocking writes to the Auxiliary flash section?
same question goes for erasing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @DaEr_349131
As per my understanding, do you want to write to the External flash using your application code? or do you want to write the code while programming?
If it is the first thing then could you let me know which interface are you using to communicate with the external flash?
If you are using SPI based interface for communication with the external flash then it would be possible to implement non-blocking writes in the application. This can be done using the (SMIF) Serial Memory Interface. You can refer to the following link to see APIs available for implementing the same: https://infineon.github.io/psoc6pdl/pdl_api_reference_manual/html/group__group__smif.html
Thank and Regards
Ekta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi ekta,
writing and erasing to aux-flash/emulated-eeprom while the application is running, i.e. from the application. its important that it is non blocking
to clarify, this is the 32KB flash area that is in the psoc6 itself
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @DaEr_349131
As you have mentioned PSoC 6 Flash is divided into 2 parts:
- Application flash memory (from 2 to 8 sectors) - 128KB/256KB each.
- Auxiliary flash memory (which can also be used for Emulated EEPROM)- 32KB.
There are two types of writes possible for these memories: 1. Blocking writes (not required by you) and 2. Partially blocking writes.
You can refer to the Flash System Routine page in the PDL Documentation to see how Partially blocking writes can be implemented when writing to flash. Basically, the flash program APIs present have a configuration structure where it is possible to set blocking or non-blocking writes.
You can use this API in your application to perform non-blocking write operations.
Best Regards
Ekta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thx, I'm more after if this part of the flash is segmented somehow, cant find that in datasheets
i.e. do writes to application flash block aux?
how does it work on a physical level?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ping