Skip to main content
jerry pang
Associate
September 19, 2019
Question

How to use STM32F40X CCM SRAM in STM32CubeIDE?

  • September 19, 2019
  • 1 reply
  • 2231 views

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?

This topic has been closed for replies.

1 reply

After Forever
Senior III
September 19, 2019

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.

jerry pang
Associate
September 20, 2019

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

Tesla DeLorean
Guru
September 20, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..