ATMEGA 328P-AU / burning bootloader failing

Have designed own board with separate ATMEGA328P-AU. So I need to upload the bootloader and be able to use the board in a similar way as an Arduino Mini Pro. However I am running into some issues and not found a solution

  • Using an Arduino Pro Mini to program my own board (Arduino as ISP -> burn bootloader)
  • When burning the bootloader I get the following message:
 ***failed;  
avrdude: WARNING: invalid value for unused bits in fuse "efuse", should be set to 1 according to datasheet
This behaviour is deprecated and will result in an error in future version
You probably want to use 0xfd instead of 0x05 (double check with your datasheet first).
avrdude: verification error, first mismatch at byte 0x782e
         0x41 != 0x51
avrdude: verification error; content mismatch

1> Would like to change the extended_fuses to 0xfd. However I changed it in boards.txt but I still get the same warning as above --> SOLVED: boards.txt is stored on multiple places / I edited the wrong one :-|. The verification errors remain.
2> Any suggestions where the verification error is coming from and how to solve it?

Thanks,
Buffel

On the board I designed there are 2 devices using SPI communication - wondering if it is related to the problems I am having

1> ATMEGA328P (only used to burn the bootloader)
2> Another device which uses SPI during normal operation.

  • This device is not powered at the moment when trying to burn the 328p bootloader
  • SPI connections however do exists (so MISO, MOSI etc connected to both devices)

Could that be a possible reason for the issues? (I doubt it as device signature of the 328 is read correctly ... but I am considering everything as I am stuck )

It's probably not doing a chip erase before burning the bootloader. Turn on verbose uploading and copy+paste everything in the window, not just the errors.