This class enables C# to write a byte array to the internal Cerberus Flash.
***** BE CAREFUL *****
Notice that there are no flash sectors available for this, so our current implementation uses the last 128K of the deployment area, thus reducing the deployments from 384k to 256k.
Another option would be to use sector 4, a 16Kb sector reserved for Configuration, but if we do that we should re-write whatever tinybooter has stored there. This is not currently implemented but would be easy.
I forgot to mention that when you deploy your project, the contents of the “internalflashstorage” will probably be erased, but of course this should not be a problem in run time.
@ MikeCormier: We are using the last sector since our project is small.
More questions:
1 - Is it safe to use the config region?
2 - does tinybooter or CLR use that?
3 - if they do, we can always find an empty area and re-write the used area along with the new content we need, right?
@ Gus or anybody else.
My question is it safe to use just the last 1k in sector 3 - the dedicated config region, for persistant storage or is there a possibility that tinybooter or CLR use that?
It would be nice to have a small amount of config data survive program updates.
Hi vqp,
How you find all the Register Address (ex private const UInt32 Flash_CR = 0x40023C10;),
the Data sheet state that Address offset of the Flash control Register : 0xA0000000 + 0x40 + 0x20 * (x – 1), x = 2…4…?
Hi vqp, when i am execute the below code, it start writing the data from the address of 6000.
Why its happening like that?
I want to write in address of 3000,for that what we have to do?
Is it correct or not…?