File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * ~
2+ * .o
Original file line number Diff line number Diff line change 1+ # STM8 breakout board
2+
3+ Pins 1:1 vom STM8S103F3P6 auf die Pinleisten rausgeführt.
4+ LED Test (rot) an PB5 (Pin 11)
5+
6+
7+ ## Compiler
8+
9+ Anleitungen:
10+ http://www.cnx-software.com/2015/04/13/how-to-program-stm8s-1-board-in-linux/
11+
12+ STM8-Support erst ab Version 3.4 in Ubuntu 14.10. Für 14.4:
13+
14+ add-apt-repository ppa:laczik/ppa
15+ apt-get update
16+ apt-get install sdcc
17+
18+ git clone https://github.com/vdudouyt/stm8flash.git
19+ cd stm8flash
20+ make
21+ sudo make install
22+
23+ Beispiele besorgen:
24+
25+ git clone https://github.com/vdudouyt/sdcc-examples-stm8.git
26+ cd sdcc-examples-stm8
27+
28+ Sind eigentlich für STM8L gedacht, da ist die Pinbelegung etwas anders und
29+ muss entsprechend angepasst werden. Am Ende hochladen:
30+
31+ stm8flash -c stlinkv2 -p stm8s103?3 -w blinky.ihx
32+
33+
34+
35+ ## Programmer
36+
37+ STM8 verwendet SWIM, STM32 aber SWD
38+
39+ STM8-Board: SWIM-Verbinder P3
40+ 1 3V3
41+ 2 SWIM (PD1)
42+ 3 GND
43+ 4 NRST
44+
45+ Discovery STM32F0308 als ST-Link/V2:
46+ Belegung CN3 SWD:
47+ 1 ? detect oder so?
48+ 2 JTCK/SWCLK
49+ 3 GND
50+ 4 JTMS/SWDIO
51+ 5 NRST
52+ 6 SWO (=SWIM?)
53+
54+
55+
56+ ## denkbare Arduino-Zuordnung
57+
58+ feste Kommunikationspins:
59+ STM8 Arduino
60+ Pin Name Alt Pin Alt
61+ D6 RX Ain6 0 D0
62+ D5 TX Ain5 1 D1
63+ A3 SS 10 B2 PWM
64+ C6 MOSI 11 B3 PWM
65+ C7 MISO 12 B4
66+ C5 SCK 13 B5 LED
67+ B5 SDA LED 18 C4 Ain4
68+ B4 SCL 19 C5 Ain5
69+
70+ analog:
71+ STM8 Arduino
72+ Pin Name Alt Pin Alt
73+ C4 Ain2
74+ D2 Ain3
75+ D3 Ain4
76+ (D5 Ain5 TX)
77+ (D6 Ain6 RX)
78+
79+ PWM:
80+ STM8 Arduino
81+ Pin Name Alt Pin Alt
82+ 3
83+ 5
84+ 6
85+ 9
86+ ( 10 )
87+ ( 11 )
88+
89+ LED: (Kollision)
90+ STM8 Arduino
91+ Pin Name Alt Pin Alt
92+ (B5 SDA 13 SCK)
93+
You can’t perform that action at this time.
0 commit comments