# Swan Tool Chain on Mac

**URL:** <https://discuss.blues.com/t/swan-tool-chain-on-mac/474>\
**Category:** Tools & SDKs\
**Created:** [October 20, 2021, 1:15am UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474 "2021-10-20T01:15:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/jimm/32/16_2.png) [@JimM](https://discuss.blues.com/u/JimM)\
**Post date:** [October 20, 2021, 1:15am UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/1 "2021-10-20T01:15:39Z")

</div>

Trying to follow the SWAN quick start to set up the Arduino Tool Chain, Blinky compiles fine but will not upload. I have the STLINK-V3MINI but the “SetupSTM32CubeProgrammer-2.8.0.app” will not install. When I open it (even after allowing it to open in Mac security and privacy setting), I get no indication of it being installed. In Arduino Tool menu, selecting Upload Method STM32CubeProgrammer (SWD) results in this error, since the CubeProgrammer is not installed?:  
“An error occurred while uploading the sketch  
STM32CubeProgrammer not found (STM32\_Programmer\_CLI).  
Please install it or add ‘/bin’ to your PATH environment:

> **[STM32CubeProg - STMicroelectronics](https://www.st.com/en/development-tools/stm32cubeprog.html)**
>
> STM32CubeProg - STM32CubeProgrammer software for all STM32, STM32CubePrg-W32, STM32CubePrg-W64, Patch-CubeProg, STM32CubePrg-Lin, STM32CubePrg-Mac, STMicroelectronics

Aborting!”

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [October 20, 2021, 4:02pm UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/2 "2021-10-20T16:02:28Z")

</div>

Hi @JimM,

Yeah, I’ve been there. This tool is notoriously difficult to install (at least on macOS).

> [@JimM](#):
>
> I get no indication of it being installed

Can you elaborate on this? Do you see “STM32CubeIDE” in your Applications folder?

---

<div class="post-metadata">

**Author:** ![JimM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/jimm/32/16_2.png) [@JimM](https://discuss.blues.com/u/JimM)\
**Post date:** [October 20, 2021, 5:32pm UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/3 "2021-10-20T17:32:29Z")

</div>

Hello @RobLauer ,  
I uninstalled STM32CubeIDE and reinstalled it (and it shows up in the Mac Application Folder). STMCubeIDE starts up from LaunchPad OK.  
The install wizards are not starting upon double clicking either “SetupSTM32CubeProgrammer-2.8.0.app” or “SetupSTM32CubeMX-6.3.0”. ☹  
I am digging through ST install documentation but to no avail thus far. Any guidance is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [October 20, 2021, 5:38pm UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/4 "2021-10-20T17:38:35Z")

</div>

I was looking at the wrong app - do you have an “STMicroelectronics” folder in your Applications directory? And in there can you drill down to the STM32Cube directory to open the STM32CubeProgrammer app (it’s a few levels deep)?

Just curious to know if the apps were even installed or not.

---

<div class="post-metadata">

**Author:** ![JimM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/jimm/32/16_2.png) [@JimM](https://discuss.blues.com/u/JimM)\
**Post date:** [October 20, 2021, 6:02pm UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/5 "2021-10-20T18:02:05Z")

</div>

Hi @RobLauer,  
I left the default install locations when installing the STM32CubeIDE. However, there is no “STMicroelectronics” folder in my Applications Directory.

In my …/Users/jimmeckstroth folder there is a folder “STM32Cube” and a folder “STM32CubeIDE” (“STM32CubeIDE”  
only has a “workspace\_1.7.0” folder within from when I launched the IDE).  
The “STM32Cube” folder contains a folder “Repository” which contains the folder "STM32Cube\_FW\_L4\_V1.17.0. Digging deeper I find no MX or PROG app.

BTW, In the first instance, I would like to use the Arduino IDE for the SWAN, or perhaps VS Code.

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [October 20, 2021, 6:12pm UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/6 "2021-10-20T18:12:01Z")

</div>

Ok, so it sounds like your STM32CubeProgrammer install didn’t really do anything at all. The only thing I can think of is to try it again and see if the [definition of insanity](https://quoteinvestigator.com/2017/03/23/same/) holds true. Curious, are you on an M1 Mac or Intel?

BTW - even VS Code + Arduino extension uses Arduino IDE behind the scenes 🙂

---

<div class="post-metadata">

**Author:** ![JimM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/jimm/32/16_2.png) [@JimM](https://discuss.blues.com/u/JimM)\
**Post date:** [October 20, 2021, 6:17pm UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/7 "2021-10-20T18:17:51Z")

</div>

@RobLauer,  
I am on an Intel I9 (8-core, 64GB) Mac running Big Sur. (Although the new M1pro or M1max based Macs look interesting!)

To use only the Arduino IDE to program SWAN, do you know if the STM32CubeProgrammer **should** install even without STM32CubeIDE being installed?

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [October 20, 2021, 6:33pm UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/8 "2021-10-20T18:33:34Z")

</div>

I think I’m starting to confuse myself 🙂.

You downloaded and installed [STM32CubeIDE](https://www.st.com/en/development-tools/stm32cubeide.html#overview&secondary=st-get-software) and [STM32Programmer](https://www.st.com/en/development-tools/stm32cubeprog.html#get-software) separately, correct? And Cube installer worked, but Programmer didn’t?

I wonder if this is the issue…take a look at our setup instructions re: manual firmware updates and read the [STM32Programmer section](https://dev.blues.io/notecard/notecard-firmware-updates/#stm32cubeprogrammer-installation-notes) carefully for macOS.

---

<div class="post-metadata">

**Author:** ![JimM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/jimm/32/16_2.png) [@JimM](https://discuss.blues.com/u/JimM)\
**Post date:** [October 20, 2021, 6:47pm UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/9 "2021-10-20T18:47:10Z")

</div>

@RobLauer,  
Yes, installed STM32CubeIDE, then tried unsuccessfully to install STM32Programmer (the install wizard never starts). STM32CubeIDE runs. (Arduino compiles fine but aborts with STM32Programmer missing).

@RobLauer, Your guidance this time was excellent! I used the CLI method to install the Cube Programmer and now Arduino IDE successfully programs the SWAN via the STLINK-V3Mini on my Mac!

From the Notecard Manual DFU documentation (for others perhaps): Using your terminal app of choice, navigate to the extracted directory and launch the installer in CLI mode. For example:

> ./SetupSTM32CubeProgrammer-2.8.0.app/Contents/MacOs/SetupSTM32CubeProgrammer-2\_8\_0\_macos

My results (killed at first due to security settings):

 ![image](https://us1.discourse-cdn.com/flex020/uploads/blues/original/1X/3410140913b5d3f497dd48de0645275728d31529.jpeg)

---

<div class="post-metadata">

**Author:** ![JimM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/jimm/32/16_2.png) [@JimM](https://discuss.blues.com/u/JimM)\
**Post date:** [October 20, 2021, 7:28pm UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/10 "2021-10-20T19:28:11Z")

</div>

Hi @RobLauer,

Perhaps enhance the SWAN quick start guide with the additional information on installing the STM32CubeProgrammer on MacOS via the CLI command method?

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [October 20, 2021, 8:37pm UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/11 "2021-10-20T20:37:17Z")

</div>

Good point! Glad to hear it resolved the problem.

---

<div class="post-metadata">

**Author:** ![brecky](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@brecky](https://discuss.blues.com/u/brecky)\
**Post date:** [November 4, 2022, 11:15pm UTC](https://discuss.blues.com/t/swan-tool-chain-on-mac/474/12 "2022-11-04T23:15:51Z")

</div>

For what it’s worth, I had the same problem and this resolved it. All about those CLI commands.

Thanks!  
Brecky
