arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.25k stars 381 forks source link

Unable to load sketches using Arduino as ISP #2460

Closed kalymos closed 3 months ago

kalymos commented 3 months ago

Describe the problem

It is completely impossible to load a sketch using Arduino as ISP as a programmer, both using MiniCorps and official board definitions, however I have no problem burning bootloaders. All these manipulations were possible without problem on versions 1.8.19

To reproduce

After the standard creation of an Arduino as ISP selecting the correct target board choosing the programmer as Arduino as ISP

Expected behavior

I get these two possible results if I use the standard or MiniCor board definitions.

standard 1 2

MiniCor 3 4

Arduino IDE version

2.3.3-nightly-20240622; 2.3.2

Operating system

Linux

Operating system version

opensuse 15.6

Additional context

No response

Issue checklist

per1234 commented 3 months ago

Hi @kalymos. In order to upload a sketch using any ISP programmer, you must select Sketch > Upload Using Programmer from the Arduino IDE menus rather than using Sketch > Upload or clicking the "Upload" button as you would do when uploading a sketch to a board normally.

The reason you didn't have to do that in Arduino IDE 1.x is because it has a feature where the board definition can be configured so that an "Upload Using Programmer" operation is triggered when the user selects Sketch > Upload from the menus or clicks the "Upload" button. The MiniCore platform is configured to have that behavior when you select Tools > Bootloader > No bootloader from the Arduino IDE menus.

We already have an issue tracking the missing "default to Upload Using Programmer" feature: https://github.com/arduino/arduino-ide/issues/103. So I'll close this issue as a duplicate of that one.

If you still have problems uploading after using Sketch > Upload Using Programmer, you are welcome to post on Arduino Forum to request assistance. I'm sure we'll be able to help you out over there:

https://forum.arduino.cc/c/using-arduino/avrdude-stk500-bootloader-issues/81

kalymos commented 3 months ago

Thank you for your quick response. Your answer is 100% functional, sorry I had not searched for the problem with the right keywords.