Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get error when compile #1

Open
4dvn opened this issue Jan 19, 2020 · 3 comments
Open

Get error when compile #1

4dvn opened this issue Jan 19, 2020 · 3 comments

Comments

@4dvn
Copy link

4dvn commented Jan 19, 2020

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

@VictorCasadoZ
Copy link
Owner

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.

@4dvn
Copy link
Author

4dvn commented Jan 19, 2020

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?

@VictorCasadoZ
Copy link
Owner

Yiu should try compiling it with the lastest version of gcc, the 4.3.3 is so old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants