Open 4dvn opened 4 years ago
It reports that clock_dic_1 is undeclared, have you modified something in the code?, the code should compile perfect without modifications, it has been tested in different machines and it does.
I'm not modified yet, i just download the git and try compile via avr-2010 on windows 10, can you update the CandyX DDJ pcb and software file?
Yiu should try compiling it with the lastest version of gcc, the 4.3.3 is so old.
when i compile i got this error: avr-gcc (WinAVR 20100110) 4.3.3 Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[GCC] : Compiling C file "USBtoSerial.c" avr-gcc -c -pipe -gdwarf-2 -g2 -mmcu=atmega8u2 -fshort-enums -fno-inline-small-functions -fpack-struct -Wall -fno-strict-aliasing -funsigned-char -funsigned-bitfields -ffunction-sections -I. -DARCH=ARCH_AVR8 -DF_CPU=16000000UL -mrelax -fno-jump-tables -x c -Os -std=gnu99 -Wstrict-prototypes -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DAVR_RESET_LINE_PORT="PORTC" -DAVR_RESET_LINE_DDR="DDRC" -DAVR_RESET_LINE_MASK="(1 << 7)" -DAVR_ERASE_LINE_PORT="PORTC" -DAVR_ERASE_LINE_DDR="DDRC" -DAVR_ERASE_LINE_MASK="(1 << 6)" -I. -I../../LUFA/.. -DARCH=ARCH_AVR8 -DBOARD=BOARD_USBKEY -DF_USB=16000000UL -MMD -MP -MF obj/USBtoSerial.d USBtoSerial.c -o obj/USBtoSerial.o USBtoSerial.c: In function 'SetupHardware': USBtoSerial.c:154: warning: implicit declaration of function 'clock_prescale_set' USBtoSerial.c:154: error: 'clock_div_1' undeclared (first use in this function) USBtoSerial.c:154: error: (Each undeclared identifier is reported only once USBtoSerial.c:154: error: for each function it appears in.) make: *** [obj/USBtoSerial.o] Error 1