Skip to main content
Associate III
February 15, 2024
Solved

Query: Enabling clocks to RAM_D2 and RAM_D3 sections vis STM32CubeMX

  • February 15, 2024
  • 2 replies
  • 1283 views

Hi @Imen.D ,

Please help me with a way to enable clocks to RAM_D2 and RAM_D3 section via STM32CubeMX.

I am assuming somehow by default the clocks to RAM_D1 is enabled in code,
I do not find a call to RCC->AHB2ENR which is enabled (i.e., not commented out) in the code generated using STM32CubeMX.
My team mates are asking me not to modify code (like enabling macro DATA_IN_D2_SRAM or adding assembly code in Reset_Handler section) and rather use some setting with the STM32CubeMX to enable the clocks to RAM_D1, RAM_D2 and RAM_D3 sections.

RajeevAroraCrcEvans_0-1707994051381.png

Please share your inputs.

Thanks!

Rajeev

This topic has been closed for replies.
Best answer by Pavel A.

>not to modify code (like enabling macro DATA_IN_D2_SRAM

Great, then you can add DATA_IN_D2_SRAM in the project in preprocessor defines.

 

2 replies

TDK
Super User
February 17, 2024

Not all code is going to be available with a mouse click. Expect to need to write a few lines if you want something other than the standard. The code produced by CubeMX is meant to be modified--it is a starting point.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Pavel A.
Pavel A.Best answer
Super User
February 17, 2024

>not to modify code (like enabling macro DATA_IN_D2_SRAM

Great, then you can add DATA_IN_D2_SRAM in the project in preprocessor defines.