I've spent the day on this one and finally decided I need help. Any help is greatly appreciated. I've done a lot of research so I should be able to detail this well but I am always learning...
Specs:
Windows 10 Surface Pro i7
IDE 1.6.11
Boards build 1.6.13
I have 4 boards with an ATMega328p 16mhz chip that I'm working with. I'm using a Sparkfun AVR programmer with an ICSP Pogo to connect and load to the boards. (USBTinyISP) I can load sketches just fine to 2 of the 4 boards. I decided earlier that the 2 I can't load to must have a problem and may need to have their bootloader code reloaded. (never done bootloader stuff before) I was provided the bootloader hex files and custom boards.txt file and told to unzip it to Documents/Arduino/hardware/. After doing this I had new boards available in Arduino IDE under Tools - Board.
I made sure my Programmer was set to USBTinyISP, selected the custom board and then chose Burn Bootlaoder. Below is what I get whether I have anything connected to the USBTinyISP or not. (remember, I can load things just fine so no problems with the USB drivers, connections, pinouts)
java.lang.NullPointerException
at cc.arduino.packages.uploaders.SerialUploader.burnBootloader(SerialUploader.java:360)
at processing.app.Editor.lambda$handleBurnBootloader$11(Editor.java:2752)
at java.lang.Thread.run(Thread.java:745)
Error while burning bootloader.
Here's what I know:
Arduino IDE doesn't have any problems when I select a predefined board even without connection (I get errors but they all make sense)
I've tried multiple configurations in boards.txt (current is below)
tmorgan:
I was provided the bootloader hex files and custom boards.txt file and told to unzip it to Documents/Arduino/hardware/.
Is that all that was in the zip file? It would be helpful is you would attach it to a message here(click the "Reply" or "Preview" button and an "Attachments and other options" link appears).
This boards.txt is not correctly formatted for installation in Documents/Arduino/hardware/. It looks like either the person who wrote it never bothered to do even minimal testing or else it was intended to be pasted into the Arduino AVR Boards package. You could do that but I don't recommend it because you will need to redo it over again everytime you install a new Arduino AVR Boards/Arduino IDE version.
Without the full package I can't do complete testing but I think if you change your boards.txt to this it should work:
Adding the arduino: before the components that are not included in the HoloProjector package tells the Arduino IDE to get these from the arduino core instead. Those missing components were the reason for the error you were getting.
Thanks so much for the reply. I updated my boards.txt file to match what you have but now the Arduino IDE won't load at all. It crashes on "preparing boards" and doesn't open completely. I've attached the ZIP file I was given. I do know I had to move the boards.txt file in order for the IDE to see the boards. The ZIP structure wasn't correct.
Thanks pert for helping me. Attached is the exact structure and exact files. The file path is:
C:\Users\tmorgan\Documents\Arduino\hardware\HPs\bootloaders\holoprojector where the boards.txt is in the HPs folder and the hex files are in the holoprojector folder.
The folder structure was wrong, in fact I don't understand why it ever even showed up in the Tools > Board menu for you with that structure. It didn't for me. I fixed the folder structure, corrected a mistake I made on the protocol, and fixed where you had forgotten to add the arduino reference to the variant values for the other two boards, which probably wouldn't have mattered if you're only using blue. The updated folder is attached, just replace your current folder with the one attached.
As to why the Arduino IDE won't start, I can't reproduce this. You may have a separate issue. If that issue persists after installing this new version try moving the HPs folder out of the hardware folder and see if the IDE will start then. That will show whether the HPs boards package is the cause of the issue.