Flash Burning - what do we need to do?
Posted: Sat Jun 14, 2008 9:52 pm
I realised this afternoon while working through the variables and fixed point stuff that it would be extremely prudent to have flash burning functional BEFORE installing tables and writing math code that uses variables that will all need to be written. The thing is, just writing to a random location in flash is not really going to work all that well. We probably need to write blocks at a time, and we probably need a convenient way of indexing all the variables inside that block.
I know that when a struct is allocated in memory that the components inside it are stored sequentially in a single block. This could be a good way to go I guess.
Someone (me?) really needs to go through the documentation for our core and see what is involved in writing to flash, how much granularity there is available, and whether it holds up the processor in the mean time etc etc etc.
The way the vars and tuning data is stored in memory will also affect the way the serial code looks them up to send etc.
If anyone wants to grab the lead on this, feel free to get stuck in and do it.
As usual all thoughts are more than welcome.
Fred.
I know that when a struct is allocated in memory that the components inside it are stored sequentially in a single block. This could be a good way to go I guess.
Someone (me?) really needs to go through the documentation for our core and see what is involved in writing to flash, how much granularity there is available, and whether it holds up the processor in the mean time etc etc etc.
The way the vars and tuning data is stored in memory will also affect the way the serial code looks them up to send etc.
If anyone wants to grab the lead on this, feel free to get stuck in and do it.
As usual all thoughts are more than welcome.
Fred.