Salut à tous,

J'ai répliqué avec succé ce programmeur : http://www.simpleavr.com/avr/vusbtiny

Selemement je l'ai fait avec un attiny45 et je souhaiterai maintenant utiliser un attiny85. Pour ce faire il faut recompiler les sources en changeant les données du makefile.

Mon problème est le suivant je n'arrive même pas à compiler les sources sans toucher au makefile.

Je me place dans le dossier où ce trouve le makefile je lance la commande "make" et la j'ai plusieurs erreurs qui apparaissent.

Comment es que je peux gérer ça? Je suis sous ubuntu et les les paquets suivants sont installés : avrdude, binutils-avr, gcc-avr, avr-libc, gdb-avr.

Voici les erreurs qui me sont retournées:

Code:
avr-gcc -I. -Iusbdrv -g -mmcu=attiny45 -Os -DF_CPU=16500000 -fpack-struct -fshort-enums -funsigned-bitfields -funsigned-char -Wall -Wstrict-prototypes -Wa,-ahlms=main.lst -c main.c -o main.o
In file included from main.c:46:0:
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))’
 char usbDescriptorDevice[];
      ^
usbdrv/usbdrv.h:461:6: error: variable ‘usbDescriptorConfiguration’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
 char usbDescriptorConfiguration[];
      ^
usbdrv/usbdrv.h:467:6: error: variable ‘usbDescriptorHidReport’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
 char usbDescriptorHidReport[];
      ^
usbdrv/usbdrv.h:473:6: error: variable ‘usbDescriptorString0’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
 char usbDescriptorString0[];
      ^
usbdrv/usbdrv.h:479:5: error: variable ‘usbDescriptorStringVendor’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
 int usbDescriptorStringVendor[];
     ^
usbdrv/usbdrv.h:485:5: error: variable ‘usbDescriptorStringDevice’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
 int usbDescriptorStringDevice[];
     ^
usbdrv/usbdrv.h:491:5: error: variable ‘usbDescriptorStringSerialNumber’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’
 int usbDescriptorStringSerialNumber[];
     ^
main.c:109:13: warning: always_inline function might not be inlinable [-Wattributes]
 static void delay ( void )
             ^
make: *** [main.o] Erreur 1