cancel
Showing results for 
Search instead for 
Did you mean: 

How to use STM32F40X CCM SRAM in STM32CubeIDE?

jerry pang
Associate II

I know how to use ccm in keil, but now i have a project used CubeIDE, i dont know How to use STM32F40X CCM SRAM in STM32CubeIDE? thank you for your answer and help?

4 REPLIES 4

STM32CubeIDE uses the GCC toolchain, so most likely you do it manually by modifying the linker file and setting correct attributes for the variables (and/or functions) which you want to end up in CCM SRAM.

OpenSTM32 - Using CCM Memory

AN4296

Also note, there are different types of CCM SRAM, for example, you can't run code on STM32F405/7 CCM SRAM, it's not connected to I-BUS.

thanks for you help ,but i dont find the way to use it. do you have any link or suggestion to real use it.

Did you even review the App Note cited above?

Add the sections to your .LD Linker Script

Direct content with attributes.

Initialize the space in startup.s

Perhaps gain a better understanding of your compiler and linker

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

thank you for your help.