cancel
Showing results for 
Search instead for 
Did you mean: 

Query: Enabling clocks to RAM_D2 and RAM_D3 sections vis STM32CubeMX

RajeevAroraCrcEvans
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III

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

 

View solution in original post

2 REPLIES 2
TDK
Guru

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

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