Skip to content

Instantly share code, notes, and snippets.

@juancols
Last active May 14, 2024 22:10
Show Gist options
  • Save juancols/563723ad786982447118ba58d4972960 to your computer and use it in GitHub Desktop.
Save juancols/563723ad786982447118ba58d4972960 to your computer and use it in GitHub Desktop.
STM32 toolchain setup on macOS M1

STM32 toolchain setup on macOS M1

Note: these steps were tested on a MacBook Air M1 2020, 8 GB RAM and macOS Ventura 13.0.1

STM32CubeProgrammer

1. Download

You can get the latest version of the STM32CubePrg-Mac package at STm dev-tools website. The version I used in this guide was the 2.12.0. image

2. Installation

Launch a new terminal and go to the directory where the downloaded package is located (Desktop in my case) and unzip it:

cd ~/Desktop
unzip en.stm32cubeprg-mac_v2-12-0.zip

Run the installer by opening SetupSTM32CubeProgrammer-2_12_0_macos located inside the .app package:

cd SetupSTM32CubeProgrammer-2.12.0.app/Contents/MacOs
open SetupSTM32CubeProgrammer-2_12_0_macos

If the error "macOS cannot verify that this app is free from malware" pops-up:

image

Go to System Settings > Privacy & Security and click on "Open Anyway". Then relauch the open command in the terminal.

image

The installation wizard will appear, and from this point on it's easy peasy:

image

@kennyhor
Copy link

Great, solved my problem, thank you
MacBook Pro M1 2020 Ventura 13.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment