Skip to content
Eric Helgeson edited this page Dec 21, 2020 · 34 revisions

Setup Arduino IDE

  1. Install Arduino IDE version 1.8.x - https://www.arduino.cc/en/software
    1. Instructions may require extra steps to allow for serial/usb access depending on your OS. Read all instructions carefully.
  2. Follow these instructions carefully as well - https://github.com/rogerclarkmelbourne/Arduino_STM32/wiki/Installation
    1. Note I used the Arduino SAM Boards (32-bits ARM) Cortext-M3) version 1.6.12
    2. Additional Help https://sites.google.com/site/ericmklaus/projects-1/stm32f103-minimum-system-development-board/arduino-ide-for-stm32103-board
    3. Some additional hints here - https://github.com/ztto/ArdSCSino-stm32/issues/5
  3. Install SdFat - Tools -> Manage Libraries -> SdFat by Bill Greiman version 2.0.2
  4. Make sure the correct board is selected Generic STM32F103C series - Copy the latest .ino file into a sketch and compile.
  5. Flash using your preferred method.

Flashing

Using UART Serial

I used these - but any USB->TTL device should work https://www.amazon.com/gp/product/B07D6LLX19/

  1. Remove SD Card if you have one installed.
  2. Set the BOOT0 jumper to 1
  3. Connect to your UART flashing device via the debug pins, then connect to your computer.
  4. Click the reset button on the BluePill to reset and enter programming mode.
  5. In Arduino Studio click Upload
    • Note you may have to click Upload more than once, or try restarting more than once.
  6. You should see the LED flashing if you have no SD Card.
  7. Unplug UART device.
  8. Set the BOOT0 jumper to 0
  9. Insert SD Card, boot on your favorite Mac!

Making Gerber files

https://support.jlcpcb.com/article/44-how-to-export-kicad-pcb-to-gerber-files

Parts

Version 1.0-b

STM32F103C8T6 (U1) aka BluePill board. Beware of fake/scams. Look for reviews. Amazon, ebay, etc.

Mouser Cart https://www.mouser.com/ProjectManager/ProjectDetail.aspx?State=EDIT&ProjectGUID=db967d46-a51a-4a0e-a350-8f503b2f02cf

Not available on Mouser:

50 PIN SCSI header https://lcsc.com/product-detail/IDC-Connectors_BOOMELE-Boom-Precision-Elec-C30006_C30006.html

Optional

Floppy/Berg Power header https://www.mouser.com/ProductDetail/571-1718254

  • Required if your machine does not supply power via TERM POWER. For example a Mac Plus or Mac with a Analog/PSU board that has not been recapped.