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.
Solved! Go to Solution.
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
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!!!
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
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
LPC54113 only have M4 core, NO M0 core.
Please look at the "startup_lpc5411x.c" file generated by the project wizards.
So "CORE_M4" should be defined, right?
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