LPC2368 FLASH as RAM

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

LPC2368 FLASH as RAM

1,433 次查看
pazdimpazdim
Contributor II

Hello. I am reviewing the controller LPC2368. It has 512 kb flash ram and 32 kb ram (too few). Can I use flash memory as a ram? How slowly does it work?

标签 (1)
标记 (1)
5 回复数

1,016 次查看
bernhardfink
NXP Employee
NXP Employee

Flash can be read like a RAM from the ARM core, but cannot be written like a RAM.

If you need more RAM, then you should consider an MCU with more RAM. Or alternatively use external RAM (requires MCU with external memory bus).

Regards,

Bernhard.

1,016 次查看
pazdimpazdim
Contributor II

Thanks for the answer. How to write to RAM during program execution? Any serial interface?

0 项奖励

1,016 次查看
bernhardfink
NXP Employee
NXP Employee

SRAM or SDRAM which is connected to the memory bus is simply a memory mapped area, like the internal RAM.

So no need for any serialization.

1,016 次查看
pazdimpazdim
Contributor II

"Flash can be read like a RAM from the ARM core, but cannot be written like a RAM."

How is the writing performed in this case?

...

Sorry, my bad. How to write to FLASH during program execution? SPI, I2C, UART?

0 项奖励

1,017 次查看
bernhardfink
NXP Employee
NXP Employee

Look into the specification of the respective flash device:

  • Internal flash:  data sheet & user's manual of the LPC2368 (look for "In Application Programming", IAP)
  • External flash:  data sheet of the parallel flash or serial SPI flash
0 项奖励