Copied the same Dragon programmer information into the new version and it just states I need to define a programmer... when I attempt to use it. The programmer is in the list.
There isn't much to do when it doesn't give you much of an error message of where to go...
I find the new ide unusable with the dragon
There's probably something in the configuration, but I've given up on it.
Hi @jkwilborn In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from the IDE when in verbose mode.
NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.
Please do this:
Select File > Preferences from the Arduino IDE menus.
Uncheck the checkbox next to Show verbose output during: ☑ compilation
Check the checkbox next to Show verbose output during: ☐ upload.
Click the OK button.
Attempt whatever operation you did before when you got that error.
Wait for the operation to fail.
You will see an error notification at the bottom right corner of the Arduino IDE window. Click the COPY ERROR MESSAGES button on that notification.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V.
This will paste the error output from the upload into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
Sorry about the delay... we were rather under the weather...
Sketch uses 356 bytes (4%) of program storage space. Maximum is 8192 bytes.
Global variables use 12 bytes (2%) of dynamic memory, leaving 500 bytes for local variables. Maximum is 512 bytes.
A programmer is required to upload
Sketch uses 356 bytes (4%) of program storage space. Maximum is 8192 bytes.
Global variables use 12 bytes (2%) of dynamic memory, leaving 500 bytes for local variables. Maximum is 512 bytes.
Programmer 'dragon' not found
The dragon is plugged into the usb port and works via a command line 'avrdude' invocation.
Assuming I hosed something in the programmers.txt file...
I did find
dragonisp.program.extra_params=-P{serial.port}
fixed it to
dragon_isp.program.extra_params=-P{serial.port}
I can now select the proper port for the Dragon, but it gives me the same error message when I select Sketch -> Upload via programmer.
I changed the selected programmer to the dragon_isp (from the tiny core, which I don't see in the file).
Sketch uses 356 bytes (4%) of program storage space. Maximum is 8192 bytes.
Global variables use 12 bytes (2%) of dynamic memory, leaving 500 bytes for local variables. Maximum is 512 bytes.
Programmer 'dragon_isp' not found
There is a bug in Arduino IDE 2.x that causes it to cache menu information from old versions of programmers.txt. This caching can result in "phantom" entries in the Tools > Programmer menu, even though there is no definition for that programmer in programmers.txt. When you then attempt an "Upload Using Programmer" operation, it fails with this type of "Programmer ___ not found" error.
I'll provide instructions you can follow to clear the IDE's menu cache:
If Arduino IDE is running, select File > Quit from the menus to close all IDE windows.
Delete the folder at the following path:
C:\Users\<user name>\AppData\Roaming\arduino-ide
(where <user name> is your Windows user name) If looking for it with your file browser or command line, note that the folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
Start Arduino IDE.
Select the appropriate board from the Tools > Board menu.
Select the appropriate programmer from the Tools > Programmer menu.
Select Sketch > Upload Using Programmer
Hopefully this time the upload will be successful.
That is correct. I apologize for my low quality instructions. Even though we can often get away with assuming people are using Windows, since that is the operating system of the great majority of Arduino users, I try to avoid making such assumptions. I slipped up this time.
Typically in the same folder as the boards.txt file that contains the definition of the board you have selected from the Tools > Board menu in the Arduino IDE. Each boards platform provides its own programmers.
A boards platform can reference resources from another platform, including programmer definitions. In this case, the programmers.txt is in the root folder of the referenced platform, which makes things a bit more complicated. However, if you are using a board from ATTinyCore you don't need to think about that because ATTinyCore does not reference other platforms, so the programmers.txt file of interest is here:
Some other notes about your search results:
The file at this path will only be used when you are using Arduino IDE 1.8.13
The file at this path will never be used because the IDE does not recognize that as a valid location for a programmers.txt file. It might be a good idea to delete it to avoid future confusion.
The file at this path will be used when you have selected one of the boards under the Tools > Board > Arduino AVR Boards menu.
Please do this, with that board selected from the Tools > Board menu:
Select File > Preferences from the Arduino IDE menus.
Check the box next to "Show verbose output during: ☐ compilation".
Click the OK button.
Select Sketch > Verify/Compile from the Arduino IDE menus.
Wait for the compilation to finish.
Right click on the black "Output" panel at the bottom of the Arduino IDE window.
From the context menu, click Copy All.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V.
This will paste the compilation output into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
Click the Reply button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.
I see. You are using the old school "attiny" boards platform by David Mellis:
This is one of those platforms I mentioned previously that reference resources from another platform, as you can see from this part of the verbose compilation output:
Using board 'ATtinyX5' from platform in folder: /home/jack/.arduino15/packages/attiny/hardware/avr/1.0.2
Using core 'arduino' from platform in folder: /home/jack/.arduino15/packages/arduino/hardware/avr/1.8.6
In this case, the referenced core platform is "Arduino AVR Boards", which is installed at this path:
So the active programmers.txt file in use while you have one of the boards of the "attiny" platform selected in the IDE is the one located at that location.
So you will need to do the following:
Open the file at the following path in a text editor: