CORE_M4 not defined for LPC54113 project

cancel
Showing results for 
Search instead for 
Did you mean: 

CORE_M4 not defined for LPC54113 project

Jump to solution
117 Views
conradkwok
Contributor II

LPC54113 is a M4 but CORE_M4 is not defined for projects created using either SDK 2.8.2 or 2.9.0 (not tested using other SDK version). Hence the code generated in "startup_lpc5411x.c" is for M0 but NOT M4.

Please fix it in the next release.

Tags (2)
0 Kudos
1 Solution
77 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Sorry for the misunderstanding.

I think the compiler option CORE_M4 should be removed because the LPC54113 has only M4 core.

I will report it to AE team.

Thank you for pointing the issue.

BR

XiangJun Rong

View solution in original post

0 Kudos
5 Replies
81 Views
conradkwok
Contributor II

Do you know what I am talking about?
I can run my program on LPC54113 without problem.

Have you looked at the file "startup_lpc5411x.c" ?
Without "CORE_M4" defined, g_pfnVectors won't include the extra interrupt vectors that are in M4 but not in M0!!!

Part of the startup_lpc5411x.c shown in MCUXpressoPart of the startup_lpc5411x.c shown in MCUXpresso

0 Kudos
78 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Sorry for the misunderstanding.

I think the compiler option CORE_M4 should be removed because the LPC54113 has only M4 core.

I will report it to AE team.

Thank you for pointing the issue.

BR

XiangJun Rong

View solution in original post

0 Kudos
113 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Conrad,

From hardware perspective, the LPC54113 had two cores:Cortex-M4 and Cortex-M0, after Reset, the cortex-M4 begins to run, so the code of startup_lpc5411x.c is for Cortex-M4 rather than Cortex-M0.

If you want to start Cortex-M0, the Cortex-M4 has to write register for example give start address of M0 to start Cortex-M0.

Hope it can help you

BR

Xiangjun Rong

0 Kudos
97 Views
conradkwok
Contributor II

LPC54113 only have M4 core, NO M0 core.

Screenshot 2021-05-27 101603.png

Please look at the "startup_lpc5411x.c" file generated by the project wizards.

So "CORE_M4" should be defined, right?

0 Kudos
91 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Thank you, I see that the LPC54113 only has M4 core, NO M0 core.

You do not need to define the cortex-M4, because after Reset, only cortex-M4 starts, the Cortex-M0 hibernates even if there is M0 core.

Hope it can help you

BR

XiangJun Rong

0 Kudos