Skip to content
reed-dan edited this page Feb 9, 2024 · 1 revision

Download Keil

Install Keil

Adding Board

Adding MM32spin05pf board

By default the MM32SPIN05PF mcu is not included as a built in packs with KEIL. Don’t be worried though adding the board is easy, as someone else has already built the necessary files.

  1. Installing the MM32SPIN05PF pack in Keil

  2. Inside Keil open the Pack Installer Keil Pack Installer

  3. Search for MM32SPIN05PF and install its associated pack

  4. You can also click on Examples and download any example projects included with the pack.

  5. This usually includes simple projects such as Blink Keil Pack Installer 2

Downloading MM32spin05pf Blink example project

  1. Open the Keil Pack Installer
  2. Search for MM32SPIN05PF
  3. Select the board
  4. ON the left screen click the Examples tab
  5. Click Copy on the "MM32_MBSPIN0xx_Board GPIO LED blinky" option
  6. Choose a location to save the files *no spaces in the folder path, this will help if you use PYOCD later
  7. Check the box "Launch uVision" Screenshot 2024-01-25 6 34 32 PM

Setup Debugging/SWD Device

  1. Once open press Alt+F7 to open the "options for Target" menu
  2. On the Target tab update the Arm Compiler to "Use default compiler version 6" Screenshot 2024-01-25 6 50 33 PM
  3. On the output tab make sure "Create HEX file", click "Select Folder for Objects.." if you want to change the folder where the HEX file will be saved, and change the name of the file from "MBOUT" in the Name of Executable field if you want
    • You will need the HEX file if you choose to flash with PYocd
  4. On the Debug tab you will select your SWD programmer
  5. Click Settings and make sure you have a device in the SW Device section Screenshot 2024-01-25 6 51 13 PM

Opening Project

Compile Project

Flashing

Debugging