Mac Mojave STM32CubeProgrammer Install Tips

How to install STM32 core into the Arduino IDE, and any OS specific issues
Post Reply
Franke39
Posts: 30
Joined: Sat Mar 28, 2020 6:39 pm

Mac Mojave STM32CubeProgrammer Install Tips

Post by Franke39 »

(Note: There is no need to install Java to get the installer to run)

For those that want to set up the STM33duino using the STM32 Cores on a Mac running Mojave (10.14) here is what worked for me.

Follow the excellent instructions at: https://github.com/stm32duino/wiki/wiki/Getting-Started until the "Extra Step" portion:
(https://github.com/stm32duino/wiki/wiki ... extra-step) to install the STM32CubeProgrammer)

* Download the STM32Programmer at https://www.st.com/en/development-tools ... eprog.html
* Unzip it
* Right click on SetupSTM32CubeProgrammer-2.4.0.app (app version may be different)
* Select Show Package Contents
* Double click on MacOS
* Double click on “SetupSTM32CubeProgrammer-2_4_0_macos” to execute it
* Follow the instructions on the window that opens

The STM32CubeProgrammer is now installed.

Time to Test:
Connect your STM32 to your USB to Serial:

USB to TTL - STM32
Ground - Ground
5 volts - 5V (make sure USB to TTL is set to 5v, or if 3.3 volt, then connect it to the 3.3 pin)
TX - A10
RX - A9

Move jumper BOOT0 to 1, press reset, load Blink in the Arduino IDE examples.

Under Tools set the following options:
* Board > Generic STM32F1 Series (or what ever you have)
* Board Part Number > BluePill F10C8
* U(S)ART support: Enabled (generic Serial)
* USB Support (if available): None
* Optimize: Smallest (-Os default)
* C Runtime Library: Newlib Nano(default)
* Upload method: STM32CubeProgrammer (Serial)
* Port: (select your USB to TTL serial port)

With everything connected, click upload and you should see a flashing LED.

NOTE: to load the next program, you must press reset on the STM32 or it will error out.


*** I am new to the STM32 family so if there is anything is incorrect or misleading, please let me know ***
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Mac Mojave STM32CubeProgrammer Install Tips

Post by fpiSTM »

Thanks for this detailed instructions.
I guess this will help several other users.
Kenjutsu
Posts: 27
Joined: Tue Apr 07, 2020 10:58 am
Answers: 2

Re: Mac Mojave STM32CubeProgrammer Install Tips

Post by Kenjutsu »

The version of the JRE is also important: STM32CubeProgrammer Java version

I got caught out by this.
Pieter

OSX: 11.6.8
Arduino IDE: 1.8.19
PlatformIO: 6.1.4
STM32 Core: 2.3.0
Get a $5 off coupon on your first purchase at Kaiweets
Kaiweets Affordable & Smart Electrical Testing Tools
Post Reply

Return to “Installation and OS related”