How do I initialize eeprom with gcc-avr & teensy_loader_cli?

Status
Not open for further replies.

joep

New member
Hi,

I'm using a teensy 2.0 and gcc-avr to create a program which has .eep with the contents of the initial eeprom values, but I can't find any way to upload it using the teensy_loader_cli program. I used the 'blinky' makefile as the template. I can upload and run the resulting hex file just fine, but the initial contents of the eeprom file don't seem to follow along with the rest of the program.

Any help letting me know what I missed would be appreciated!

Thanks.
 
The command line loader doesn't support EEPROM programming.

You'll need to either build code into your program to initialize the EEPROM, or build a separate program which initializes it (where you upload and run that first, then load your program).
 
Status
Not open for further replies.
Back
Top