Skip to main content
Chris19
Associate
July 25, 2021
Solved

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

..

This topic has been closed for replies.
TDK
TDKBest answer
July 25, 2021

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""."

1 reply

TDK
TDKBest answer
July 25, 2021

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""."