CORE_M4 not defined for LPC54113 project

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

CORE_M4 not defined for LPC54113 project

ソリューションへジャンプ
2,119件の閲覧回数
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.

タグ(2)
0 件の賞賛
返信
1 解決策
2,079件の閲覧回数
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

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
2,083件の閲覧回数
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 件の賞賛
返信
2,080件の閲覧回数
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

0 件の賞賛
返信
2,115件の閲覧回数
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 件の賞賛
返信
2,099件の閲覧回数
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 件の賞賛
返信
2,093件の閲覧回数
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 件の賞賛
返信