I am locating just dummy.o to RAM. The dummy.o contains only a small initialise() as shown below:-
and I encounters the build error:-
I have attached the linker scripts. Please advise how to get rid of the problem.
Thank you.
Best Regards,
Cindy
/* Specific program code that need to be in RAM */
.text.ram : AT(__TEXT_RAM_ROM)
{
. = ALIGN(4);
__text_ram_start__ = .; /* create a global symbol at text.ram start */
KEEP(*(.isr_vector_ram)) /* Startup code */
*(.interrupt_ram) /* Startup code */
*(.text.ram)
*fsl_cache.o(.text*)
*fsl_flexspi.o(.text*)
/**qspi_fpga_comm.o(.text*)*/
*fsl_flexcan.o(.text*)
*can_impl.o(.text*)
*can_impl.o(.rodata*)
*critical_section.o(.text*)
*critical_section.o(.rodata*)
*qspi_nor_flash.o(.text*)
*qspi_nor_flash.o(.rodata*)
*reentrant_qspi_nor_flash_decorator.o(.text*)
*reentrant_qspi_nor_flash_decorator.o(.rodata*)
*dummy.o(.text*)
. = ALIGN(4);
__text_ram_end__ = .; /* define a global symbol at text.ram end */
} > m_ram
Below three blogs may be helpful to you.
MCUXpresso IDE下工程链接文件配置管理与自动生成机制
MCUXpresso IDE下将应用程序RW段分散链接的几种方法
MCUXpresso IDE下将关键函数重定向到RAM中执行的几种方法