|
STM MATLAB Simulator
|
Collaboration diagram for Peripheral_memory_map:Topics | |
| Peripheral_declaration | |
| Exported_constants | |
| Exported_macros | |
Data Structures | |
| struct | _memory |
Typedefs | |
| typedef struct _memory | MCU_MemoryTypeDef |
Variables | |
| MCU_MemoryTypeDef | MCU_MEM |
| DBGMCU_TypeDef | DEBUG_MCU |
| #define FLASH_BASE_SHIFT 0x08000000UL |
FLASH(up to 1 MB) base address in the alias region
| #define FLASH_END_SHIFT 0x080FFFFFUL |
FLASH end address
| #define CCMDATARAM_BASE_SHIFT 0x10000000UL |
CCM(core coupled memory) data RAM(64 KB) base address in the alias region
| #define CCMDATARAM_END_SHIFT 0x1000FFFFUL |
CCM data RAM end address
| #define FLASH_OTP_BASE_SHIFT 0x1FFF7800UL |
Base address of : (up to 528 Bytes) embedded FLASH OTP Area
| #define FLASH_OTP_END_SHIFT 0x1FFF7A0FUL |
End address of : (up to 528 Bytes) embedded FLASH OTP Area
| #define SRAM1_BASE_SHIFT 0x20000000UL |
SRAM1(112 KB) base address in the alias region
| #define SRAM2_BASE_SHIFT 0x2001C000UL |
SRAM2(16 KB) base address in the alias region
| #define SRAM1_BB_BASE_SHIFT 0x22000000UL |
SRAM1(112 KB) base address in the bit-band region
| #define SRAM2_BB_BASE_SHIFT 0x22380000UL |
SRAM2(16 KB) base address in the bit-band region
| #define PERIPH_BASE_SHIFT 0x40000000UL |
Peripheral base address in the alias region
| #define BKPSRAM_BASE_SHIFT 0x40024000UL |
Backup SRAM(4 KB) base address in the alias region
| #define PERIPH_BB_BASE_SHIFT 0x42000000UL |
Peripheral base address in the bit-band region
| #define BKPSRAM_BB_BASE_SHIFT 0x42480000UL |
Backup SRAM(4 KB) base address in the bit-band region
| #define FSMC_R_BASE_SHIFT 0xA0000000UL |
FSMC registers base address
| #define MCU_MEM_END 0xA0000FFFUL |
CCM data RAM end address
| #define CCMDATARAM_SIZE 0x10000UL /* (64 KB) */ |
| #define SRAM1_SIZE 0x1C000UL /* (112 KB) */ |
| #define SRAM2_SIZE 0x4000UL /* (16 KB) */ |
| #define BKPSRAM_SIZE 0x1000UL /* (4 KB) */ |
| #define FLASH_SIZE (CCMDATARAM_BASE_SHIFT - FLASH_BASE_SHIFT) |
| #define FLASH_OTP_SIZE (SRAM1_BASE_SHIFT - FLASH_OTP_BASE_SHIFT) |
| #define SRAM1_BB_SIZE (SRAM2_BB_BASE_SHIFT - SRAM1_BB_BASE_SHIFT) |
| #define SRAM2_BB_SIZE (PERIPH_BASE_SHIFT - SRAM2_BB_BASE_SHIFT) |
| #define PERIPH_SIZE (BKPSRAM_BASE_SHIFT - PERIPH_BASE_SHIFT) |
| #define PERIPH_BB_SIZE (BKPSRAM_BB_BASE_SHIFT - PERIPH_BB_BASE_SHIFT) |
| #define FSMC_R_SIZE (MCU_MEM_END - FSMC_R_BASE_SHIFT) |
| #define FLASH_BASE (MCU_MEM.CCMDATARAM_BASE) |
FLASH(up to 1 MB) base address in the alias region
| #define CCMDATARAM_BASE (MCU_MEM.CCMDATARAM_BASE) |
CCM(core coupled memory) data RAM(64 KB) base address in the alias region
| #define SRAM1_BASE (MCU_MEM.SRAM1_BASE) |
SRAM1(112 KB) base address in the alias region
| #define SRAM2_BASE (MCU_MEM.SRAM2_BASE) |
SRAM2(16 KB) base address in the alias region
| #define PERIPH_BASE (MCU_MEM.PERIPH_BASE) |
Peripheral base address in the alias region
| #define BKPSRAM_BASE (MCU_MEM.BKPSRAM_BASE) |
Backup SRAM(4 KB) base address in the alias region
| #define FSMC_R_BASE (MCU_MEM.FSMC_R_BASE) |
FSMC registers base address
| #define SRAM1_BB_BASE (MCU_MEM.SRAM1_BB_BASE) |
SRAM1(112 KB) base address in the bit-band region
| #define SRAM2_BB_BASE (MCU_MEM.SRAM2_BB_BASE) |
SRAM2(16 KB) base address in the bit-band region
| #define PERIPH_BB_BASE (MCU_MEM.PERIPH_BB_BASE) |
Peripheral base address in the bit-band region
| #define BKPSRAM_BB_BASE (MCU_MEM.BKPSRAM_BB_BASE) |
Backup SRAM(4 KB) base address in the bit-band region
| #define FLASH_END (MCU_MEM.FLASH_END) |
FLASH end address
| #define FLASH_OTP_BASE (MCU_MEM.FLASH_OTP_BASE) |
Base address of : (up to 528 Bytes) embedded FLASH OTP Area
| #define FLASH_OTP_END (MCU_MEM.FLASH_OTP_END) |
End address of : (up to 528 Bytes) embedded FLASH OTP Area
| #define CCMDATARAM_END (MCU_MEM.CCMDATARAM_END) |
CCM data RAM end address
| #define SRAM_BASE SRAM1_BASE |
| #define SRAM_BB_BASE SRAM1_BB_BASE |
Peripheral memory map
| #define APB1PERIPH_BASE PERIPH_BASE |
| #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000UL) |
| #define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000UL) |
| #define AHB2PERIPH_BASE (PERIPH_BASE + 0x10000000UL) |
APB1 peripherals
| #define TIM2_BASE (APB1PERIPH_BASE + 0x0000UL) |
| #define TIM3_BASE (APB1PERIPH_BASE + 0x0400UL) |
| #define TIM4_BASE (APB1PERIPH_BASE + 0x0800UL) |
| #define TIM5_BASE (APB1PERIPH_BASE + 0x0C00UL) |
| #define TIM6_BASE (APB1PERIPH_BASE + 0x1000UL) |
| #define TIM7_BASE (APB1PERIPH_BASE + 0x1400UL) |
| #define TIM12_BASE (APB1PERIPH_BASE + 0x1800UL) |
| #define TIM13_BASE (APB1PERIPH_BASE + 0x1C00UL) |
| #define TIM14_BASE (APB1PERIPH_BASE + 0x2000UL) |
| #define RTC_BASE (APB1PERIPH_BASE + 0x2800UL) |
| #define WWDG_BASE (APB1PERIPH_BASE + 0x2C00UL) |
| #define IWDG_BASE (APB1PERIPH_BASE + 0x3000UL) |
| #define I2S2ext_BASE (APB1PERIPH_BASE + 0x3400UL) |
| #define SPI2_BASE (APB1PERIPH_BASE + 0x3800UL) |
| #define SPI3_BASE (APB1PERIPH_BASE + 0x3C00UL) |
| #define I2S3ext_BASE (APB1PERIPH_BASE + 0x4000UL) |
| #define USART2_BASE (APB1PERIPH_BASE + 0x4400UL) |
| #define USART3_BASE (APB1PERIPH_BASE + 0x4800UL) |
| #define UART4_BASE (APB1PERIPH_BASE + 0x4C00UL) |
| #define UART5_BASE (APB1PERIPH_BASE + 0x5000UL) |
| #define I2C1_BASE (APB1PERIPH_BASE + 0x5400UL) |
| #define I2C2_BASE (APB1PERIPH_BASE + 0x5800UL) |
| #define I2C3_BASE (APB1PERIPH_BASE + 0x5C00UL) |
| #define CAN1_BASE (APB1PERIPH_BASE + 0x6400UL) |
| #define CAN2_BASE (APB1PERIPH_BASE + 0x6800UL) |
| #define PWR_BASE (APB1PERIPH_BASE + 0x7000UL) |
| #define DAC_BASE (APB1PERIPH_BASE + 0x7400UL) |
APB2 peripherals
| #define TIM1_BASE (APB2PERIPH_BASE + 0x0000UL) |
| #define TIM8_BASE (APB2PERIPH_BASE + 0x0400UL) |
| #define USART1_BASE (APB2PERIPH_BASE + 0x1000UL) |
| #define USART6_BASE (APB2PERIPH_BASE + 0x1400UL) |
| #define ADC1_BASE (APB2PERIPH_BASE + 0x2000UL) |
| #define ADC2_BASE (APB2PERIPH_BASE + 0x2100UL) |
| #define ADC3_BASE (APB2PERIPH_BASE + 0x2200UL) |
| #define ADC123_COMMON_BASE (APB2PERIPH_BASE + 0x2300UL) |
| #define ADC_BASE ADC123_COMMON_BASE |
| #define SDIO_BASE (APB2PERIPH_BASE + 0x2C00UL) |
| #define SPI1_BASE (APB2PERIPH_BASE + 0x3000UL) |
| #define SYSCFG_BASE (APB2PERIPH_BASE + 0x3800UL) |
| #define EXTI_BASE (APB2PERIPH_BASE + 0x3C00UL) |
| #define TIM9_BASE (APB2PERIPH_BASE + 0x4000UL) |
| #define TIM10_BASE (APB2PERIPH_BASE + 0x4400UL) |
| #define TIM11_BASE (APB2PERIPH_BASE + 0x4800UL) |
AHB1 peripherals
| #define GPIOA_BASE (AHB1PERIPH_BASE + 0x0000UL) |
| #define GPIOB_BASE (AHB1PERIPH_BASE + 0x0400UL) |
| #define GPIOC_BASE (AHB1PERIPH_BASE + 0x0800UL) |
| #define GPIOD_BASE (AHB1PERIPH_BASE + 0x0C00UL) |
| #define GPIOE_BASE (AHB1PERIPH_BASE + 0x1000UL) |
| #define GPIOF_BASE (AHB1PERIPH_BASE + 0x1400UL) |
| #define GPIOG_BASE (AHB1PERIPH_BASE + 0x1800UL) |
| #define GPIOH_BASE (AHB1PERIPH_BASE + 0x1C00UL) |
| #define GPIOI_BASE (AHB1PERIPH_BASE + 0x2000UL) |
| #define CRC_BASE (AHB1PERIPH_BASE + 0x3000UL) |
| #define RCC_BASE (AHB1PERIPH_BASE + 0x3800UL) |
| #define FLASH_R_BASE (AHB1PERIPH_BASE + 0x3C00UL) |
| #define DMA1_BASE (AHB1PERIPH_BASE + 0x6000UL) |
| #define DMA1_Stream0_BASE (DMA1_BASE + 0x010UL) |
| #define DMA1_Stream1_BASE (DMA1_BASE + 0x028UL) |
| #define DMA1_Stream2_BASE (DMA1_BASE + 0x040UL) |
| #define DMA1_Stream3_BASE (DMA1_BASE + 0x058UL) |
| #define DMA1_Stream4_BASE (DMA1_BASE + 0x070UL) |
| #define DMA1_Stream5_BASE (DMA1_BASE + 0x088UL) |
| #define DMA1_Stream6_BASE (DMA1_BASE + 0x0A0UL) |
| #define DMA1_Stream7_BASE (DMA1_BASE + 0x0B8UL) |
| #define DMA2_BASE (AHB1PERIPH_BASE + 0x6400UL) |
| #define DMA2_Stream0_BASE (DMA2_BASE + 0x010UL) |
| #define DMA2_Stream1_BASE (DMA2_BASE + 0x028UL) |
| #define DMA2_Stream2_BASE (DMA2_BASE + 0x040UL) |
| #define DMA2_Stream3_BASE (DMA2_BASE + 0x058UL) |
| #define DMA2_Stream4_BASE (DMA2_BASE + 0x070UL) |
| #define DMA2_Stream5_BASE (DMA2_BASE + 0x088UL) |
| #define DMA2_Stream6_BASE (DMA2_BASE + 0x0A0UL) |
| #define DMA2_Stream7_BASE (DMA2_BASE + 0x0B8UL) |
| #define ETH_BASE (AHB1PERIPH_BASE + 0x8000UL) |
| #define ETH_MAC_BASE (ETH_BASE) |
| #define ETH_MMC_BASE (ETH_BASE + 0x0100UL) |
| #define ETH_PTP_BASE (ETH_BASE + 0x0700UL) |
| #define ETH_DMA_BASE (ETH_BASE + 0x1000UL) |
AHB2 peripherals
| #define DCMI_BASE (AHB2PERIPH_BASE + 0x50000UL) |
| #define RNG_BASE (AHB2PERIPH_BASE + 0x60800UL) |
FSMC Bankx registers base address
| #define FSMC_Bank1_R_BASE (FSMC_R_BASE + 0x0000UL) |
| #define FSMC_Bank1E_R_BASE (FSMC_R_BASE + 0x0104UL) |
| #define FSMC_Bank2_3_R_BASE (FSMC_R_BASE + 0x0060UL) |
| #define FSMC_Bank4_R_BASE (FSMC_R_BASE + 0x00A0UL) |
Debug MCU registers base address
| #define DBGMCU_BASE (&DEBUG_MCU) |
USB registers base address
| #define USB_OTG_HS_PERIPH_BASE 0x40040000UL |
| #define USB_OTG_FS_PERIPH_BASE 0x50000000UL |
| #define USB_OTG_GLOBAL_BASE 0x000UL |
| #define USB_OTG_DEVICE_BASE 0x800UL |
| #define USB_OTG_IN_ENDPOINT_BASE 0x900UL |
| #define USB_OTG_OUT_ENDPOINT_BASE 0xB00UL |
| #define USB_OTG_EP_REG_SIZE 0x20UL |
| #define USB_OTG_HOST_BASE 0x400UL |
| #define USB_OTG_HOST_PORT_BASE 0x440UL |
| #define USB_OTG_HOST_CHANNEL_BASE 0x500UL |
| #define USB_OTG_HOST_CHANNEL_SIZE 0x20UL |
| #define USB_OTG_PCGCCTL_BASE 0xE00UL |
| #define USB_OTG_FIFO_BASE 0x1000UL |
| #define USB_OTG_FIFO_SIZE 0x1000UL |
| #define UID_BASE 0x1FFF7A10UL |
Unique device ID register base address
| #define FLASHSIZE_BASE 0x1FFF7A22UL |
FLASH Size register base address
| #define PACKAGE_BASE 0x1FFF7BF0UL |
Package size register base address
| typedef struct _memory MCU_MemoryTypeDef |
|
extern |
| DBGMCU_TypeDef DEBUG_MCU |