STM32 value line Discovery Board
Important Information about STM32VLDISCOVERY BOARD
STM32VLDISCOVERY BOARD has two user LEDs (green and blue), so we could manage to make them "blink".
It also has two push bottons, we can also push the buttons to reset or to interrupt the process.
LED1: Red LED LD1 labeled COM indicates communication between PC and ST-Link.
LED2: Red LED LD2 labeled PWR indicats that the board is powered.
LED3: Green LED LD3 labeled PC9 is connected to the I/O PC9 of STM32F100RB*.
LED4: Blue LED LD4 labeled PC8 is connected to the I/O PC8 of STM32F100RB*.
PC[15:0] are mapped to the GPIO Port C, where GPIO stands for General purpose I/O.
PA[15:0] are mapped to the GPIO Port A, where GPIO stands for General purpose I/O.
The Boundary address for the GPIO Port C is 0x4001 1000 - 0x4001 13FF from the memory map.
The Boundary address for the GPIO Port A is 0x4001 0800 - 0x4001 0BFF from the memory map.
Check the GPIO register bank to get the correct addresses.
B1: Push button B1 labeled USER is connected to the I/O PA0 of TM32F100RB* and can be used as WAKE-UP.
B2: Push button B2 labeled RST is dedicated to the RESET pin of STM32F100RB*.
Address of GPIO_CRH (Port Configuration Register for PC15 -> PC8) is given by:
Base Address + Offset = 0x4001 1000 + 0x04 = 0x4001 1004
Wirte the correct value to the GPIO register to activate a GPIO.
e.g. The bit 4 of RCC_APB2ENR (APB2 Peripheral Clock Enabele Register) is set to enable Port C.
Please note that GPIO registers are different from ARM core registers.
Here are some relevant links for your references
UM0919 User Manual, STM32 value line Discovery
RM0041 Reference manual, STM32F100xx advanced ARM-based 32-bit MCUs
Cortex-M3 Devices Generic User Guide
Cortex-M3 Technical Reference Manual - ARM Information Center
Cortex-M3 programming manual
Memory Map - Boundary address
RCC register map
GPIO register map
This page last modified:
Friday, 15-Mar-2019 15:34:56 CST
Copyright: Department of Computer Science, University of Regina.