Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: Using ATMega1284p EEPROM

2013-11-06 by dkinzer@gmail.com

Can you post example code that produces the error? The following code compiles and links fine for me using WinAVR20100110.

#include <stdint.h>
#include <avr/eeprom.h>


uint8_t buf[20];

int
main(void)
{
eeprom_read_block(buf, (const uint8_t *)0, sizeof(buf));
}




---In AVR-Chat@yahoogroups.com, <egroupscdh@...> wrote:

I am attempting to use the avrlib eeprom routines on an ATMega1284p

I am using the WinAVR-20100110 tool chain

When I link I get => undefined reference to `__eerd_block_m1284p'

Do I need to specify an additional library to link to?

Cheers,

Chuck Hackett
"Good judgment comes from experience, experience comes from bad judgment"
7.5" gauge Union Pacific Northern (4-8-4) 844
http://www.whitetrout.net/Chuck

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.