Load files on the On-Chip Program Flash - K66F

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Load files on the On-Chip Program Flash - K66F

696 Views
marcio_moura-br
Contributor I

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!

1 Reply

536 Views
mjbcswitzerland
Specialist V

Hi

The debugger will only delete files that are not part of the program space if you have it set up to erase all flash when it loads new code. If you have it set to erase only the sectors used by new code you will not lose files.

Otherwise take a look at the uTasker project since it contains various boot loaders for the K66, with file system in internal memory which can be managed via FTP or USB-MSD.

http://www.utasker.com/docs/uTasker/uTasker_utFAT.PDF
http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF
http://www.utasker.com/docs/uTasker/uTaskerEmulatedFAT.pdf
http://www.utasker.com/docs/uTasker/uTaskerUserFiles.PDF

Regards

Mark

Complete Kinetis solutions for professional needs, training and support: http://www.utasker.com/kinetis.html
Kinetis K66:
- http://www.utasker.com/kinetis/TWR-K65F180M.html
- http://www.utasker.com/kinetis/FRDM-K66F.html
- http://www.utasker.com/kinetis/TEENSY_3.6.html
uTasker: supporting >1'000 registered Kinetis users get products faster and cheaper to market
Request Free emergency remote desk-top consulting at http://www.utasker.com/services.html