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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,331 Views
a_bet
Contributor IV

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 

Labels (1)
0 Kudos
3 Replies

1,084 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Andrea,

In M4 project,  please  put RamLoc72 part at second RAM  ( follow RamLoc128) to have a try.

If still have this error, please send your project to me, I will help you to check it on my side.


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,084 Views
a_bet
Contributor IV

Hi Alice,
I tried buy I got the same error. I attach my project files to the main question.

0 Kudos

1,084 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Andrea,

I have help you change the memory setting of M4 project. The memory M0 project used, we need

put them into second flash part and second RAM part:

pastedImage_1.png

Please test the project I attached, hope it helps.


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos