Hello guys
I'm using keil uvsion latest version and I came across this problem that is when I try to enable the clock for GPIOD on stm32f407 as following:
RCC->AHB1ENR |= (1<<RCC_AHB1ENR_GPIOAEN) | (1<<RCC_AHB1ENR_GPIOBEN) | (1<<RCC_AHB1ENR_GPIODEN);
For some unknown reason, only GPIOD clock doesn't enable ( I get nothing on the GPIOD outputs nor inputs), but if I change the code to:
RCC->AHB1ENR |= (1<<RCC_AHB1ENR_GPIOAEN) | (1<<RCC_AHB1ENR_GPIOBEN) | (1<<3);//
it does work! What's going on here, anybody has any idea please?