Skip to content

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

Closed
JorgeTorres01 opened this issue Aug 15, 2022 · 2 comments
Closed
Assignees
Labels
conclusion: invalid Issue/PR not valid type: imperfection Perceived defect in any part of project

Comments

@JorgeTorres01
Copy link

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":
image

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

In both IDEs I defined the PICkit4 programmer:
image

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

@per1234 per1234 transferred this issue from arduino/arduino-builder Aug 15, 2022
@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Aug 15, 2022
@per1234 per1234 self-assigned this Aug 15, 2022
@JorgeTorres01
Copy link
Author

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

@per1234
Copy link
Contributor

per1234 commented Aug 18, 2022

Hi @JorgeTorres01. Thanks for taking the time to submit an issue.

re: Incorrect programmer used when uploading

The 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:

  • ATtiny3226/3216/1626/1616/1606/826/816/806/426/416/406
  • ATtiny3216/1616/1606/816/806/416/406 w/Optiboot

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.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2022
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants