Internal Flash Driver
Posted: Wed Aug 24, 2016 12:25 pm
Hi,
are there any intentions to implement an internal flash driver which is able to write to the internal flash ROM and erase sectors at runtime?
The toolchain has to ensure that the memory area is reserved at compilation time so that the application does not try to erase itself, maybe via a kept section in the linker script. The flash ROM layout is very specific to the microcontroller so the lld had to define a memory layout definition or table. The write command could be a memory to memory dma transfer or?
The usecase is everywhere you need a non volatile memory without the need of an external storage device. For example to store configuration or calibration data.
To realize my application i wrote a simple specific iflash lld for the stm32f4 but in this initial version there is no dma tranfer and no layout table. There are just application blocking functions till now. There is a function to erase and write data. So there is no high level driver. But i think that it is possible because all controllers provide such a internal flash functionality.
If somebody needs the files look for the attachments.
are there any intentions to implement an internal flash driver which is able to write to the internal flash ROM and erase sectors at runtime?
The toolchain has to ensure that the memory area is reserved at compilation time so that the application does not try to erase itself, maybe via a kept section in the linker script. The flash ROM layout is very specific to the microcontroller so the lld had to define a memory layout definition or table. The write command could be a memory to memory dma transfer or?
The usecase is everywhere you need a non volatile memory without the need of an external storage device. For example to store configuration or calibration data.
To realize my application i wrote a simple specific iflash lld for the stm32f4 but in this initial version there is no dma tranfer and no layout table. There are just application blocking functions till now. There is a function to erase and write data. So there is no high level driver. But i think that it is possible because all controllers provide such a internal flash functionality.
If somebody needs the files look for the attachments.