2018-02-22 09:52 AM
What is the register address of APB1ENR and APB2ENR?
Where can I find it in Nucleo STM32F103RB Reference Manual?
#apb1periphclock #apb2 #stm32f103xxSolved! Go to Solution.
2018-02-23 01:18 PM
Page 49, RCC address basis 0x40021000
Page 147, APB1ENR address 0x1C
Address of APB1ENR = 0x4002101C
2018-02-22 10:05 AM
2018-02-22 11:13 AM
printf('%08X\n', &RCC->APB1ENR);
2018-02-23 11:58 AM
No printf... I am not using any library.
2018-02-23 12:01 PM
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?
2018-02-23 12:14 PM
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.
2018-02-23 12:14 PM
assign it to a variable and inspect that variable's value.
2018-02-23 01:15 PM
In a debug Memory View you should be able to enter
&RCC->APB1ENR as an address input.
2018-02-23 01:18 PM
Page 49, RCC address basis 0x40021000
Page 147, APB1ENR address 0x1C
Address of APB1ENR = 0x4002101C