![]() |
Basic Native CMSIS Register Access Documentation 1.0
The Common Microcontroller Software Interface Standard (CMSIS) simplifies microcontroller software development, providing a consistent and efficient interface for developers working with Cortex-M and entry-level Cortex-A processors. It promotes code reuse, portability, and interoperability, enabling developers to focus on application-level logic rather than dealing with low-level hardware details.
|

| #define ADC1_BASE (APB2PERIPH_BASE + 0x2000UL) |
#include <stm32f746xx.h>
| #define ADC2_BASE (APB2PERIPH_BASE + 0x2100UL) |
#include <stm32f746xx.h>
| #define ADC3_BASE (APB2PERIPH_BASE + 0x2200UL) |
#include <stm32f746xx.h>
| #define ADC_BASE (APB2PERIPH_BASE + 0x2300UL) |
#include <stm32f746xx.h>
| #define AHB1PERIPH_BASE (PERIPH_BASE + 0x00020000UL) |
#include <stm32f746xx.h>
| #define AHB2PERIPH_BASE (PERIPH_BASE + 0x10000000UL) |
#include <stm32f746xx.h>
APB1 peripherals
| #define APB1PERIPH_BASE PERIPH_BASE |
#include <stm32f746xx.h>
| #define APB2PERIPH_BASE (PERIPH_BASE + 0x00010000UL) |
#include <stm32f746xx.h>
| #define BKPSRAM_BASE 0x40024000UL |
#include <stm32f746xx.h>
Base address of : Backup SRAM(4 KB)
| #define CAN1_BASE (APB1PERIPH_BASE + 0x6400UL) |
#include <stm32f746xx.h>
| #define CAN2_BASE (APB1PERIPH_BASE + 0x6800UL) |
#include <stm32f746xx.h>
| #define CEC_BASE (APB1PERIPH_BASE + 0x6C00UL) |
#include <stm32f746xx.h>
| #define CRC_BASE (AHB1PERIPH_BASE + 0x3000UL) |
#include <stm32f746xx.h>
| #define DAC_BASE (APB1PERIPH_BASE + 0x7400UL) |
#include <stm32f746xx.h>
| #define DBGMCU_BASE 0xE0042000UL |
#include <stm32f746xx.h>
USB registers base address
| #define DCMI_BASE (AHB2PERIPH_BASE + 0x50000UL) |
#include <stm32f746xx.h>
| #define DMA1_BASE (AHB1PERIPH_BASE + 0x6000UL) |
#include <stm32f746xx.h>
| #define DMA1_Stream0_BASE (DMA1_BASE + 0x010UL) |
#include <stm32f746xx.h>
| #define DMA1_Stream1_BASE (DMA1_BASE + 0x028UL) |
#include <stm32f746xx.h>
| #define DMA1_Stream2_BASE (DMA1_BASE + 0x040UL) |
#include <stm32f746xx.h>
| #define DMA1_Stream3_BASE (DMA1_BASE + 0x058UL) |
#include <stm32f746xx.h>
| #define DMA1_Stream4_BASE (DMA1_BASE + 0x070UL) |
#include <stm32f746xx.h>
| #define DMA1_Stream5_BASE (DMA1_BASE + 0x088UL) |
#include <stm32f746xx.h>
| #define DMA1_Stream6_BASE (DMA1_BASE + 0x0A0UL) |
#include <stm32f746xx.h>
| #define DMA1_Stream7_BASE (DMA1_BASE + 0x0B8UL) |
#include <stm32f746xx.h>
| #define DMA2_BASE (AHB1PERIPH_BASE + 0x6400UL) |
#include <stm32f746xx.h>
| #define DMA2_Stream0_BASE (DMA2_BASE + 0x010UL) |
#include <stm32f746xx.h>
| #define DMA2_Stream1_BASE (DMA2_BASE + 0x028UL) |
#include <stm32f746xx.h>
| #define DMA2_Stream2_BASE (DMA2_BASE + 0x040UL) |
#include <stm32f746xx.h>
| #define DMA2_Stream3_BASE (DMA2_BASE + 0x058UL) |
#include <stm32f746xx.h>
| #define DMA2_Stream4_BASE (DMA2_BASE + 0x070UL) |
#include <stm32f746xx.h>
| #define DMA2_Stream5_BASE (DMA2_BASE + 0x088UL) |
#include <stm32f746xx.h>
| #define DMA2_Stream6_BASE (DMA2_BASE + 0x0A0UL) |
#include <stm32f746xx.h>
| #define DMA2_Stream7_BASE (DMA2_BASE + 0x0B8UL) |
#include <stm32f746xx.h>
| #define DMA2D_BASE (AHB1PERIPH_BASE + 0xB000UL) |
#include <stm32f746xx.h>
AHB2 peripherals
| #define ETH_BASE (AHB1PERIPH_BASE + 0x8000UL) |
#include <stm32f746xx.h>
| #define ETH_DMA_BASE (ETH_BASE + 0x1000UL) |
#include <stm32f746xx.h>
| #define ETH_MAC_BASE (ETH_BASE) |
#include <stm32f746xx.h>
| #define ETH_MMC_BASE (ETH_BASE + 0x0100UL) |
#include <stm32f746xx.h>
| #define ETH_PTP_BASE (ETH_BASE + 0x0700UL) |
#include <stm32f746xx.h>
| #define EXTI_BASE (APB2PERIPH_BASE + 0x3C00UL) |
#include <stm32f746xx.h>
| #define FLASH_BASE FLASHAXI_BASE |
#include <stm32f746xx.h>
Peripheral memory map
| #define FLASH_END 0x080FFFFFUL |
#include <stm32f746xx.h>
FLASH end address
| #define FLASH_OTP_BASE 0x1FF0F000UL |
#include <stm32f746xx.h>
Base address of : (up to 1024 Bytes) embedded FLASH OTP Area
| #define FLASH_OTP_END 0x1FF0F41FUL |
#include <stm32f746xx.h>
End address of : (up to 1024 Bytes) embedded FLASH OTP Area
| #define FLASH_R_BASE (AHB1PERIPH_BASE + 0x3C00UL) |
#include <stm32f746xx.h>
| #define FLASHAXI_BASE 0x08000000UL |
#include <stm32f746xx.h>
Base address of : (up to 1 MB) embedded FLASH memory accessible over AXI
| #define FLASHITCM_BASE 0x00200000UL |
#include <stm32f746xx.h>
Base address of : (up to 1 MB) embedded FLASH memory accessible over ITCM
| #define FLASHSIZE_BASE 0x1FF0F442UL |
#include <stm32f746xx.h>
FLASH Size register base address
| #define FMC_Bank1_R_BASE (FMC_R_BASE + 0x0000UL) |
#include <stm32f746xx.h>
| #define FMC_Bank1E_R_BASE (FMC_R_BASE + 0x0104UL) |
#include <stm32f746xx.h>
| #define FMC_Bank3_R_BASE (FMC_R_BASE + 0x0080UL) |
#include <stm32f746xx.h>
| #define FMC_Bank5_6_R_BASE (FMC_R_BASE + 0x0140UL) |
#include <stm32f746xx.h>
| #define FMC_R_BASE 0xA0000000UL |
#include <stm32f746xx.h>
Base address of : FMC Control registers
| #define GPIOA_BASE (AHB1PERIPH_BASE + 0x0000UL) |
#include <stm32f746xx.h>
| #define GPIOB_BASE (AHB1PERIPH_BASE + 0x0400UL) |
#include <stm32f746xx.h>
| #define GPIOC_BASE (AHB1PERIPH_BASE + 0x0800UL) |
#include <stm32f746xx.h>
| #define GPIOD_BASE (AHB1PERIPH_BASE + 0x0C00UL) |
#include <stm32f746xx.h>
| #define GPIOE_BASE (AHB1PERIPH_BASE + 0x1000UL) |
#include <stm32f746xx.h>
| #define GPIOF_BASE (AHB1PERIPH_BASE + 0x1400UL) |
#include <stm32f746xx.h>
| #define GPIOG_BASE (AHB1PERIPH_BASE + 0x1800UL) |
#include <stm32f746xx.h>
| #define GPIOH_BASE (AHB1PERIPH_BASE + 0x1C00UL) |
#include <stm32f746xx.h>
| #define GPIOI_BASE (AHB1PERIPH_BASE + 0x2000UL) |
#include <stm32f746xx.h>
| #define GPIOJ_BASE (AHB1PERIPH_BASE + 0x2400UL) |
#include <stm32f746xx.h>
| #define GPIOK_BASE (AHB1PERIPH_BASE + 0x2800UL) |
#include <stm32f746xx.h>
| #define I2C1_BASE (APB1PERIPH_BASE + 0x5400UL) |
#include <stm32f746xx.h>
| #define I2C2_BASE (APB1PERIPH_BASE + 0x5800UL) |
#include <stm32f746xx.h>
| #define I2C3_BASE (APB1PERIPH_BASE + 0x5C00UL) |
#include <stm32f746xx.h>
| #define I2C4_BASE (APB1PERIPH_BASE + 0x6000UL) |
#include <stm32f746xx.h>
| #define IWDG_BASE (APB1PERIPH_BASE + 0x3000UL) |
#include <stm32f746xx.h>
| #define LPTIM1_BASE (APB1PERIPH_BASE + 0x2400UL) |
#include <stm32f746xx.h>
| #define LTDC_BASE (APB2PERIPH_BASE + 0x6800UL) |
#include <stm32f746xx.h>
| #define LTDC_Layer1_BASE (LTDC_BASE + 0x0084UL) |
#include <stm32f746xx.h>
| #define LTDC_Layer2_BASE (LTDC_BASE + 0x0104UL) |
#include <stm32f746xx.h>
AHB1 peripherals
| #define PACKAGE_BASE 0x1FF0F7E0UL |
#include <stm32f746xx.h>
Package size register base address
| #define PACKAGESIZE_BASE PACKAGE_BASE |
#include <stm32f746xx.h>
| #define PERIPH_BASE 0x40000000UL |
#include <stm32f746xx.h>
Base address of : AHB/ABP Peripherals
| #define PWR_BASE (APB1PERIPH_BASE + 0x7000UL) |
#include <stm32f746xx.h>
| #define QSPI_BASE 0x90000000UL |
#include <stm32f746xx.h>
Base address of : QSPI memories accessible over AXI
| #define QSPI_R_BASE 0xA0001000UL |
#include <stm32f746xx.h>
Base address of : QSPI Control registers
| #define RAMDTCM_BASE 0x20000000UL |
#include <stm32f746xx.h>
Base address of : 64KB system data RAM accessible over DTCM
| #define RAMITCM_BASE 0x00000000UL |
#include <stm32f746xx.h>
Base address of : 16KB RAM reserved for CPU execution/instruction accessible over ITCM
| #define RCC_BASE (AHB1PERIPH_BASE + 0x3800UL) |
#include <stm32f746xx.h>
| #define RNG_BASE (AHB2PERIPH_BASE + 0x60800UL) |
#include <stm32f746xx.h>
FMC Bankx registers base address
| #define RTC_BASE (APB1PERIPH_BASE + 0x2800UL) |
#include <stm32f746xx.h>
| #define SAI1_BASE (APB2PERIPH_BASE + 0x5800UL) |
#include <stm32f746xx.h>
| #define SAI1_Block_A_BASE (SAI1_BASE + 0x004UL) |
#include <stm32f746xx.h>
| #define SAI1_Block_B_BASE (SAI1_BASE + 0x024UL) |
#include <stm32f746xx.h>
| #define SAI2_BASE (APB2PERIPH_BASE + 0x5C00UL) |
#include <stm32f746xx.h>
| #define SAI2_Block_A_BASE (SAI2_BASE + 0x004UL) |
#include <stm32f746xx.h>
| #define SAI2_Block_B_BASE (SAI2_BASE + 0x024UL) |
#include <stm32f746xx.h>
| #define SDMMC1_BASE (APB2PERIPH_BASE + 0x2C00UL) |
#include <stm32f746xx.h>
| #define SPDIFRX_BASE (APB1PERIPH_BASE + 0x4000UL) |
#include <stm32f746xx.h>
| #define SPI1_BASE (APB2PERIPH_BASE + 0x3000UL) |
#include <stm32f746xx.h>
| #define SPI2_BASE (APB1PERIPH_BASE + 0x3800UL) |
#include <stm32f746xx.h>
| #define SPI3_BASE (APB1PERIPH_BASE + 0x3C00UL) |
#include <stm32f746xx.h>
| #define SPI4_BASE (APB2PERIPH_BASE + 0x3400UL) |
#include <stm32f746xx.h>
| #define SPI5_BASE (APB2PERIPH_BASE + 0x5000UL) |
#include <stm32f746xx.h>
| #define SPI6_BASE (APB2PERIPH_BASE + 0x5400UL) |
#include <stm32f746xx.h>
| #define SRAM1_BASE 0x20010000UL |
#include <stm32f746xx.h>
Base address of : 240KB RAM1 accessible over AXI/AHB
| #define SRAM2_BASE 0x2004C000UL |
#include <stm32f746xx.h>
Base address of : 16KB RAM2 accessible over AXI/AHB
| #define SYSCFG_BASE (APB2PERIPH_BASE + 0x3800UL) |
#include <stm32f746xx.h>
| #define TIM10_BASE (APB2PERIPH_BASE + 0x4400UL) |
#include <stm32f746xx.h>
| #define TIM11_BASE (APB2PERIPH_BASE + 0x4800UL) |
#include <stm32f746xx.h>
| #define TIM12_BASE (APB1PERIPH_BASE + 0x1800UL) |
#include <stm32f746xx.h>
| #define TIM13_BASE (APB1PERIPH_BASE + 0x1C00UL) |
#include <stm32f746xx.h>
| #define TIM14_BASE (APB1PERIPH_BASE + 0x2000UL) |
#include <stm32f746xx.h>
| #define TIM1_BASE (APB2PERIPH_BASE + 0x0000UL) |
#include <stm32f746xx.h>
| #define TIM2_BASE (APB1PERIPH_BASE + 0x0000UL) |
#include <stm32f746xx.h>
| #define TIM3_BASE (APB1PERIPH_BASE + 0x0400UL) |
#include <stm32f746xx.h>
| #define TIM4_BASE (APB1PERIPH_BASE + 0x0800UL) |
#include <stm32f746xx.h>
| #define TIM5_BASE (APB1PERIPH_BASE + 0x0C00UL) |
#include <stm32f746xx.h>
| #define TIM6_BASE (APB1PERIPH_BASE + 0x1000UL) |
#include <stm32f746xx.h>
| #define TIM7_BASE (APB1PERIPH_BASE + 0x1400UL) |
#include <stm32f746xx.h>
| #define TIM8_BASE (APB2PERIPH_BASE + 0x0400UL) |
#include <stm32f746xx.h>
| #define TIM9_BASE (APB2PERIPH_BASE + 0x4000UL) |
#include <stm32f746xx.h>
| #define UART4_BASE (APB1PERIPH_BASE + 0x4C00UL) |
#include <stm32f746xx.h>
| #define UART5_BASE (APB1PERIPH_BASE + 0x5000UL) |
#include <stm32f746xx.h>
| #define UART7_BASE (APB1PERIPH_BASE + 0x7800UL) |
#include <stm32f746xx.h>
| #define UART8_BASE (APB1PERIPH_BASE + 0x7C00UL) |
#include <stm32f746xx.h>
APB2 peripherals
| #define UID_BASE 0x1FF0F420UL |
#include <stm32f746xx.h>
Unique device ID register base address
| #define USART1_BASE (APB2PERIPH_BASE + 0x1000UL) |
#include <stm32f746xx.h>
| #define USART2_BASE (APB1PERIPH_BASE + 0x4400UL) |
#include <stm32f746xx.h>
| #define USART3_BASE (APB1PERIPH_BASE + 0x4800UL) |
#include <stm32f746xx.h>
| #define USART6_BASE (APB2PERIPH_BASE + 0x1400UL) |
#include <stm32f746xx.h>
| #define USB_OTG_DEVICE_BASE 0x0800UL |
#include <stm32f746xx.h>
| #define USB_OTG_EP_REG_SIZE 0x0020UL |
#include <stm32f746xx.h>
| #define USB_OTG_FIFO_BASE 0x1000UL |
#include <stm32f746xx.h>
| #define USB_OTG_FIFO_SIZE 0x1000UL |
#include <stm32f746xx.h>
| #define USB_OTG_FS_PERIPH_BASE 0x50000000UL |
#include <stm32f746xx.h>
| #define USB_OTG_GLOBAL_BASE 0x0000UL |
#include <stm32f746xx.h>
| #define USB_OTG_HOST_BASE 0x0400UL |
#include <stm32f746xx.h>
| #define USB_OTG_HOST_CHANNEL_BASE 0x0500UL |
#include <stm32f746xx.h>
| #define USB_OTG_HOST_CHANNEL_SIZE 0x0020UL |
#include <stm32f746xx.h>
| #define USB_OTG_HOST_PORT_BASE 0x0440UL |
#include <stm32f746xx.h>
| #define USB_OTG_HS_PERIPH_BASE 0x40040000UL |
#include <stm32f746xx.h>
| #define USB_OTG_IN_ENDPOINT_BASE 0x0900UL |
#include <stm32f746xx.h>
| #define USB_OTG_OUT_ENDPOINT_BASE 0x0B00UL |
#include <stm32f746xx.h>
| #define USB_OTG_PCGCCTL_BASE 0x0E00UL |
#include <stm32f746xx.h>
| #define WWDG_BASE (APB1PERIPH_BASE + 0x2C00UL) |
#include <stm32f746xx.h>