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.
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.
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
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
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.
-------------------------------------------------------------------------------