-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.TXT
66 lines (31 loc) · 1.8 KB
/
README.TXT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
8 channel trigger to MIDI converter module in Eurorack format
copyright Vladimir Pantelic (av500) / 2015, see LICENSE
based on an STM32F030F4P6 module from 39board in China, available e.g. at Aliexpress:
http://www.aliexpress.com/store/group/39-board-Development-Board/1305771_260227473.html
See https://www.muffwiggler.com/forum/viewtopic.php?t=146538 for description and discussion
To compile and rund this code you need the following:
1) Toolchain
Download and unzip the toolchain at:
https://launchpad.net/gcc-arm-embedded/+download
Add the PATH to the compile to your PATH variable, e.g.
export PATH=$PATH:/opt/gcc-arm-none-eabi-4_9-2014q4/arm-none-eabi/bin/
2) STM32CubeF0
This project uses the HAL library for the STM32F0 series, download the package from:
http://www.st.com/web/en/catalog/tools/PF260612
Unpack STM32CubeF0 and edit the CUBEPATH variable at the top of the Makefile:
CUBEPATH = ../STM32Cube_FW_F0_V1.7.0/Drivers/
3) OpenOCD
To flash the SW to the CPU/module you need to install openOCD and make sure it's in the PATH. you need an STLINK or compatible SWD debugger, edit stm32f0.cfg to switch from v2.1 to v.2. For some reason SWD with the 030 series seems to work much better when using the reset line, so you need to connect that one as well besides SWCLK and SWDIO
4) Building
To build, simply type
make
which will build the project in the build_tiny/ folder
To program the board, use
make p (or make program)
For a debug build that uses the UART to output debug logs instead of MIDI data, uncomment
#CDEFS += -DDEBUG
in the Makefile
You can also build the project for the STM32F0-Discovery board, in that case prepend TARGET=disco to the make calls
TARGET=disco make (or edit the Makefile)
and edit stm32f0.cfg to use STLINK v2 instead of v2.1
have fun!