LPC2368 FLASH as RAM

cancel
Showing results for 
Search instead for 
Did you mean: 

LPC2368 FLASH as RAM

675 Views
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?

Labels (1)
Tags (1)
5 Replies

258 Views
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.

258 Views
pazdimpazdim
Contributor II

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

0 Kudos

258 Views
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.

258 Views
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 Kudos

258 Views
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 Kudos