SmartFusion2 FreeRTOS Sofconsole 6.0 demo build problem

msierra wrote on Monday, January 28, 2019:

Hi,
I am trying to build the demo application located in CORTEX_SmartFusion2_M2S050_SoftConsole directory in Sofconsole 6.0. I made a new project and imported demo project and merged with our hardware platform for Microsemi SmartFusion2 Security Evaluation Kit (for M2S090). But when I try to build it, it gives me this error:

“RTOSDemo\CMSIS\startup_gcc\debug-in-microsemi-smartfusion2-esram.ld:200 cannot move location counter backwards (from 000000002001d610 to 000000002000f000)
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:66: PruebaRTOS.elf] Error 1”

Any help for this issue?
Many thanks in advance.

Maite

richarddamon wrote on Monday, January 28, 2019:

That error says your application is using too much RAM, and from the numbers, by a lot. IT might also b4 because you are using a loader config file for the wrong chip. If I remember right, the M2S090 has more ram than the M2S050, so if you are using the M2S050 .ld file, that would make sense that you ran out of memory.

richarddamon wrote on Monday, January 28, 2019:

That error says your application is using too much RAM, and from the numbers, by a lot. IT might also b4 because you are using a loader config file for the wrong chip. If I remember right, the M2S090 has more ram than the M2S050, so if you are using the M2S050 .ld file, that would make sense that you ran out of memory.

msierra wrote on Friday, February 01, 2019:

Hi Richard, we have changed the linker file to “CMSIS/startup_gcc/debug-in-microsemi-smartfusion2-envm.ld” for M2S090 to use eNVM and now works fine. Thanks for your help.