LPC2368 FLASH as RAM
06-24-2018
01:37 AM
2,178 Views
pazdimpazdim
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reply
5 Replies
06-25-2018
01:15 AM
1,761 Views


NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
06-25-2018
07:39 AM
1,761 Views
pazdimpazdim
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the answer. How to write to RAM during program execution? Any serial interface?
06-25-2018
08:56 AM
1,761 Views


NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
06-25-2018
10:45 AM
1,761 Views
pazdimpazdim
Contributor II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
"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?
07-02-2018
04:59 AM
1,762 Views


NXP Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
