LPC2368 FLASH as RAM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC2368 FLASH as RAM

1,397件の閲覧回数
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 返答(返信)

980件の閲覧回数
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.

980件の閲覧回数
pazdimpazdim
Contributor II

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

0 件の賞賛

980件の閲覧回数
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.

980件の閲覧回数
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 件の賞賛

981件の閲覧回数
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 件の賞賛