--
You received this message because you are subscribed to the Google Groups "LUFA (Formerly MyUSB) Support" group.
To post to this group, send email to myusb-sup...@googlegroups.com.
To unsubscribe from this group, send email to myusb-support-l...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/myusb-support-list?hl=en.
On Tue, Nov 16, 2010 at 8:48 PM, Cameron Tacklind <cam...@tacklind.com> wrote:
>
> The most useful feature I missed from my Java days with netbeans was code
> completion. Assuming you get your C include paths setup properly, the code
> completion is simply amazing (especially with C++). The code almost writes
> it's self.
I have used NetBeans for J2ME work. It was a very pleasurable experience :-)
> I'd love to share how I setup netbeans with avr-gcc if anyone is interested.
I'd be interested. May I suggest writing it in a blog post or web
page? That way, we can bookmark it and come back to it and point our
friends at it.
Mitch.
Code Completion
Source Control Integration
Jump to definition (find it in the libraries even)
All of the things i like about x-code.
Now if only apple didnt hate embedded developers so much.
--
Especially -ffunction-sections is crucial, otherwise the linker will
complain.
I had to move away from the makefiles because C::B is the "Build
environment of choice" at our institute, and I said "it should be
possible without the makefile". Now I'm working on a CAN box with USB
and libusb(-win32) on the PC side.
Is anyone interested in stories about USBKEY and libusb?
Best regards,
Christoph
> --
> You received this message because you are subscribed to the Google
> Groups "LUFA (Formerly MyUSB) Support" group.
> To post to this group, send email to myusb-sup...@googlegroups.com.
> To unsubscribe from this group, send email to
> myusb-support-l...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/myusb-support-list?hl=en.
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.869 / Virus Database: 271.1.1/3260 - Release Date: 11/16/10 08:34:00
>
> I am also using Code::Blocks and until now just modified the makefiles to fit
> my project. However, I had some time to fiddle with compiler settings today
> and found that it *is* a good idea to copy the compiler flags from the
> makefile without *any* changes.
That is an annoyance with Dean's build mechanism.
> Especially -ffunction-sections is crucial, otherwise the linker will
> complain.
I understand the reason for -ffunction-sections,
but I don't understand why its lack might cause the linker to complain.
--
Michael henn...@web.cs.ndsu.NoDak.edu
"Pessimist: The glass is half empty.
Optimist: The glass is half full.
Engineer: The glass is twice as big as it needs to be."
Additional define: BOARD=USBKEY
the rest as in the makefile.
Without -ffunction-sections, the following linker error occurs:
obj\Release\LUFA\Drivers\USB\LowLevel\Endpoint.o: In function
`Endpoint_Read_Control_EStream_BE':
Endpoint.c:(.text+0x8d0): undefined reference to `__eeupd_byte_usb1287'
plus similar messages for
Endpoint_Read_Control_EStream_LE
Endpoint_Read_EStream_BE
Endpoint_Read_EStream_LE
Endpoint_Write_Control_EStream_BE (missing __eerd_byte_usb1287)
Endpoint_Write_Control_EStream_LE (missing __eerd_byte_usb1287)
Endpoint_Write_EStream_BE (missing __eerd_byte_usb1287)
Endpoint_Write_EStream_LE (missing __eerd_byte_usb1287)
Somehow these should be present somewhere, but they aren't. The avr-libc
EEPROM header file <avr/eeprom.h> also uses these functions in a macro
(using string concatenation). However, the functions that call
__eerd_byte_usb1287 and eeupd_byte_1287 are not needed by the mouse
demo, and with -ffunction-sections these will be thrown out before the
error occurs. In that case, the whole thing compiles without any
warnings and errors. That's at least what I'm observing here...
Using WinAVR-20100110
On 24.11.2010 20:13, Michael Hennebry wrote:
> On Tue, 23 Nov 2010, Christoph Redecker wrote:
>
>> I am also using Code::Blocks and until now just modified the makefiles
>> to fit my project. However, I had some time to fiddle with compiler
>> settings today and found that it *is* a good idea to copy the compiler
>> flags from the makefile without *any* changes.
>
> That is an annoyance with Dean's build mechanism.
>
>> Especially -ffunction-sections is crucial, otherwise the linker will
>> complain.
>
> I understand the reason for -ffunction-sections,
> but I don't understand why its lack might cause the linker to complain.
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.872 / Virus Database: 271.1.1/3276 - Release Date: 11/24/10 08:34:00
>
my Linux machine doesn't have a decent avr-gcc, so I switched to Win and
WinAVR. This is an old thread, but I am again encountering a problem
with the endpoint template mechanism Dean is using. I get the following
warning/error combination:
warning: implicit declaration of function `eeprom_update_byte`
error: undefined reference to `eeprom_update_byte`
eeprom_update_byte should be available in avr-libc.
Template_Endpoint_RW.c is included by EndpointStream.c, which in turn
includes EndpointStream.h, which includes Common.h, which includes
avr/eeprom.h. So all functions declared in avr/eeprom.h should be
visible in the template.
I'm again using Code::Blocks and WinAVR 20100110 (it seems there is no
newer WinAVR?), and LUFA 110528.
What could be the reason for this error? I really don't understand it.
While just copying the makefile settings worked before, it refuses to
work now.
Christoph
undefined reference to `__eerd_byte_usb1287)`
and -ffunction-section does not have any effect (as it did when I first
had errors of this type). There is a thread at avrfreaks indicating that
this might be caused by the linker not getting the -mmcu option, but in
my case it does (I can post a complete build log later today).
I'm using a per-project copy of LUFA, so I can patch it as required.
What exactly are the update functions used for? Maybe I can get away
without touching the EEPROM at all.
Regards
Christoph
Regards
Christoph