Skip to content

ITead Maple

Pasted image 20230316165258.png

Overview

This board uses the STM32F103RBT6 chip, which is a medium-density chip.
- Tip: Pressing the 'Reset' button and immediately pressing the 'Boot' button puts the board in 'Perpetual bootloader mode', which gives you more time to upload sketches. - Pin 0 is Serial2 RX / Pin 1 is Serial2 TX


Arduino Setup

  1. Install board support:
  2. Use "Maple (Rev 3)" board: Pasted image 20230316170524.png

Updating Bootloader

To use this board with Arduino, you need to do two things: 1. Install board support (see above section): 2. Install the STM32duino bootloader: 1. Get the maple_rev5_boot20.bin here 2. Burn using STLink or via a USB-to-Serial cable. 1. USB-to-Serial instructions NOTE: The original Maple bootloader can be found here 3. After burning the bootloader, the board should be blinking slowly and should show up in 'Device Manager' under 'libusb-win32-devices' as 'Maple DFU': Pasted image 20230316170618.png 4. Running dfu-util -l should display the following: Pasted image 20230316170625.png 5. Upload 'Blink' Sketch: - In Arduino, open the 'Examples/01. Basics/Blink' sketch and change the LED Pins: Pasted image 20230316170644.png - Set the board configuration to 'Maple (Rev 3)'. - Compile the sketch. - Open a CMD window in Documents\Arduino\hardware\Arduino_STM32-master\tools\win and run: dfu-util -a 1 -RD "C:\Users\me\AppData\Local\Temp\arduino-sketch-1A9B53EE5A5605D73A1329F94E782A5F\Blink.ino.bin"

Pasted image 20230316170719.png

  • The sketch should upload and a new serial device should show up in "Device Manager": Pasted image 20230316170708.png

This board doesn't provide a SWD interface, however, section 2.3.24 of the STM32F103RBT6 datasheet mentions that the following pins are SWD pins:

  • TMS -> SWDIO
  • TCK -> SWCLK

    2.3.24 Serial wire JTAG debug port (SWJ-DP)

    The Arm SWJ-DP Interface is embedded. and is a combined JTAG and serial wire debug port that enables either a serial wire debug or a JTAG probe to be connected to the target. The JTAG TMS and TCK pins are shared with SWDIO and SWCLK, respectively, and a specific sequence on the TMS pin is used to switch between JTAG-DP and SW-DP."

Before burning the bootloader, do a Target -> Erase Chip.


Last update: 2023-03-30