Other Parts Discussed in Thread: SYSBIOS
Hello,
I am developping a flash manager that will write some important data like test results and the Node ID for a CAN network. I am wondering how should addres this in terms of flash addres management.
For now, the variables that will be saved are a test result that should be run once in a lifetime and the Value of the Node ID that may change several time on its lifetime. I came accros three questions that i would like to share with you.
First, regarding that I only want to erase a part of the sector to write new data, I would like to know if there is a better way of writting the flash in comparison to saving the sector to be erased in another sector, erase and copy the contents with the new data. Second, I would like to know if the functions that will call the flash api will also be needed to be put in RAM or I can leave them in FLASH as soon as the Sector to be erased does not contain the code execution. Finally, I would like to know if the best practice is to reserve a sector to be filled with these kind of variables or they should be scattered in different sectors or even be put in the same sectors where code is running.
Regards,
David



