Page 1 of 1

Sketch upload failure using v.2.8.0

Posted: Tue Jul 16, 2024 3:45 pm
by purple_rw
I tried uploading the Blink example to my BlackPill. With Arduino_Core_STM32 version 2.8.0, I get this error:

Code: Select all

Sketch uses 13244 bytes (2%) of program storage space. Maximum is 524288 bytes.
Global variables use 1216 bytes (0%) of dynamic memory, leaving 129856 bytes for local variables. Maximum is 131072 bytes.
getopt: illegal option -- o
Terminating...
Failed uploading: uploading error: exit status 1
Any idea where that "illegal option o" is coming from? I then tried installing version 2.7.1, and the issue is resolved. I also tried version 2.0.0, as well as 1.9.0. They all work fine.

Here are the version and settings I have:

Arduino IDE
Version: 2.3.2
Date: 2024-02-20T09:53:59.281Z
CLI Version: 0.35.3

Board: Generic STM32F4 series
Board part number: BlackPill F411CE
C Runtime Library: Newlib Nano (default)
Upload Method: STM32CubeProgrammer (DFU)
USB Support: CDC (generic 'Serial' supersede U(S)ART)
U(S)ART: Enabled (generic 'Serial')
USB Speed: Low/Full Speed

STM32CubeProgrammer v2.17.0

Re: Sketch upload failure using v.2.8.0

Posted: Tue Jul 16, 2024 4:25 pm
by fpiSTM
Issue is already opened on GitHub and a PR is already available. Issue comes from getopt which is free BSD on Mac and gnu for other.

Re: Sketch upload failure using v.2.8.0

Posted: Fri Aug 02, 2024 1:48 pm
by fpiSTM
Release 2.8.1 fixes the issue.