readme.txt 2.0 KB

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