I have checked that the path the the hex file is correct a few times, and I tried an absolute path too… Does anyone out there ALSO have some free time today to tell me what I am doing wrong?
Seems like paths are relative to the Arduino core directory, e.g. see
Let’s modify the Python script to tell you what’s wrong. The error in question is thrown here
Go into your platformio directory (/home/<user>/.platformio or C:\Users\<user>\.platformio and navigate to the platforms\atmelavr\builder\bootloader.py file. Change the line where the error message is thrown to
Sorry… My response was vague. I will add the lines you suggested for future debugging.
Once I put my bootloader hex file in a sub-directory I created named “supervisor” in this directory:
C:\Users[user].platformio\packages\framework-arduino-avr\bootloaders
(The chip I am loading this onto is considered a “supervisor”)
Then I changed my path in my platformio.ini file to:
The bootloader was loaded successfully. Thank you for your help.
I did have two fuse values swapped… I would not suggest doing that if you want to use the chip ever again… (editing my previous comment above so no one copies the values and bricks their Atmega328). Luckily I had a few extra.