LPC54102 Running slave M0 from FLASH

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC54102 Running slave M0 from FLASH

2,409件の閲覧回数
DanielR
Contributor I

I have an LPC54102 dual core project the I have been developing for quite some time now.

The M4 is executing its code from FLASH but the M0 slave has been copying its code to SRAM and executing from there. The M0 code base is getting large and I am running out of RAM. I would like to re-configure to executing both M4 and M0 processors from FLASH. 

I see that in MCUxpresso linker Multi-core options I can change this. (In the attached image, I changed the "Master memory region" to "Flash"). However, if I change this option, I then get a compiler error:

 

c:/nxp/mcuxpressoide_11.6.1_8255/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.6.1.202207200623/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: ./startup/boot_multicore_slave.o: in function `boot_multicore_slave':
C:\Git_Repos\Sonic\lpc-detector\R225_CM4_MASTER\Release/../startup/boot_multicore_slave.c:98: undefined reference to `__core_m0slave_START__'
M

 

What else do I need to need to change to make this work?

Thank you for your help.

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

2,388件の閲覧回数
DanielR
Contributor I

I guess my question was not clear. I will try again using the lpcxpresso54102_hello_world_cm0plus & lpcxpresso54102_hello_world_cm4 multi-core example.

Below you can see that the cm4 code is stored in FLASH, but the cm0plus code is loaded into RAM.

M0_Slave_in_RAM.PNG

According to AN11609 it is possible, on the LPC5410x, to run both cm3 & cm0plus code from flash. However, I can not find information on how to configure this in MCUXpresso. That is my question, how can I re-configure this project so that both cores are executing their code from RAM?

Thank you,

   Daniel

0 件の賞賛
返信

2,358件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi DanielR 

There is configuration "Link configuration to RAM", please check in master code and see if this is what you are looking for.

ZhangJennie_0-1678108252985.png

Have a nice day,

Jun Zhang

 

0 件の賞賛
返信

2,399件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi DanielR 

In order to resove the issue I need to reproduce the problem first. 

Could you pleaes let me know how to reproduce your problem based on a MCUXpresso SDK multicore example?

Thanks,

Jun Zhang

0 件の賞賛
返信