avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] including avr/boot.h for xmega devices


From: Omar Choudary
Subject: Re: [avr-libc-dev] including avr/boot.h for xmega devices
Date: Tue, 1 May 2012 20:42:47 +0100

I've finally managed to get the stuff working (avr-libc was the main issue).

To save me from some typing I simply copy paste below my message to Dean.

Cheers,
 Omar.

-----------------------

Hi Dean,

I finally managed to integrate the new version with my xmega (still
have to build smth ... but at least is compiling).

I took the last git version from last week, then added the
VirtualSerialX project you gave on the forum and then modified a bit
the makefiles to suit my project.

However it didn't work with the last .deb package containing avr-libc
1.7.1. With that version I get a bunch of errors, mostly relating to
the fact that avr-libc 1.7.1 is behind on the support for XMega U's
(the ones with USB).

There is no avr/iox256a3u.h file for example.

To give my point, here is what I got:

In file included from
xmega_lufa_virtual_serial/../LUFA/Drivers/USB/Core/XMEGA/../USBInterrupt.h:64:0,
from 
xmega_lufa_virtual_serial/../LUFA/Drivers/USB/Core/XMEGA/USBController_XMEGA.h:56,
from xmega_lufa_virtual_serial/../LUFA/Drivers/USB/Core/USBController.h:140,
from xmega_lufa_virtual_serial/../LUFA/Drivers/USB/Core/USBTask.h:47,
from xmega_lufa_virtual_serial/../LUFA/Drivers/USB/USB.h:382,
from xmega_lufa_virtual_serial/Descriptors.h:42,
from xmega_lufa_virtual_serial/VirtualSerial.h:54,
from xmega_lufa_virtual_serial/VirtualSerial.c:48:
xmega_lufa_virtual_serial/../LUFA/Drivers/USB/Core/XMEGA/../XMEGA/USBInterrupt_XMEGA.h:
In function 'USB_INT_Enable':
xmega_lufa_virtual_serial/../LUFA/Drivers/USB/Core/XMEGA/../XMEGA/USBInterrupt_XMEGA.h:76:7:
error: 'USB' undeclared (first use in this function)
xmega_lufa_virtual_serial/../LUFA/Drivers/USB/Core/XMEGA/../XMEGA/USBInterrupt_XMEGA.h:76:7:
note: each undeclared identifier is reported only once for each
function it appears in
xmega_lufa_virtual_serial/../LUFA/Drivers/USB/Core/XMEGA/../XMEGA/USBInterrupt_XMEGA.h:76:23:
error: 'USB_BUSEVIE_bm' undeclared (first use in this function)
xmega_lufa_virtual_serial/../LUFA/Drivers/USB/Core/XMEGA/../XMEGA/USBInterrupt_XMEGA.h:79:23:
error: 'USB_SOFIE_bm' undeclared (first use in this function)


....

all those errors make sense because simply those registers were not defined.

So I finally got the last version of avr-gnu from atmel directly:
http://www.atmel.com/Images/avr8-gnu-toolchain-3.3.2.485-linux.any.x86_64.zip

That indeed contained definitions for xmega256a3u and then all worked
... well almost.

Almost everything built fine, except this:
./LUFA/Drivers/USB/Class/Common/HIDParser.o: In function
`USB_ProcessHIDReport':
/auto/homes/osc22/projects/power_analysis_xmega/src_xmega/LUFA/Drivers/USB/Class/Common/HIDParser.c:267:
undefined reference to `CALLBACK_HIDParser_FilterHIDReportItem'

I had to implement my dummy callback:

bool CALLBACK_HIDParser_FilterHIDReportItem(
HID_ReportItem_t *const CurrentItem)
{
return false;
}


although I haven't seen that in the VirtualSerialX demo I've got.

Also in the doc for the CALLBACK_HIDParser_FilterHIDReportItem you say
that one must implement it only if the parser (???) is used. Well...
I'm not using any parser in particular, but I guess the CDC might be
using it?

Anyway, that seems to compile.

Thanks.

On Mon, Apr 30, 2012 at 6:54 PM, Weddington, Eric
<address@hidden> wrote:
>
>
>> -----Original Message-----
>> From: address@hidden [mailto:avr-
>> address@hidden On Behalf Of Omar
>> Choudary
>> Sent: Monday, April 30, 2012 10:30 AM
>> To: address@hidden
>> Subject: [avr-libc-dev] including avr/boot.h for xmega devices
>>
>
>> I would be grateful if someone could let me know what is the current
>> status on using avr/boot.h with xmega devices.
>
> I don't think boot.h has been systematically tested on xmega devices. It 
> probably doesn't work.
>
> Eric



reply via email to

[Prev in Thread] Current Thread [Next in Thread]