PRG-stm32-tips
STM32 STM32F103C8T6
ボード
(2PC):https://amzn.to/2GDeH5g
(20PC):https://amzn.to/2u3Bunm
(5PC):https://amzn.to/2SeQwRS
(買ったことないけれど)::https://amzn.to/2PVNCmb
(3PC)::https://amzn.to/34Hsnsq
(Writer)::https://amzn.to/2PVOoQ7
(STLinkV2)::https://amzn.to/2oXyhGK
Lib
https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/Libraries
https://github.com/rogerclarkmelbourne/Arduino_STM32
ピンアサイン
https://ht-deko.com/arduino/stm32f103c8t6.html
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ANALOG | A | A | A | A | A | A | A | A | A | A | |||||||||||||
I2C | SCL2 | SDA2 | |||||||||||||||||||||
GND | GND | 3V3 | RST | B11 | B10 | B1 | B0 | A7 | A6 | A5 | A4 | A3 | A2 | A1 | A0 | C15 | C14 | C13 | VBAT | ||||
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | GND | |||
USB | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | DCLK | ||
CNT | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | DIO | ||
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 3V3 | |||
B12 | B13 | B14 | B15 | A8 | A9 | A10 | A11 | A12 | A15 | B3 | B4 | B5 | B6 | B7 | B8 | B9 | 5V | GND | 3V3 | ||||
I2C | SCL1 | SDA1 | |||||||||||||||||||||
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
HID
https://github.com/arpruss/USBComposite_stm32f1
https://qiita.com/nanbuwks/items/f7f2377c2b252e936baa
ADC
http://nuneno.cocolog-nifty.com/blog/2016/12/stm323-a797.htmladc 速度(25KHz?)
STM32 & DSP (FFT)
https://qiita.com/tlab/items/63cfce05881b63f4b782
Arduino IDE に追加
https://raw.githubusercontent.com/stm32duino/BoardManagerFiles/master/STM32/package_stm_index.json
https://www.denshi.club/pc/nucleo/nucleoarduino1blink.html
!!!
http://www.st.com/en/evaluation-tools/stm32vldiscovery.html?sc=stm32-discovery
http://www.st.com/en/evaluation-tools/stm32-mcu-discovery-kits.html?querycriteria=productId=LN1848
STM32-Arduino
(libusb-32bit をyast でインストールすること)
https://github.com/rogerclarkmelbourne/Arduino_STM32
https://qiita.com/nanbuwks/items/5a01b924b192d5d36b31
bootloader ::
https://github.com/rogerclarkmelbourne/STM32duino-bootloader/tree/master/binaries
https://github.com/rogerclarkmelbourne/STM32duino-bootloader
HID bootloader::
https://github.com/rogerclarkmelbourne/STM32_HID_Bootloader
OTHER_ONE(STM32F3???)https://github.com/jaretburkett/Arduino_STM32
https://github.com/jaretburkett/STM32duino-bootloader
/etc/udev/rules.d/45-maple.rules に
ATTRS{idProduct}=="0003", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple", ENV{ID_MM_DEVICE_IGNORE}="1" ATTRS{idProduct}=="0004", ATTRS{idVendor}=="1eaf", MODE="664", GROUP="plugdev" SYMLINK+="maple", ENV{ID_MM_DEVICE_IGNORE}="1"
追加
udevadm control --reload-rules
ST 標準
https://github.com/stm32duino/Arduino_Core_STM32
https://github.com/stm32duino/wiki/wiki/Add-a-new-variant-%28board%29
appendix
http://dubstylee.net/v/stm32duino_core/
ST-Link-V2
yast2 で stlink-gui と stlink をインストール
DFU で書き込めない
/dev/ttyACM0 serial...dfu-util: Cannot open DFU device CHECK udevadm info -a -n /dev/ttyACM0
http://dfu-util.sourceforge.net/
# groupadd plugdev zypper install dfu-tools udevadm trigger udevadm control -–reload-rules
ARM toolchain
https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
TIPs
https://ht-deko.com/arduino/stm32f103c8t6.html
http://gsmcustomeffects.hatenablog.com/entry/2016/10/24/015907
https://gsmcustomeffects.github.io/stm32
http://yuqlid.hatenablog.com/entry/2016/06/13/004001
http://nuneno.cocolog-nifty.com/blog/2015/05/arduino-ide-164.html
http://nuneno.cocolog-nifty.com/blog/2015/05/stm32f103c8t6l-.html
http://morecatlab.akiba.coocan.jp/lab/index.php/2016/02/arduino_stm32-bpb/
mbed
https://lowreal.net/2016/04/14/3
others
http://blog.goo.ne.jp/sabotenboy_london/e/f54a7138801cb7b46d1dc980a20897c8
http://blog.goo.ne.jp/sabotenboy_london/e/e05786d24c1de69f3c03c1a39072d444
http://wk.redox.ws/elec/arm/stm32/stm32f103c8t6
http://miqn.net/introduction/index.html