diff options
Diffstat (limited to 'lib/chibios/demos/STM32/RT-STM32F103-MAPLEMINI/readme.txt')
-rw-r--r-- | lib/chibios/demos/STM32/RT-STM32F103-MAPLEMINI/readme.txt | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/chibios/demos/STM32/RT-STM32F103-MAPLEMINI/readme.txt b/lib/chibios/demos/STM32/RT-STM32F103-MAPLEMINI/readme.txt new file mode 100644 index 000000000..e740af302 --- /dev/null +++ b/lib/chibios/demos/STM32/RT-STM32F103-MAPLEMINI/readme.txt | |||
@@ -0,0 +1,58 @@ | |||
1 | ***************************************************************************** | ||
2 | ** ChibiOS/RT port for ARM-Cortex-M3 STM32F103 on LeafLabs MapleMini ** | ||
3 | ***************************************************************************** | ||
4 | |||
5 | ** TARGET ** | ||
6 | |||
7 | The demo runs on the MapleMini with the original MapleMini bootloader. | ||
8 | |||
9 | You can also use this firmware without the original bootloader. To do so, | ||
10 | pass USE_MAPLEMINI_BOOTLOADER=0 to make: | ||
11 | |||
12 | > make USE_MAPLEMINI_BOOTLOADER=0 | ||
13 | |||
14 | ** The Demo ** | ||
15 | |||
16 | This demo flashes the board LED using a thread. Also, a simple command shell | ||
17 | is activated on virtual serial port via USB-CDC driver. | ||
18 | |||
19 | ** Build Procedure ** | ||
20 | |||
21 | The demo has been tested by using the free arm gcc embedded toolchain. | ||
22 | Just modify the TRGT line in the makefile in order to use different GCC ports. | ||
23 | |||
24 | ** Flashing Target Board ** | ||
25 | |||
26 | To flash the firmware to the maplemini, you can use dfu-util. While the MapleMini is connected via USB and | ||
27 | still in bootloader mode, just run | ||
28 | |||
29 | > dfu-util -a1 -d 1eaf:0003 -D build/ch.bin -R | ||
30 | |||
31 | If you compiled without the bootloader support, you will have to flash via the | ||
32 | original serial flashing method or via SWD. For the serial method please see | ||
33 | http://static.leaflabs.com/pub/leaflabs/maple-docs/latest/bootloader.html#id7 | ||
34 | for a howto. there you can also get the official bootloader files. | ||
35 | As a quick reference: | ||
36 | |||
37 | 1) connect TTL UART: | ||
38 | TX to maple rx1 ("25") | ||
39 | RX to tx1 ("26") | ||
40 | GND to gnd | ||
41 | 3.3V to vcc or 5V to vin | ||
42 | |||
43 | 2) hold RESET and BUT buttons, release RESET, then after a sec BUT | ||
44 | (this sets the STM32 into serial upload mode) | ||
45 | |||
46 | 3) use stm32loader.py from the link above to upload the firmware | ||
47 | > stm32loader.py -p <uart-device> -evw build/ch.bin | ||
48 | |||
49 | 4) reset device | ||
50 | |||
51 | ** Notes ** | ||
52 | |||
53 | Some files used by the demo are not part of ChibiOS/RT but are copyright of | ||
54 | ST Microelectronics and are licensed under a different license. | ||
55 | Also note that not all the files present in the ST library are distributed | ||
56 | with ChibiOS/RT, you can find the whole library on the ST web site: | ||
57 | |||
58 | http://www.st.com | ||