tinySA/demos/STM32/RT-STM32F103-MAPLEMINI
Giovanni Di Sirio b529e1b88e Separate trace module, simplified tracer configuration.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9239 35acf78f-673a-0410-8e92-d51de3d6d3f4
2016-04-05 07:36:15 +00:00
..
.cproject git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7826 35acf78f-673a-0410-8e92-d51de3d6d3f4 2015-03-28 18:10:58 +00:00
.project Fixed bug #609. 2015-09-21 11:01:37 +00:00
Makefile Fixed bug #719. 2016-03-01 08:09:19 +00:00
chconf.h Separate trace module, simplified tracer configuration. 2016-04-05 07:36:15 +00:00
halconf.h git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9153 35acf78f-673a-0410-8e92-d51de3d6d3f4 2016-03-23 18:43:19 +00:00
main.c Fixed calls to test suite in all applications. 2016-04-02 07:11:56 +00:00
mcuconf.h git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9153 35acf78f-673a-0410-8e92-d51de3d6d3f4 2016-03-23 18:43:19 +00:00
readme.txt Fixed bug #719. 2016-03-01 08:09:19 +00:00
usbcfg.c Mass license update. 2016-03-18 10:29:35 +00:00
usbcfg.h git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9153 35acf78f-673a-0410-8e92-d51de3d6d3f4 2016-03-23 18:43:19 +00:00

readme.txt

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

*****************************************************************************
** ChibiOS/RT port for ARM-Cortex-M3 STM32F103 on LeafLabs MapleMini       **
*****************************************************************************

** TARGET **

The demo runs on the MapleMini with the original MapleMini bootloader.

You can also use this firmware without the original bootloader. To do so,
pass USE_MAPLEMINI_BOOTLOADER=0 to make:

> make USE_MAPLEMINI_BOOTLOADER=0

** The Demo **

This demo flashes the board LED using a thread. Also, a simple command shell
is activated on virtual serial port via USB-CDC driver.

** Build Procedure **

The demo has been tested by using the free arm gcc embedded toolchain.
Just modify the TRGT line in the makefile in order to use different GCC ports.

** Flashing Target Board **

To flash the firmware to the maplemini, you can use dfu-util. While the MapleMini is connected via USB and
still in bootloader mode, just run

     > dfu-util -a1 -d 1eaf:0003 -D build/ch.bin -R

If you compiled without the bootloader support, you will have to flash via the
original serial flashing method or via SWD. For the serial method please see
http://static.leaflabs.com/pub/leaflabs/maple-docs/latest/bootloader.html#id7
for a howto. there you can also get the official bootloader files.
As a quick reference:

  1) connect TTL UART:
     TX to maple rx1 ("25")
     RX to tx1 ("26")
     GND to gnd
     3.3V to vcc  or  5V to vin
  
  2) hold RESET and BUT buttons, release RESET, then after a sec BUT
     (this sets the STM32 into serial upload mode)
  
  3) use stm32loader.py from the link above to upload the firmware
     > stm32loader.py -p <uart-device> -evw build/ch.bin
  
  4) reset device

** Notes **

Some files used by the demo are not part of ChibiOS/RT but are copyright of
ST Microelectronics and are licensed under a different license.
Also note that not all the files present in the ST library are distributed
with ChibiOS/RT, you can find the whole library on the ST web site:

                             http://www.st.com