STM32LAB
Zur Dokumentation geht es hier:
http://elk.informatik.hs-augsburg.de/hhweb/labor/arm/stm32lab
1 Neuigkeiten
Es gibt zwei Git Repositories fuer Beispielprogramme:
https://github.com/hsa-embedded/stm32lab
Im Herbst 2014 arbeitet Andreas Schumann an Software-Beispielen, die er in dieses Repository fuellt.
git://hhoegl.informatik.fh-augsburg.de/srv/git/stm32-at-hsa.git
Dieses Repo ist schon etwas aelter und enthaelt meine urspruengliche Sammlung von Programmbeispielen.
2 "Fremde" Programmbeispiele und Tutorials
-
http://www.emcu.it/STM32/STM32Library/TwoWordsConcerningSTM32Library.html
Beispiel STM32DiscoveryUsart.zip
http://www.keytosmart.com/programming-stm32-usart-gcc-tools-part-1
http://www.keytosmart.com/programming-stm32-usart-gcc-tools-part-2/
Beispiel STM32DiscoveryInterrupts.zip
Tutorials auf embedds.com
- Liste der Cortex-M3/STM32 Tutorials: http://www.embedds.com/arm-cortex-tutorials/
- http://www.embedds.com/do-we-need-arm/
- http://www.embedds.com/programming-stm32f10x-io-port-pins/
- http://www.embedds.com/programming-stm32-usart-using-gcc-tools-part-1/
- http://www.embedds.com/programming-stm32-usart-using-gcc-tools-part-2/
- http://www.embedds.com/using-direct-memory-access-dma-in-stm23-projects/
- http://www.embedds.com/introducing-to-stm32-adc-programming-part1/
- http://www.embedds.com/introducing-to-stm32-adc-programming-part2/
- http://www.embedds.com/stm32-nucleo-boards-enable-faster-prototyping/
- http://www.embedds.com/stm32-interrupts-and-programming-with-gcc/
- http://www.embedds.com/st32mvldiscovery-project-template-for-gcc/
- http://www.embedds.com/setting-arm-gcc-development-environment/
- http://www.embedds.com/programming-stm32-discovery-using-gnu-tools-startup-code/
- http://www.embedds.com/programming-stm32-discovery-using-gnu-tools-linker-script/
- http://www.embedds.com/st32mvldiscovery-project-template-for-gcc/ (STM32DiscoveryTemplate.zip)
Using STM32 discovery kits with open source tools (stlink, summon-arm-toolchain, Chibios)
https://raw.github.com/texane/stlink/master/doc/tutorial/tutorial.pdf
STM32 Tutorial von Diller Technologies (CooCox, CoIDE)
Flashing the STM32VL with stlink, http://gpio.kaltpost.de/?page_id=148
Using the USART, http://gpio.kaltpost.de/?page_id=167
Tutorials von Hussam Al-Hertani
STM32F0Discovery Under Linux Tutorial Part 1 – Setting up the GCC ARM Toolchain, OpenOCD and stlink
http://hertaville.com/2013/09/02/stm32f0discovery-part-1-linux/
STM32F0Discovery Under Linux Tutorial Part 2 – Using a Minimalist Integrated Development Environment From the Command Line (mit Beispiel iotogglem0)
http://hertaville.com/2013/09/03/stm32f0discovery-command-line-ide
Tutorial fuer Windows
Discovering the STM32 Microcontroller von Geoffrey Brown (verwendet stlink)
http://developers.stf12.net/cpp-demo/gcc-linker-script-and-stm32-a-tutorial
http://developers.stf12.net/projects-list
STM32F0-discovery default demo using FreeRTOSv7.5.2, codesourcery arm-gcc, and Eclipse.
- https://sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery/setting-up-eclipse-for-stm32-discovery-development
STLINK
http://hackaday.com/2011/10/17/how-to-develop-for-stm32-discovery-boards-using-linux/
- http://www.triplespark.net/elec/pdev/arm/stm32.html
- http://hackaday.com/2012/09/27/beginners-look-at-on-chip-debugging/
- Game of snake http://hackaday.com/2012/09/21/classic-game-of-snake-on-an-arm-controller/
- http://balau82.wordpress.com/2013/08/14/flashing-the-stm32-p152-board-with-openocd/
- http://en.radzio.dxp.pl/stm32vldiscovery
- http://dangerousprototypes.com/tag/stm32
STM32/ARM Cortex-M3 HOWTO: Development under Ubuntu (Debian)
- https://github.com/JorgeAparicio
Beispielprogramme von Martin Thomas
http://siwawi.bauing.uni-kl.de/avr_projects/arm_projects/index_cortex.html
- http://www.mikrocontroller.net/articles/STM32
3 To Do
URL: http://elk.informatik.hs-augsburg.de/hhwiki/es2todo
printf() umsetzen ueber
- UART
- Semihosting
Retargetting a C Library Function (printf() auf die UART Konsole, mit Keil MDK) http://doulos.com/knowhow/arm/Retargetting_a_C_library_function/
- Serielle Kommunikation über UART mit Interrupts.
Serieller GDB Debug Stub
siehe z.B. https://groups.google.com/forum/#!topic/diyrovers/GtfSQDLP2_E
Adafruit 1.8" SPI TFT display, 160x128 18-bit color, ST7735R
http://www.adafruit.com/products/618
Von Adafruit gibt es eine Bibliothek für den ST7735, allerdings nur für den Arduino. Gibt es auch Bibliotheken in C?
- Servo Demo (siehe stm32-servo.c und stm32-servo-4.c)
- FreeRTOS Demo
- CMSIS RTOS, a.k.a. "Keil RTX" (BSD Lizenz)
- STM32Cube (Nachfolger Std-Periph-Lib), STM32CubeMX (Konfigurationsgenerator)
4 Materialsammlung
Viele Fundsachen zum STM32:
Eclipse zur Entwicklung fuer den STM32
http://hhoegl.informatik.fh-augsburg.de/pub/stm32lab/Hauffe-Fischer-Eclipse/bericht.html
Demos der Standard Peripherie-Lib unter Linux
http://hhoegl.informatik.fh-augsburg.de/pub/stm32lab/stdperiph-demos-hh