is it possible to run code from nand flash in kinetis k70?

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

is it possible to run code from nand flash in kinetis k70?

1,430 Views
RuiFaria
Contributor III

Hi,

I am using Kinetis K70, MQX 4.0.2 and Codewarrior 10.5 and i want to run my code from a external flash like nand flash, Is it possible?

Thanks,

Rui Faria

Labels (1)
0 Kudos
Reply
3 Replies

1,016 Views
mjbcswitzerland
Specialist V

Hi

NAND Flash is serial Flash and so can not be addresses linearly by the processor (it needs a SW layer between it to map its memory blocks and manage bad blocks etc.).

Code in NAND Flash is normally loaded to the processor's RAM and executed from there.

It is possible to run program from external parallel Flash or (SD)RAM connected to the FlexBus. Typically to run large code the code is copied from NAND Flash to SDRAM and executed there.

Regards

Mark

0 Kudos
Reply

1,016 Views
RuiFaria
Contributor III

Hi Mark,

I am using a DDR2 Ram. Do you have some examples for my first start?

Thanks,

Rui

0 Kudos
Reply

1,016 Views
mjbcswitzerland
Specialist V

Hi

I have NAND and SDRAM code but this is not used in the context that you would like it for. There is also Freescale reference code for configuring these devices.

Possibly the best for you would be to check out emCraft's U-boot for Linux for the K70 - http://www.emcraft.com/

since that is effectvely doing what you want. I think all code is available there.

Regards

Mark

0 Kudos
Reply