STM32F3DISCOVERY dev board library for LDC.
D Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
cortexm @ 6b165ae
examples
out
semihosting @ fe64402
source/stm32f3discovery
.editorconfig
.gitignore
.gitmodules
LICENSE
Makefile
README.md
layout.ld

README.md

STM32F3DISCOVERY

STM32F3DISCOVERY dev board library for LDC.

Tools

  • Ubuntu 17.04
$ apt install -y openocd gdb-arm-none-eabi gcc-arm-none-eabi ldc

Prerequirements

Create udev-rules files and reload udev-rules

$ cat /etc/udev/rules.d/99-fdi.rules
# FT232 - USB <-> Serial Converter
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", GROUP="uucp"
$ cat /etc/udev/rules.d/99-openocd.rules
# STM32F3DISCOVERY rev A/B - ST-LINK/V2
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", GROUP="uucp"

# STM32F3DISCOVERY rev C+ - ST-LINK/V2-1
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", GROUP="uucp"
$ sudo udevadm control --reload-rules

Check if you are in uucp group.

$ groups $(id -nu)| grep uucp
(..) uucp (..)

If not, add yourself to uucp group.

$ sudo usermod -a -G uucp $(id -nu)

Example

LED

Connect STM32F3discovery and run openocd.

$ openocd -f board/stm32f3discovery.cfg

make led-run in another terminal.

$ make led-run