My development tool is Keil uVision MDK with following packages:
Keil::MIMXRT1064-EVK_BSP
NXP::EVK-MIMXRT1064_BSP
NXP::MIMXRT1064_DFP
My question is based on the example from SDK: driver_examples\lpuart\interrupt.
Three linker file were provided in this example:
MIMXRT1064xxxxx_flexspi_nor.scf
MIMXRT1064xxxxx_ram.scf
MIMXRT1064xxxxx_sdram.scf.
In all of three, MIMXRT1064xxxxx_flexspi_nor.scf is the only one that allow me load and boot from nor flash. The image linked with other two can not be programmed into flash.
But with MIMXRT1064xxxxx_flexspi_nor.scf, the image built shows huge amount RAM usage for this simple program. Looking further into it, it reserved all OCRAM for a region that from comments "for MPU configuration"
Can someone point me to some right linker file,
1) For application that could use SDRAM on board, but can also be program and boot from flash
2) for small applications that does not used SDRAM, but only OCRAM.
Thanks for advice
Max