How to allocate C++ code to ITCM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to allocate C++ code to ITCM

Jump to solution
1,071 Views
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 Kudos
1 Solution
865 Views
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

View solution in original post

0 Kudos
1 Reply
866 Views
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 Kudos