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
EEPROM not holding data
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23938
- Joined: Mon Apr 21, 2008 2:33 pm
Re: EEPROM not holding data
You might try the AVRFreaks site for more information on programming the bare chips and using fuses.
- Kent_Martens
- Posts: 9
- Joined: Fri Mar 20, 2015 2:50 pm
Re: EEPROM not holding data
Thanks, Franklin. I've looked there and resolved the problem.
Please be positive and constructive with your questions and comments.