which suggests, that programmers.txt should be placed under Sketchbook dir which when left untouched in Arduino prefs points to ~/Documents/Arduino/ resulting in path ~/Documents/Arduino/hardware/arduino/avr/programmers.txt. Created the dir tree. I have also tried different directory structures, based on random posts.
Doc also states
Starting with Arduino IDE 1.8.13 (and in all relevant versions of other Arduino development tools), only the programmers defined by the board and core platform of the currently selected board are available. For this reason, platforms may now need to define copies of the programmers that were previously assumed to be provided by another platform.
which leaves me more puzzled about how to add this programmer on 2.x.
Excellent work tracking down that reference! The mentioned change is indeed the cause of your custom programmer no longer being available. This loss of support for packaging custom programmer definitions in a dedicated platform was an unfortunate side effect of what was otherwise a very beneficial change.
You will need to add your custom to the programmers.txt file of the platforms of any boards you want to use as a target with the programmer.
You can find the location of the platform by compiling any sketch for the target and then examining Arduino IDE's verbose compilation output:
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.
Click on the black "Output" panel at the bottom of the Arduino IDE window.
Scroll the panel all the way up to the top.
Look for the line that starts with "Using board ...".
For example:
Using board 'uno' from platform in folder:
C:\Users\per\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
The path you see in that output line is the location of the board's platform. You will find the programmers.txt file under that path.
Messed also with ~/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf as tried using avrdude from terminal directly to push hex.
programmer
id = "olimexisp500tiny";
desc = "Olimex AVR-ISP500-TINY";
type = "stk500v2";
connection_type = serial;
;
It seems that programmer adding does not work. To test, just dummyclone AVR ISP entry, it should show up
FYI. This is an old x64 mac, it had clean install recently thus has not had Arduino 1.x installs before. I observe same issue on MSW10 too, which makes this puzzling.
Yay! Nice work getting it working. I was planning to suggest you try deleting the ~/.arduinoIDE folder specifically. I didn't find it was necessary as a workaround for Changes to programmers.txt are not recognized · Issue #591 · arduino/arduino-ide · GitHub, but it is a place where Arduino IDE stores application state data in addition to ~/Library/Application Support/arduino-ide/ so it definitely could be a culprit in this sort of UI caching glitch.
I delete both of those folders when I want to effectively simulate the fresh installation conditions while beta testing the IDE.
Something you should note is that your preferences are stored in ~/.arduinoIDE, so if you had previously made any adjustments to your preferences (e.g., "Additional Boards Manager URLs"), you may want to go back into the "Preferences" dialog and set them as you like.
Yeah, trashing everything obviously trashed ... everything. But it is ok.
I had Teensy added https://www.pjrc.com/teensy/package_teensy_index.json and board definitions installed (maybe that somehow interfered with programmers cache). Just reinstalled Teensy defs and the programmer still shows up so who knows.
BTW, just burnt bootloader to a blank 328 as well as sketch uploading via programmer works