Hello everyone,
I have been using the FRDM-K66F board, which contains 2 MB of On-Chip Flash Memory. This memory is a program flash memory (does not have the FlexNVM Flash Memory).
My application needs to load some files onto the flash, and I need to read the binary data. I can write these files onto the flash through MCUExpress, which I have been doing. I can choose which addresses these files gets downloaded, and it works beautifully.
However, I would like to know how could I load the files to the On-Chip Flash automatically and prevent also the debugger to overwrite the memory sections. At list I would like to build a script to download the files and then perform debugging/developing aside without worrying with these files being erased or overwritten.
I was thinking of creating a bootloader/flashloader to handle this matter, than I could set a range for the program code and a range for the "filesystem". This is the way to go or there is another/better way to do this?
Let me know if you have any insight in this matter.
Thank you very much!