Page 1 of 1

IDE 2 won't flash on mac

Posted: Wed Nov 16, 2022 7:43 pm
by beserge
Trying to flash my Daisy Seed from IDE2 on the mac.
I'm on the latest version of stm32duino. I'm using the DFU upload method (although I tried the stlink and that also failed).
On my system it doesn't show up under Port (although the stlink did show up there).
On my friend's system it showed up under Port, but he still got "No connection established" when trying to flash.
Any ideas? IDE 2 works fine on Windows, just seems to have some connection issue under macOS.

Re: IDE 2 won't flash on mac

Posted: Thu Nov 17, 2022 11:38 am
by GonzoG
Arduino IDE 2.0 doesn't want to work with STM32duino. Even older version (I think it was rc6), which worked fine, stopped working.

Re: IDE 2 won't flash on mac

Posted: Thu Nov 17, 2022 11:59 am
by fpiSTM
It works I saw some bugs linked to IDE but that's all

Re: IDE 2 won't flash on mac

Posted: Fri Nov 18, 2022 2:54 pm
by fpiSTM
Anyway, I will try next week on our MAC.
But probably IDE 2 issue.

Re: IDE 2 won't flash on mac

Posted: Fri Nov 18, 2022 7:41 pm
by beserge
Thank you! Let me know what you find as we're helping a client to set this up.

Re: IDE 2 won't flash on mac

Posted: Mon Nov 21, 2022 10:45 am
by fpiSTM
I've tested on a MAC Book Pro with macOS Big Sur (Version 11.5.2).
Arduino 2.0.2 and core 2.3.0.
I've used Adafruit Feather F405 and use DFU.
No issue.
You have to start your board in Bootloader mode with USB plugged then the board enter in DFU mode.
You have also to get the STM32CubeProgrammer installed as this method uses the cli to upload in DFU mode.

A DFU port is not shown in the Arduino IDE port menu as it is not a COM port.

You can try to use the STM32CubeProgrammer gui and select USB to see if you are able to connect.

You can also try this command:
system_profiler SPUSBDataType

You should see the STM32 BOOTLOADER device.

USB 3.0 Bus:

Host Controller Driver: AppleUSBXHCISPTLP
PCI Device ID: 0x9d2f
PCI Revision ID: 0x0021
PCI Vendor ID: 0x8086

STM32 BOOTLOADER:

Product ID: 0xdf11
Vendor ID: 0x0483 (STMicroelectronics)
Version: 22.00
Serial Number: 20593773354D
Speed: Up to 12 Mb/s
Manufacturer: STMicroelectronics
Location ID: 0x14600000 / 8
Current Available (mA): 500
Current Required (mA): 100
Extra Operating Current (mA): 0


Re: IDE 2 won't flash on mac

Posted: Wed Nov 23, 2022 6:58 pm
by beserge
Thanks for the help! It ended up being CubeProg on my computer. On the client's computer they needed to update their IDE2 version.

Re: IDE 2 won't flash on mac

Posted: Wed Nov 23, 2022 7:21 pm
by fpiSTM
OK fine.