stm32duino / Arduino_Core_STM32

STM32 core support for Arduino
https://github.com/stm32duino/Arduino_Core_STM32/wiki
Other
2.8k stars 967 forks source link

Error: Cannot run program "{busybox}" #2416

Closed HugoP closed 2 months ago

HugoP commented 3 months ago

I upgraded from Arduino Core STM32 2.7.1 to 2.8.0 and now getting this error when uploading a sketch.

{busybox} sh C:\Users\User\AppData\Local\Arduino15\packages\STMicroelectronics\tools\STM32Tools\2.2.2/stm32CubeProg.sh -i swd -f c:\Users\User\Documents\Arduino\generated_examples\.build/Blink.ino.bin -o 0x0 
Uploading...
java.io.IOException: Cannot run program "{busybox}": CreateProcess error=2, The system cannot find the file specified

Sketch

#include <Arduino.h>

void setup()
{
    pinMode(LED_BUILTIN, OUTPUT);
}

void loop()
{
    digitalWrite(LED_BUILTIN, HIGH);
    delay(1000);
    digitalWrite(LED_BUILTIN, LOW);
    delay(1000);
}

Desktop

Board

Additional context

When I switch back to v2.7.1 the error goes away.

fpistm commented 3 months ago

Hi @HugoP Unfortunately, the stm32 core is no more compatible with Legacy Arduino IDE 1.8.x only with the Arduino IDE 2.x.

brickZA commented 2 months ago

I noted a similar issue (Cannot run program "{busybox}") when using STM32CubeProgrammer for uploading with arduino 1.8.13 when upgrading to v2.8.0: https://github.com/stm32duino/Arduino_Core_STM32/issues/2438

It was pretty easy to fix and my moderately complex sketch kept working, see https://github.com/stm32duino/Arduino_Core_STM32/pull/2439. However, I don't see an obvious config change related to ST-LINK in platform.txt so I'm not sure how to fix this error :)

No harm in trying my fix locally. I found where my STM32 core was installed, edited the platform.txt there, and after restarting arduino was off to the races.

diyelectromusic commented 2 months ago

Hi @HugoP Unfortunately, the stm32 core is no more compatible with Legacy Arduino IDE 1.8.x only with the Arduino IDE 2.x.

Hi there.

Is this a deliberate roadmap choice to drop support for IDE v1.8.x? If so then the Getting Started pages appear to differ (I've spent most of the afternoon trying to work out why your instructions weren't working - all the screenshots show v1 series dialogs and there is no mention of requiring v2).

Or is this a bug that is likely to get fixed?

Many thanks, Kevin

fpistm commented 2 months ago

I will update the wiki as well. The Readme and release note mention it. Arduino specifications changed and maintain/test both would be hard so support was drop.