https://git.dryder.de/ ----- * CPU (vorhanden) -> http://wiki.stm32duino.com/index.php?title=Blue_Pill ** STM32F103C8T6 ** ARM Cortex M3 ** 64 KB/128 KB Flash; 20 KB RAM ** LED = PC13 (leuchtet bei LOW) * Display (1 vorhanden) -> http://www.waveshare.com/2.13inch-e-paper-hat.htm http://www.waveshare.com/wiki/2.13inch_e-Paper_HAT http://www.waveshare.com/wiki/File:2.13inch_e-Paper_HAT-code.7z https://www.crystalfontz.com/product/cfap122250a00213-epaper-display-122x250-eink (-> Zip-Datei) ** SPI ** schwarz/weiß 250 × 122 Pixel * Akku (3x vorhanden) -> https://www.ebay.de/p/2-X-Panasonic-NCR18650B-3-6v-3400-mAh-Lithium-ionen-Akku/4003304682?iid=292047078780 ** Ladung bis 4,2V * GPS (2x vorhanden, Olli?) ** https://www.sparkfun.com/products/13740 ** http://www.telit.com/gnss/ (http://www.telit.com/gnss/sc872-a/) * SD-Kartenslot (4x vorhanden) -> http://www.exp-tech.de/pololu-breakout-board-for-microsd-card * Ladeschaltung (5x in fernost bestellt) -> http://www.ebay.com/itm/142421272780 * Spannungsversorgung (3x vorhanden) -> http://www.exp-tech.de/pololu-3-3v-step-up-step-down-spannungsregler-s7v8f3?___SID=U * Touch (3x vorhanden) -> http://www.exp-tech.de/adafruit-12-key-capacitive-touch-sensor-breakout-mpr121 ----- HW-Anbindung: GPS: UART -> PA9 (TX1), PA10 (RX1) Display: SPI2 -> PB12 (NSS2), PB13 (SCK2), PB14 (MISO2), PB15 (MOSI2), PA8 (Busy), Reset des Display auf Vcc SD-Karte: SPI1 -> PA7 (MOSI1), PA6 (MISO1), PA5 (SCK1), PA4 (NSS1) Touch: I2C-1 + WakeUp-IR (DigitalIn) -> PB6 (SCL1), PB7 (SDA1), PA0 (WKUP) Akku: AnalogIn -> PA1 (ADC1 - 12bit: 0-4095) (Messbereich: 0 - 4,35 V; Widerstandsteiler E24: 120k & 91k) For Future Use: 2x Digital Out: zum Zuschalten eines Bluetooth- und eines ESP8266-Moduls Bluetooth-Modul: UART-over-BT (RX vom BT-Modul an PA10/RX1) ESP8266: WLAN-Anbindung (WebServer, etc.) (Anbindung per UART: PA2/TX2 & PA3/RX2) ----- Make: (*http://gnuwin32.sourceforge.net/packages/make.htm) (**http://gnuwin32.sourceforge.net/packages/libintl.htm) (**http://gnuwin32.sourceforge.net/packages/libiconv.htm) *https://sourceforge.net/projects/mingw/files/MinGW/Extension/make/ {{ C:\Users\edener\Desktop\seg\stm32f103c8t6\stm32f103-bootloader-master\STM32F1>make.exe --version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i386-pc-mingw32 }} Compiler: GCC ARM Embedded Toolchain (vormals GNU Tools for ARM Embedded Processors) {{D:\gcc-arm-none-eabi-6-2017-q2-update-win32\arm-none-eabi\bin}} https://developer.arm.com/open-source/gnu-toolchain/gnu-rm https://www.mikrocontroller.net/articles/ARM_GCC https://gnu-mcu-eclipse.github.io/toolchain/arm/install/ aus Arduino: {{ C:\Users\edener\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc.8.3-2014q1\bin>arm-none-eabi-gcc.exe --version arm-none-eabi-gcc.exe (GNU Tools for ARM Embedded Processors) 4.8.3 20140228 (release) [ARM/embedded-4_8-branch revision 208322] Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. }} ----- Bootloader: https://github.com/trueserve/stm32f103-bootloader Blue Pill = TARGET_GENERIC_F103_PC13 (GPIOC 13) {{ set PATH=C:\Users\edener\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc.8.3-2014q1\bin\;%PATH% make.exe generic-pc13 pause }} ----- Download-Batch: {{ :loop1 rem dfu-util -l dfu-util -a 2 -D <file>.bin if %ERRORLEVEL% EQU 0 goto :end timeout /t 1 goto :loop1 :end echo Download beendet pause }} ----- Applikation: - im Linker-Skript (*.ld): {{ rom (rx) : ORIGIN = 0x08002000, LENGTH = 120K }} - zu Beginn der Applikation die Vector-Tabelle ummappen: {{SCB->VTOR = 0x08002000}} ----- SW-Libs: https://github.com/mikalhart/TinyGPS SW-Links: https://visualgdb.com/w/tutorials/category/tutorials/embedded/stm32_periph/ https://www.cs.indiana.edu/~geobrown/book.pdf ----- Spannungskennlinie der Akkus (Abschätzung Ladezustand anhand der Spannung): http://budgetlightforum.com/node/11772 -----