Solved
Wrong Reset Values in ports A and B.
STM32F407
Why are there incorrect Reset Values in ports A and B?
I erased the chip completely, pressed reset, the values remain the same.
When started in the "Connect under Reset" mode, the values of the registers in ports A and B remain the same.
When debugging, I press Run.
Nothing depends on the code here, but here is my code:
#include "main.h"
int main(void)
{
RCC->AHB1ENR|=RCC_AHB1ENR_GPIODEN;
GPIOD->MODER|=1<<(2*12);
GPIOD->ODR=1<<12;
}
How to fix it?
