I am using the SpenceKonde / megaTinyCore to program the ATtiny404 using CH340 serial UPDI.
When I click upload, It says
Compilation complete.
Upload error: A programmer is required to upload
But when I select Upload using programmer, it uploads.
Compilation complete.
SerialUPDI
UPDI programming for Arduino using a serial adapter
Based on pymcuprog, with significant modifications
By Quentin Bolsee and Spence Konde
Version 1.2.0 - June 2021
Using serial port COM4 at 460800 baud.
Target: attiny404
Set fuses: ['2:0x02', '6:0x04', '8:0x00']
Action: write
Hi @spiralbrain . Thanks for giving the Arduino IDE 2.0.0 release candidate a try!
This is a known defect, which is being tracked by the Arduino IDE developers here:
opened 02:04PM - 24 Aug 20 UTC
topic: code
type: imperfection
### Describe the problem
There are two Upload-related operations:
- Upload…
- Upload Using Programmer
In addition to the menu items (**Sketch > Upload** / **Sketch > Upload Using Programmer**) and keyboard shortcuts (<kbd>**Ctrl**</kbd>+<kbd>**U**</kbd> / <kbd>**Ctrl**</kbd>+<kbd>**Shift**</kbd>+<kbd>**U**</kbd>), an upload operation can be triggered by clicking the button on the Arduino IDE toolbar.
Some Arduino boards do not support standard "Upload", so the platform author configured their board definition to do an "**Upload Using Programmer**" operation when the "Upload" button is clicked. This makes the frequent task of uploading to these boards more convenient for the user than having to use the less accessible menu item.
🐛 Arduino IDE does an "**Upload**" operation when the button is clicked even when the board is configured for it to trigger an "**Upload Using Programmer**" operation.
### Expected behavior
Arduino IDE does an "**Upload Using Programmer**" operation on "Upload" button click when the board is configured for that behavior.
### Arduino IDE version
7c86f1f
### Operating system
All
### Operating system version
Any
### Additional context
Additional reports:
- https://github.com/arduino/arduino-ide/issues/1640
- https://github.com/arduino/arduino-ide/issues/1323
- arduino/arduino-pro-ide#306
- https://github.com/MCUdude/MiniCore/issues/233
- https://forum.arduino.cc/t/strange-issue-uploading-code-using-updi-megatinycore/945896
- https://forum.arduino.cc/t/attiny85-wont-program/1043246
- https://forum.arduino.cc/t/cant-program-attiny85-with-attinycore-v1-5-2/701346
- https://forum.arduino.cc/t/uploading-to-attiny85-gives-error-a-programmer-is-required-to-upload/1065582
- https://forum.arduino.cc/t/usbasp-works-well-on-ide-1-8-19-but-it-does-not-work-on-ide-2-0-3/1085285
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://www.arduino.cc/en/software#nightly-builds)
- [X] My report contains all necessary details
See this comment for an explanation:
https://github.com/arduino/arduino-ide/issues/103#issuecomment-679467849
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.
1 Like
You're welcome. I am glad if I was able to be of assistance.
Regards, Per
system
Closed
July 31, 2022, 4:47am
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.