alexforencich / xboot

XBoot Extensible Bootloader
125 stars 69 forks source link

`eeprom_driver.c` will not compile for xmega E devices #10

Closed fake-name closed 8 years ago

fake-name commented 10 years ago

Basically, it seems like Atmel is trying to depreciate 'NVM_CMD_READ_EEPROM_gc', 'NVM_CMD_LOAD_EEPROM_BUFFER_gc', 'NVM_CMD_READ_EEPROM_gc' and 'NVM_CMD_LOAD_EEPROM_BUFFER_gc'.

In any event, they've removed them from the available commands for the NVM controller on xmega E devices.

Is there any reason xboot is using it's own EEPROM driver, rather then the EEPROM functions in <avr/eeprom.h>? The functions in <avr/eeprom.h> seem to be written in assembly (assuming I'm looking at the correct source files).

Is it a code-size issue?

alexforencich commented 10 years ago

The included EEPROM driver can probably be replaced with eeprom.h. The only reason I used those was because I had to include the file in order to access the flash memory so I went ahead and used the EEPROM as well.

fake-name commented 10 years ago

eeprom_driver.c is used for flash access?

Where? I don't see it being included anywhere except xboot.c, and only for EEPROM access there.

alexforencich commented 10 years ago

No, the sp_driver.S is needed for flash access. I went ahead and used it for EEPROM access as well when I wrote xboot. It may be possible to replace the EEPROM portion of that with eeprom.c.

nickdademo commented 9 years ago

Also running into this issue with the XMEGA 32E5.

@fake-name : Did you end up just using the AVR EEPROM header (avr/eeprom.h)?

fake-name commented 9 years ago

@nickdademo - I wound up just flat-out not using xboot at all.

nickdademo commented 9 years ago

Thanks for the reply - did you end up rolling your own then?

fake-name commented 9 years ago

No, I just reworked the mechanical design so I could expose the programming interface in a way that let me update it that way.

It was for a one-off project anyways.

Sorry!

nickdademo commented 9 years ago

Added XMEGA E5 support in this PR: https://github.com/alexforencich/xboot/pull/17

Tested and working with XMEGA32E5 (including XBoot API).

fake-name commented 8 years ago

I'll close this if/when #17 gets merged.

alexforencich commented 8 years ago

17 has been tested and merged.