2024-02-15 02:51 AM - edited 2024-02-15 02:52 AM
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.
Please share your inputs.
Thanks!
Rajeev
Solved! Go to Solution.
2024-02-17 08:31 AM
>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.
2024-02-17 05:32 AM - edited 2024-02-17 11:57 AM
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.
2024-02-17 08:31 AM
>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.