Question
How to write to the SRAM2 memory on STM32L476?
Posted on March 10, 2017 at 09:54
Hello, How do I write a variable to the SRAM2 on an STM32L476 ? I am putting the uC in the Standby mode and I am preserving the SRAM2 memory, but I cannot manage to write to it. I am trying like this:
&sharpdefine VAR_LOC ((volatile uint8_t *)(0x10000000))
volatile uint8_t *pVar = VAR_LOC;(*pVar)++;
Do I need to active some clock for the SRAM2 memory?
Thanks! Any information is helpful.
#stm32l4 #sram2 #standbymode