EEPROM not holding data

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Kent_Martens
 
Posts: 9
Joined: Fri Mar 20, 2015 2:50 pm

EEPROM not holding data

Post by Kent_Martens »

I'm using a usbtiny to program a bare ATMEGA328p with a project that requires EEPROM to hold calibration data. I've changed the fuses on the chip EESAVE. The program runs properly, does the calibration procedure and performs the needed actions. However, when it's powered down or reset, the microprocessor won't hold onto the EEPROM data. The code is written in the Arduino ide, compiled, and then the hex file is written to the chip using avrdude via the usbtiny.

Can you tell me what I've done wrong and especially how to fix this? Any help greatly appreciated.

Thanks for whatever help you can provide,

Kent

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: EEPROM not holding data

Post by Franklin97355 »

You might try the AVRFreaks site for more information on programming the bare chips and using fuses.

User avatar
Kent_Martens
 
Posts: 9
Joined: Fri Mar 20, 2015 2:50 pm

Re: EEPROM not holding data

Post by Kent_Martens »

Thanks, Franklin. I've looked there and resolved the problem.

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”