cancel
Showing results for 
Search instead for 
Did you mean: 

Query: STM32CubeMX settings to genrate code to that configures external SRAM/MRAM before main()

RajeevAroraCrcEvans
Associate III

@Khouloud ZEMMELI, @Imen.D ,

I am aware that FMC MRAM/SRAM (connected to NE1) (or even others) cannot be used until the main clock is configured, Pins clocks are configured, and FMC registers are set.

Please help me connect to someone who can help me understand the STM32CubeMX settings to use the template:

SystemInit_ExtMemCtl() 

And also help generate the code parts for below functions which does not use any RAM variables or otherwise clear them up when main() executes and the library function calls the internal RAM content clear code part.

  SystemClock_Config();

  PeriphCommonClock_Config();

  MX_FMC_Init()

  HAL_SRAM_Init()

  HAL_FMC_MspInit()

It would be helpful if STM32CubeMX would help generate the desired code rather than me having to code it.

If the FMC (for STM32H7 series) is initialized before the main executes, I will be able to store global variables in SRAM which are initialized during initialization.

Please share your views.

Thanks!

Rajeev

0 REPLIES 0