-
-
Notifications
You must be signed in to change notification settings - Fork 441
Arduino IDE 2 not program MCUs Atmel and Arduino IDE 1.8.13 program #1323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I found in megaTinyCore GitHub that this board is not supported in IDE 2.0 yet : megaTinyCore GitHub This issue can be closed Thank you |
Hi @JorgeTorres01. Thanks for taking the time to submit an issue. re: Incorrect programmer used when uploadingThe problem is that you have selected a different board in the Arduino IDE 2.x than in Arduino IDE 1.x. The megaTinyCore boards platform has two different boards for the ATtiny406:
Since the latter board definition is specifically for use with the Optiboot serial bootloader, it does not support the "Upload Using Programmer" approach with the "PICkit4" programmer as you were expecting. If you select Tools > Board > megaTinyCore > ATtiny3216/1616/1606/816/806/416/406 w/Optiboot in Arduino IDE 1.x, you will get that same upload output with the "arduino" programmer type. So you must make sure to select Tools > Board > megaTinyCore > ATtiny3226/3216/1626/1616/1606/826/816/806/426/416/406 in either version of the IDE if you want to upload to your ATtiny406 using the "PICkit4" programmer. re: "Upload" vs "Upload Using Programmer"There is one difference in Arduino IDE 2.x that you should be aware of when using it with this board: Arduino IDE 1.x has a convenience feature for boards like this that don't have a normal upload capability where it will trigger an "Upload Using Programmer" operation when the user clicks the Upload button or selects Sketch > Upload. Arduino IDE 2.x does not currently have that feature (tracked here: #103). So you must select Sketch > Upload Using Programmer in order to upload to your ATtiny406 using the "PICkit4" programmer. re: "Unsupported"Other than that missing convenience feature, Arduino IDE 2.x should work fine with your ATtiny406 and any other megaTinyCore boards. The two serious bugs that resulted in that notice in the megaTinyCore readme were fixed in Arduino IDE 2.0.0-rc9.2:
(they were actually bugs in Arduino CLI that also affected Arduino IDE users) The "unsupported" in the megaTinyCore means that SpenceKonde will not provide support to those using megaTinyCore with Arduino IDE 2.x, but the Arduino IDE 2.x development team welcomes testing of the IDE with those boards. Please do let us know if you find any problems with the IDE or identify possible enhancements. In addition to formal reports here on GitHub, feedback, support requests, or general discussion is welcome in the dedicated category of the Arduino Forum: https://forum.arduino.cc/c/software/arduino-ide-2-0-beta/93 Since my testing indicates that everything should work as expected once the correct board is selected, I will close this as resolved. |
Hi,
I'm trying to program Atmel (microchip) MCUs with Arduino IDE. In IDE 1.8.13 its works but with the new IDE version (2.0.0-rc9.2) not program the MCU.
MCU: Attiny406
Board: megaTinyCore, version 2.5.11
Programmer: PICkit4
In IDE 2, when it tries to upload, it shows "using programmer : arduino":

But with IDE 1.8.13 its show: "using programmer : pickit4_updi":

In both IDEs I defined the PICkit4 programmer:

I suppose that the IDE 2 to not program is due to it trying to use the programmer "arduino" instead "PICkit4"...
But this can be a bug of IDE 2 or a bug of board (megaTinyCore)? (or some mistake of mine? :) )
And how can this be resolved?
Thank you,
Jorge
The text was updated successfully, but these errors were encountered: