How to allocate C++ code to ITCM

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

How to allocate C++ code to ITCM

ソリューションへジャンプ
1,117件の閲覧回数
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 解決策
911件の閲覧回数
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 返信
912件の閲覧回数
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 件の賞賛