I'm programming an Atmega644 using the Arduino as ISP. For this I'm using the Sanquino software add in for he Arduino IDE. For some reason the EEPROM gets erased every time I upload the code to the 644.
For uploading I use an Arduino Uno (SMD version) with the Arduino ISP sketch. It doesn't matter if I use Visual micro for compiling and uploading or the Arduino IDE.
Any ideas why the EEPROM gets erased and how I can stop it from getting erased when uploading new code?
Oke I was a bit to fast with asking. I know now why the EERPROM gets erased. The fuses are set to erase the EEPROM at the chip erase chip prior to programming it. Correct me if I'm wrong
Is see that the low_fuses=0xFF, high_fuses=0x9A and the extended_fuses=0xFF.
When I fill in these values at 'Atmel studio's AVR simulator - device programmin' I see that the 'EESAVE' option is not checked. When I check it the high fuses change to 0X92.
Is it OK to change the high fuses in the boards.txt file to high_fuses=0x92?
corprius:
I got impatient and changed the boards.txt file with success!
yea its usually ok if you know where you are starting from and modify from there, the only things that can throw you in a pickle are the reset enable, serial programming and the stupid clock settings (which even if you think you have right its best to have a 1-20 mhz crystal oscillator on hand)