Hi ST team,I want to define a new section in the ld script so I can use that for variables that have to keep their values in case of soft resets.I have made some changes in the script as follows, .noinit (NOLOAD): { . = ALIGN(4); _noinit = .; ...
We are using STM32l562CEU6. So in our case, there is no POR-related flag. But there is a BORRST flag. And default value of the VDD cut-off for BOR is 1.71V.I kept a check of the previous reset condition using the RCC_FLAG_SFTRST and RCC_FLAG_BORRST w...
What we want here is that a variable should be initialized with a specific value at every power cycle. At run time the value of the variable will be updated. But at every soft reset( i.e; pulse on NRST pin of the MCU), it should be preserved.
Is it possible to initialize a variable on the power cycle, but preserve it on soft resets in RAM memory only?Is there any other way than NOLOAD?And regarding the RCC->CSR register;We are using STM32l562CEU6. So in our case, there is no POR-related f...