How to program Internal flash from external memory

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

How to program Internal flash from external memory

460 Views
jeffthompson
Contributor V

I want to upgrade my application in the MCU's internal flash from external memory accessed via SPI. Is there any example code showing this being done?

Labels (1)
0 Kudos
2 Replies

369 Views
jeffthompson
Contributor V

I should have added that I'm using KDS 3.0.0 and KDS SDK 1.2.0.

0 Kudos

369 Views
mjbcswitzerland
Specialist V

Hi Jeff

See the following for updating application code from external SPI flash to internal Flash on any Kinetis part, with optional encryption/decryption for code protection:

http://www.utasker.com/docs/uTasker/uTasker_BM_Loader.pdf

Videos:
https://www.youtube.com/watch?v=Pe9A8qsefzQ&t=101s
https://www.youtube.com/watch?v=lm3M-ZlaFLQ&t=575s

Code for most Kinetis boards and parts (supporting Atmel AT45D, Macronix MX25L, Spansion S25FL1, SST, ST-Micro ST25PE, Winbond W25Q SPI flash devices) is available in the open source uTasker project on GITHUB (use the uTasker Bare-minimum loader target), including simulation of the internal/external Flash devices and updating process.

It includes a KDS project. If you prefer to use SDK interfaces instead this is possible by replacing the HAL interfaces (description of routines in the first document) but will lose all simulation capability.

Regards

Mark


For professional requirements the supported uTasker version is available with customer HW configuration to ensure immediate operation and no project risks.

0 Kudos