Could not find include file "cr_section_macros.h" on include paths

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

Could not find include file "cr_section_macros.h" on include paths

3,287件の閲覧回数
1054144848
Contributor II

I want to placing specific functions into RAM blocks, so I use the the macro __RAMFUNC and add the  #include <cr_section_macros.h>  to my header file, but the MCUXpresso IDE tell me “Could not find include file "cr_section_macros.h" on include paths”, and the function is still in the .text section. How can I solve this problem?
By the way, I‘m using KL17Z128VFM4 MCU and my MCUXpresso IDE version is 10.3.1.

0 件の賞賛
返信
3 返答(返信)

1,997件の閲覧回数
nitinGangurde2001
Contributor I

Hello, I am using CLEV6630B board for scanning the RFID card using STM32H750B-DK board and I am using STM32 Cube ID for it and could not finding the #include <cr_section_macros.h> path, please help me to get out off this problem.

0 件の賞賛
返信

1,978件の閲覧回数
ErichStyger
Specialist I

Hi @nitinGangurde2001 ,

that cr_section_macros.h file is specific to the MCUXpresso delivered toolchain. If you are using the STM32CubeIDE, you naturally will not have the file and support for it.

What you could do is a) use the MCUXpresso IDE toolchain instead or b) use that header file in your application directly (see the MCUXpresso IDE file for this).

I hope this helps,

Erich

タグ(1)
0 件の賞賛
返信

3,065件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi James Xie,

   If you just lack "cr_section_macros.h", you can add that file path, the path is:

C:\nxp\MCUXpressoIDE_10.3.0_2200\ide\tools\arm-none-eabi\include

pastedImage_282.png

But, please check your IDE path, you need to add the path in your project, then you will have this file.

Wish it helps you!

If you still have question about it, please kindly let me know.

Have a great day,
Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------