Jump to content

    
Sign in to follow this  
ser

EEPROM ATxmega256a3

Recommended Posts

Доброе время суток. Возникла такая проблема:

 

Компилятор AVR GCC, контроллер ATxmega256a3. при подключении заголовочного файла <avr/eeprom.h> компилятор выдает следующие ошибки:

 

d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:141:4: error: #error "Unknown EEPROM register(s) location."
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:197:1: error: invalid suffix "x__EEPROM_REG_LOCATIONS__" on integer constant
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:201:1: error: invalid suffix "x__EEPROM_REG_LOCATIONS__" on integer constant
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:215:1: error: invalid suffix "x__EEPROM_REG_LOCATIONS__" on integer constant
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:217:1: error: invalid suffix "x__EEPROM_REG_LOCATIONS__" on integer constant
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:300:1: error: invalid suffix "x__EEPROM_REG_LOCATIONS__" on integer constant
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:311:1: error: invalid suffix "x__EEPROM_REG_LOCATIONS__" on integer constant
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:313:1: error: invalid suffix "x__EEPROM_REG_LOCATIONS__" on integer constant
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:324:1: error: invalid suffix "x__EEPROM_REG_LOCATIONS__" on integer constant

d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h: In function 'uint8_t eeprom_read_byte(const uint8_t*)':
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:197: error: 'EEWE' was not declared in this scope
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:216: error: 'EERE' was not declared in this scope
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h: In function 'void eeprom_write_byte(uint8_t*, uint8_t)':
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:300: error: 'EEWE' was not declared in this scope
d:/winavr/lib/gcc/../../avr/include/avr/eeprom.h:326: error: 'EEMWE' was not declared in this scope

 

понятно что надо что то указать (предположительно адреса), но вот что и куда не понятно...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this