Using all SRAM in LPC4088

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by kruftin on Wed Dec 16 22:47:43 MST 2015

I'm try using all SRAM memory in LPC 4088.
SRAM divided on:
- 64 kB of Main SRAM on the CPU code/data bus for high-performance CPU
- two 16 kB SRAM blocks with separate access paths for higher throughput.
These SRAM blocks may be used for Ethernet, USB, LCD, and DMA memory, as
well as for general purpose instruction and data storage.

In IAR I'm modify icf:
define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
define symbol __ICFEDIT_region_ROM_end__   = 0x0007FFFF;
define symbol __ICFEDIT_region_RAM_start__ = 0x10000000;
define symbol __ICFEDIT_region_RAM_end__   = 0x1000FFFF;
define symbol __ICFEDIT_region_RAM2_start__ = 0x20000000;
define symbol __ICFEDIT_region_RAM2_end__   = 0x20003FFF;
define symbol __ICFEDIT_region_RAM3_start__ = 0x20004000;
define symbol __ICFEDIT_region_RAM3_end__   = 0x20007FFF;

define region RAM_region    = mem:[from __ICFEDIT_region_RAM_start__   to __ICFEDIT_region_RAM_end__] | mem:[from __ICFEDIT_region_RAM2_start__   to __ICFEDIT_region_RAM2_end__] | mem:[from __ICFEDIT_region_RAM3_start__   to __ICFEDIT_region_RAM3_end__];

But If I use all SRAM my program periodically crashed in Hard Fault. If I use for my code only main SRAM block all works correctly. Could I use two 16kB SRAM blocks for my rw data?

Original Attachment has been moved to: LPC4088_Flash_SPIFI_1_copy.txt.zip