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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,437 次查看
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

标签 (1)
0 项奖励
回复
3 回复数

1,023 次查看
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 项奖励
回复

1,023 次查看
RuiFaria
Contributor III

Hi Mark,

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

Thanks,

Rui

0 项奖励
回复

1,023 次查看
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 项奖励
回复