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...
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)
Arduino: 1.6.11 (Windows 10), Board: "HoloProjector I2C FHP (Blue)"
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)
fhp.name=HoloProjector I2C FHP (Blue) fhp.upload.tool=avrdude fhp.upload.protocol=arduino fhp.upload.maximum_size=32256 fhp.upload.maximum_data_size=2048 fhp.upload.speed=115200 fhp.bootloader.tool=avrdude fhp.bootloader.low_fuses=0xFF fhp.bootloader.high_fuses=0xDE fhp.bootloader.extended_fuses=0x05 fhp.bootloader.file=holoprojector/hp_i2c_fhp.hex fhp.bootloader.unlock_bits=0x3F fhp.bootloader.lock_bits=0x0F fhp.build.mcu=atmega328p fhp.build.f_cpu=16000000L fhp.build.core=arduino fhp.build.variant=standard
- I've made sure any anti-virus is shut down
- I've uninstalled and reinstalled Ardiuno IDE (current version after disable of anti-virus)
- I've uninstalled and installed Arduino IDE 1.0.6 and tried and got the same results
- I've downloaded the nightly and ran it to see what would happen and got the same results
- I put the custom board files on a different machine and got the same results
- Whether the board is connected or not doesn't seem to matter at all
- Disconnecting the programmer also yields the same result
Deductive logic has failed me and now I have no idea what to do.