How to allocate C++ code to ITCM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to allocate C++ code to ITCM

跳至解决方案
1,121 次查看
Takashi_Kashiwagi
Senior Contributor I

Hi MCUXpresso IDE Team.

I have using IMXRT1050-EVKB with MCUXpresso IDE.

I allocate  most C code to SDRAM, and a part of C code (kernel and tasks...) to ITC by attribute keyword. And I want to allocate C++ code to ITC.

But I can't, becase C++ code references ".ARM.exidx" in SDRAM(0x8004673c ~).

Please tell me how to solve with MCUXpresso IDE.

MCUXpresso IDE's error message:

--

(.ARM.exidx.ramfunc.$SRAM_ITC+0x0): relocation truncated to fit: R_ARM_PREL31 against `.ramfunc.$SRAM_ITC'

--

Best regards,

T.Kashiwagi

0 项奖励
1 解答
915 次查看
Takashi_Kashiwagi
Senior Contributor I

Hi, everyone.

I found a solution and I will post it.

I added "-fno-exceptions" flag in [MCU C++ Compiler -> Dialect] as follows.

no-exceptions.png

Thank you.

T.Kashiwagi

在原帖中查看解决方案

0 项奖励
1 回复
916 次查看
Takashi_Kashiwagi
Senior Contributor I

Hi, everyone.

I found a solution and I will post it.

I added "-fno-exceptions" flag in [MCU C++ Compiler -> Dialect] as follows.

no-exceptions.png

Thank you.

T.Kashiwagi

0 项奖励