avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] VUSB problem


From: Joerg Wunsch
Subject: Re: [avr-chat] VUSB problem
Date: Mon, 10 Oct 2011 08:18:32 +0200 (MET DST)

dmitry chernov <address@hidden> wrote:

> usbdrv/usbdrv.h:455:6: error: variable 'usbDescriptorDevice' must be const
> in order to be put into read-only section by means of
> '__attribute__((progmem))'

Please report that to the VUSB maintainer.  Any data that are placed
into progmem are required to be declared `const' now.  This is an
obvious consequence of the nature of flash memory, but previously, GCC
didn't require that.  This eventually lead to internal errors
(crashes) of GCC, so this requirement has been added to GCC recently.

The PGMSPACE macro of avr-libc has been modified for this, but anyone
declaring their own progmem data have to adapt their code as well.
-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

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



reply via email to

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