cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55RG USB Base Address from STM32Cube is (0x40005C00UL) and that from the reference manual is 0x40006800. Which one is right?

Chris19
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

The "USB" define is correct and matches the RM.

#define USB         ((USB_TypeDef *) USB1_BASE)

#define USB1_BASE       (APB1PERIPH_BASE + 0x00006800UL)

The "USB_BASE" define is incorrect. Possibly a copy/paste error from another chip.

#define USB_BASE               (0x40005C00UL)

I2C3 is actually at this address:

#define PERIPH_BASE      (0x40000000UL)/*!< Peripheral base address */

#define I2C3_BASE       (APB1PERIPH_BASE + 0x00005C00UL)

#define APB1PERIPH_BASE    PERIPH_BASE

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

1 REPLY 1
TDK
Guru

The "USB" define is correct and matches the RM.

#define USB         ((USB_TypeDef *) USB1_BASE)

#define USB1_BASE       (APB1PERIPH_BASE + 0x00006800UL)

The "USB_BASE" define is incorrect. Possibly a copy/paste error from another chip.

#define USB_BASE               (0x40005C00UL)

I2C3 is actually at this address:

#define PERIPH_BASE      (0x40000000UL)/*!< Peripheral base address */

#define I2C3_BASE       (APB1PERIPH_BASE + 0x00005C00UL)

#define APB1PERIPH_BASE    PERIPH_BASE

If you feel a post has answered your question, please click "Accept as Solution".