Hi, Vitaliy,
As you know that the LPC4370 has MPU(Memory Protection Unit), you have to configure the SRAM as a region so that the SRAM location is code-fetch enabled.
Pls refer to the following section.
I copy the UM of Cortex-M4, which includes the MPU chapter.
Hope it can help you
BR
Xiangjun Rong
3.3.6 Memory Protection Unit (MPU)
The MPU is a integral part of the ARM Cortex-M4 for memory protection and supported by
all LPC43xx parts. The processor supports the standard ARMv7 Protected Memory
System Architecture model. The MPU provides full support for:
• protection regions
• overlapping protection regions, with ascending region priority (7 = highest priority, 0 =
lowest priority)
• access permissions
• exporting memory attributes to the system
MPU mismatches and permission violations invoke the programmable-priority
MemManage fault handler. See the ARMv7-M Architecture Reference Manual for more
information.
The access permission bits, TEX, C, B, AP, and XN, of the Region Access Control
Register control access to the corresponding memory region. If an access is made to an
area of memory without the required permissions, a permission fault is raised. For more
information, see the ARMv7-M Architecture Reference Manual.
The MPU is used to enforce privilege rules, to separate processes, and to enforce access
rules. For details on how to use the MPU and for the register description refer to the ARM
Cortex-M4 Technical Reference Manual.