STM32VLDISCOVERY¶
Pinout¶

st-link¶
sudo apt install libusb-1.0-0-dev
git clone https://github.com/eerimoq/stlink
./autogen.sh
./configure
make
sudo cp etc/udev/rules.d/49* /etc/udev/rules.d
udevadm control --reload-rules
udevadm trigger
modprobe -r usb-storage && modprobe usb-storage quirks=483:3744:i
st-util -1
arm-none-eabi-gdb app.out
$ target extended-remote localhost:4242
Plug in the board in the PC.
Pin functions¶
These are the default pin functions in Simba.
Function | Pin |
---|---|
UART0 TX | PA9 |
UART0 RX | PA10 |
UART1 TX | PA2 |
UART1 RX | PA3 |
UART2 TX | PC10 |
UART2 RX | PC11 |
SPI0 SCK | PA5 |
SPI0 MISO | PA6 |
SPI0 MOSI | PA7 |
I2C0 SCL | PB8 |
I2C0 SDA | PB9 |
Default system features¶
The default configuration includes those major features. They are all
initialized by sys_start()
at the startup of the application.
Drivers¶
Supported drivers for this board.
- bmp280 — BMP280 temperature and pressure sensor
- ds18b20 — One-wire temperature sensor
- ds3231 — RTC clock
- eeprom_i2c — I2C EEPROM
- eeprom_soft — Software EEPROM
- flash — Flash memory
- gnss — Global Navigation Satellite System
- hd44780 — Dot matrix LCD
- hx711 — HX711 ADC for weigh scales
- i2c — I2C
- i2c_soft — Software I2C
- jtag_soft — Software JTAG
- owi — One-Wire Interface
- pin — Digital pins
- sht3xd — SHT3x-D Humidity and Temperature Sensor
- uart — Universal Asynchronous Receiver/Transmitter
- xbee — XBee
- xbee_client — XBee client
Library Reference¶
Read more about board specific functionality in the STM32VLDISCOVERY module documentation in the Library Reference.
Memory usage¶
Below is the memory usage of two applications:
- The minimal-configuration application is configured to only include the bare minimum of functionality for the low level kernel to run. That is, the thread scheduler and system tick.
- The default-configuration application is built with the default configuration, including a lot more functionality. See the list of Default system features above for a summary.
Application | Flash | RAM |
---|---|---|
minimal-configuration | 2816 | 1679 |
default-configuration | 73984 | 5937 |
Default configuration¶
Default Standard Library configuration.