Flash Read Write PSOC5 Develop Board

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

i want to create const Array Variables so Flash storage is reserved.

After that i want to save data from Ram into the flash storage.

I Have 16 and 32-Bit unsigned int Arrays to save and read from Flash.

I saw some examples with the BLE APi but this is not possible for the PSOC5.

Can someone give me short code sample ?

i Have 256KB Flash size.

0 Likes
1 Solution
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

For PSoC 5LP flash writes, please use either of the following APIs depending upon ECC memory usage.

 Use CyWriteRowFull() to write the entire row including ECC

 Use CyWriteRowData() to write the entire row without ECC

Please refer to PSoC® 3, PSoC 4, and PSoC 5LP Flash Memory Organization and Array ID Parameter - KBA84740  and section: Working with Flash and EEPROM for more details.

The Emulated EEPROM v1 component is purely a firmware abstraction of the flash memory. Hence you can use Em_EEPROM_Example avilable in PSoC Creator for reference.

View solution in original post

0 Likes
1 Reply