Nucleo-G431 + Arduino IDE: "long options not supported due to getopt from FreeBSD usage"
Split from How to program and debug the STM32 using the Arduino IDE.
Hi,
I am new to this forum having just bought a Nucleo STM32G431 which I want to program using Arduino 2.3.4 on MAC OS 11.7.11. On trying to upload the simple blink example I get the error:
Warning: long options not supported due to getopt from FreeBSD usage.
getopt: illegal option -- a
Terminating...
Failed uploading: uploading error: exit status 1
Having read around this a little it seems that MACOS is using a BSD version of getopt which doesn't support long options. I believe the problem is in the Arduino core for STM32 MCU based boards (I have version 2.12.0 installed).
Do you know of a workaround for this? Do I need to install the GNU version of getopt and is this safe? I am not a MACOS expert. Where would I find that?
