Skip to content

Upload does not recognise that a programmer has been selected #1640

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
3 tasks done
pwesty54 opened this issue Nov 6, 2022 · 1 comment
Closed
3 tasks done

Upload does not recognise that a programmer has been selected #1640

pwesty54 opened this issue Nov 6, 2022 · 1 comment
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@pwesty54
Copy link

pwesty54 commented Nov 6, 2022

Describe the problem

I am programming a bare "AVR128DB28" chip. The board my sketch uses is "AVR-DB series (no bootloader)" from Dx-Core by Spence Konde. I select the programmer "SerialUPDI - 230400 baud" from the Tools dropdown menu ( or any of the available SerialUPDI options). It is installed on port COM5, which is also selected.
The (small test) sketch verifies OK, but when I try to upload it I get the following error:-

Sketch uses 770 bytes (0%) of program storage space. Maximum is 131072 bytes.
Global variables use 4 bytes (0%) of dynamic memory, leaving 16380 bytes for local variables. Maximum is 16384 bytes.
A programmer is required to upload

The same sketch with the same programmer from the same version of Dx-Core uploaded without errors in the previous IDE version 2.0.0. I upgraded to version 2.0.1 by selecting the prompt in the IDE.

To reproduce

  1. Install DxCore version 1.4.10 by Spence Konde in the IDE v2.0.1
  2. Attach physical programmer. ( I use a serial adapter with diode/resistor, as detailed by Spence Konde in his DxCore notes on Github. It installs itself on COM5 on my PC).
  3. Load test sketch attached.
  4. Select board "AVR DB-series (no bootloader)" from the Tools drop-down menu.
  5. Select programmer "SerialUPDI - 230400 baud" from the Tools drop-down menu (or any other available SerialUPDI option - my programmer gives reliable comms up to 460800 baud ).
  6. Select the Port your programmer is installed on.
  7. Press the "upload" button in the IDE.

DB_test.zip

Expected behavior

On selecting "Upload" the sketch builds without errors and uploads without errors.

Arduino IDE version

2.0.1

Operating system

Windows

Operating system version

11 Version 22H2 Build 22621.674

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@pwesty54 pwesty54 added the type: imperfection Perceived defect in any part of project label Nov 6, 2022
@per1234
Copy link
Contributor

per1234 commented Nov 6, 2022

Hi @pwesty54

The same sketch with the same programmer from the same version of Dx-Core uploaded without errors in the previous IDE version 2.0.0.

I was not able to reproduce this. I get the same error using Arduino IDE 2.0.0 as I do with Arduino IDE 2.0.1.

The reason you are getting this error is due to this bug:

#103

Unlike Arduino IDE 1.x, you must select Sketch > Upload Using Programmer from the Arduino IDE menus in order to upload to this board.

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2022
@per1234 per1234 added conclusion: duplicate Has already been submitted topic: code Related to content of the project itself labels Nov 6, 2022
@per1234 per1234 self-assigned this Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants