AnsweredAssumed Answered

[MULTICORE M4+M0App]  Memory Map Issues at compile time

Question asked by Andrea Bettati on Feb 13, 2019
Latest reply on Feb 17, 2019 by Alice_Yang

Hi to you all, 
I'm trying to use the LPC4370 (lpc link2 evaluation) in dual core mode: M4+M0App.

I have errors which I can not understand while compiling the M4 (master) project.

Here's the output for the memory map after compiling the m0app project:

Building target: mc_tut_m0app.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -[...]
Memory region Used Size Region Size %age Used
SPIFI2: 2224 B 512 KB 0.42%
RamLoc72: 16 B 72 KB 0.02%

This is as I expected.

But after M4 compiles:

Building target: mc_tut_m4xm0app1.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -[...]
Memory region Used Size Region Size %age Used
RamLoc128:            16 B 128 KB 0.01%
RamAHB32:            0 GB 32 KB 0.00%
RamAHB16:            0 GB 16 KB 0.00%
RamAHB_ETB16:   0 GB 16 KB 0.00%
RamM0Sub16:        0 GB 16 KB 0.00%
RamM0Sub2:          0 GB 2 KB 0.00%
RamLoc72:              0 GB 72 KB 0.00%
SPIFI1:                    5516 B 512 KB 1.05%
SPIFI2:                    2224 B 512 KB 0.42%

 

 

The RamLoc72 is not used and I got the following error.

c:/nxp/lpcxpresso_8.2.2_650/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: M0APP execute address differs from address provided in source image

 

collect2.exe: error: ld returned 1 exit status

 

make: *** [mc_tut_m4xm0app1.axf] Error 1

As I put in bold, the Master project is correctly allocating the Slave M0App code in the 2nd (external) Flash, as I asked during the creation wizard.

 

What is going on here? 
I attach here the docs I'm using.

 

Best,

Andrea 

Outcomes