EEPROM library functions do not build for Xmega

View: New views
3 Messages — Rating Filter:   Alert me  

EEPROM library functions do not build for Xmega

by Joerg Wunsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

gmake[1]: Entering directory `/home/joerg/src/avr-libc/avr/lib/avrxmega4'
avr-gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../common -I../../../include -I../../../include -g -Wall -W -Wstrict-prototypes -D__COMPILING_AVR_LIBC__ -Os -fno-jump-tables -x assembler-with-cpp -Wa,-gstabs -D__COMPILING_AVR_LIBC__ -c -o eerd_block_atxmega64a3.o    \
            -mmcu=atxmega64a3           \
            ../../../libc/misc/eerd_block.S
../../../libc/misc/eerd_block.S: Assembler messages:
../../../libc/misc/eerd_block.S:80: Error: constant value required
../../../libc/misc/eerd_block.S:80: Error: register number above 15 required
gmake[1]: *** [eerd_block_atxmega64a3.o] Error 1

The respective code after preprocessing is:

  ; Correct EEPROM address to read from data space.
 subi r22, lo8(-(0x1000))
 sbci eepr_hi, hi8(-(0x1000))

So somehow, that "eepr_hi" should look different, I guess.

This is broken in both, HEAD as well as the 1.6 branch.

(I'm currently working on something different, so I cannot track
down.)
--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Re: EEPROM library functions do not build for Xmega

by Dmitry K. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 26 June 2009 06:29, Joerg Wunsch wrote:

> ../../../libc/misc/eerd_block.S:80: Error: register number above 15
> required gmake[1]: *** [eerd_block_atxmega64a3.o] Error 1
>
> The respective code after preprocessing is:
>
>   ; Correct EEPROM address to read from data space.
>  subi r22, lo8(-(0x1000))
>  sbci eepr_hi, hi8(-(0x1000))
>
> So somehow, that "eepr_hi" should look different, I guess.
>
> This is broken in both, HEAD as well as the 1.6 branch.

Thanks, I shall fix it.
Alas, I have not build the Xmega compiler yet.

Thanks,
Dmitry.



_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Re: EEPROM library functions do not build for Xmega

by Joerg Wunsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As Dmitry K. wrote:

> Thanks, I shall fix it.

Thank you very much.

> Alas, I have not build the Xmega compiler yet.

If it helps you, Bingo600 updated his Linux build script on
avrfreaks recently, so that one also support the Xmega now.

--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev