AnsweredAssumed Answered

Bit Band access to AHB2 Peripherals on STM32F373

Question asked by Omri on Aug 20, 2013
Latest reply on Aug 20, 2013 by Clive One
Hello,
I am trying to access GPIOB registers on STM32F373 using bit banding memory access.
Per the documentation, all the peripheral registers are mapped to bid-band memory locations. While it is easy to access most peripherals using bit-banding, I am unable to find any specification that maps AHB2 locations to bid-banded memory locations. 

for STM32F373, AHB2 is mapped to 0x48000000 which is above the peripheral bit band base at 0x42000000

from stm32f37x.h:
#define FLASH_BASE            ((uint32_t)0x08000000) /*!< FLASH base address in the alias region */
#define SRAM_BASE             ((uint32_t)0x20000000) /*!< SRAM base address in the alias region */
#define PERIPH_BASE           ((uint32_t)0x40000000) /*!< Peripheral base address in the alias region */
 
#define SRAM_BB_BASE          ((uint32_t)0x22000000) /*!< SRAM base address in the bit-band region */
#define PERIPH_BB_BASE        ((uint32_t)0x42000000) /*!< Peripheral base address in the bit-band region */
 
 
/*!< Peripheral memory map */
#define APB1PERIPH_BASE       PERIPH_BASE
#define APB2PERIPH_BASE       (PERIPH_BASE + 0x00010000)
#define AHB1PERIPH_BASE       (PERIPH_BASE + 0x00020000)
#define AHB2PERIPH_BASE       (PERIPH_BASE + 0x08000000)
 
Any idea how I can access GPIOB using bit banding ?

Thanks,
Omri

Outcomes