My understanding is that CySysFlashWriteRow API can be used to write data to flash
However it's not clear how to programmatically determine the row number where application data can be written
What's the recommended way?
This is for CYBLE 022001-00
Solved! Go to Solution.
If you have declared the variable as a constant, then the compiler should be placing it in flash. Then, all you have to do is get the address of the variable (using a reference) to get the flash address that you want to update 🙂
I don't remember how the row reference calculations work out, but iirc the cypress write flash api should be doing the row calculations internally, and all you have to do is supply it with an address, data pointer, and data length?
Here's some threads that contains multiple flash examples fyi: