cancel
Showing results for 
Search instead for 
Did you mean: 

Address of APB1ENR and APB2ENR

Muzahir Hussain
Associate III
Posted on February 22, 2018 at 18:52

What is the register address of APB1ENR and APB2ENR?

Where can I find it in Nucleo STM32F103RB Reference Manual?

#apb1periphclock #apb2 #stm32f103xx
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on February 23, 2018 at 21:18

Page 49, RCC address basis 0x40021000

Page 147, APB1ENR address 0x1C

Address of APB1ENR = 0x4002101C

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

8 REPLIES 8
Posted on February 22, 2018 at 20:13

printf('%08X\n', &RCC->APB1ENR);

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on February 23, 2018 at 19:58

No printf... I am not using any library.

Posted on February 23, 2018 at 20:01

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?

Posted on February 23, 2018 at 20:14

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.

Posted on February 23, 2018 at 20:14

assign it to a variable and inspect that variable's value.

Posted on February 23, 2018 at 21:15

In a debug Memory View you should be able to enter 

&RCC->APB1ENR as an address input.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on February 23, 2018 at 21:18

Page 49, RCC address basis 0x40021000

Page 147, APB1ENR address 0x1C

Address of APB1ENR = 0x4002101C

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..