Sketch upload failure using v.2.8.0

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
purple_rw
Posts: 1
Joined: Fri Jul 12, 2024 5:29 pm

Sketch upload failure using v.2.8.0

Post 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
by fpiSTM » Fri Aug 02, 2024 1:48 pm
Release 2.8.1 fixes the issue.
Go to full post
fpiSTM
Posts: 1819
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 99
Location: Le Mans
Contact:

Re: Sketch upload failure using v.2.8.0

Post 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.
fpiSTM
Posts: 1819
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 99
Location: Le Mans
Contact:

Re: Sketch upload failure using v.2.8.0

Post by fpiSTM »

Release 2.8.1 fixes the issue.
Post Reply

Return to “General discussion”