What is the register address of APB1ENR and APB2ENR?
Where can I find it in Nucleo STM32F103RB Reference Manual?
Page 49, RCC address basis 0x40021000
Page 147, APB1ENR address 0x1C
Address of APB1ENR = 0x4002101C
Thanks... I've this same reference manual, and I was unable to find the addresses in there. Can you point out the page number or something?
1. go to the datasheet and find the base address for rcc;
2. go to the reference manual and find the offset for your respective registers in rcc.
alternatively: go the device header file and find where apb base address is and go from there.
you will end up at the same place.
No printf... I am not using any library.
assign it to a variable and inspect that variable's value.
In a debug Memory View you should be able to enter &RCC->APB1ENR as an address input.
Retrieving data ...