AlexIII / t-rex-duino

Clone of T-rex game from Chrome browser rewritten for Arduino
MIT License
83 stars 12 forks source link

avr-gcc: error: @C:\Windows\TEMP\ccsC7iRx: Invalid argument #1

Closed wuyizheng123456 closed 4 years ago

wuyizheng123456 commented 4 years ago

hey,i got this error info during the compilation: Archiving built core (caching) in: C:\Windows\TEMP\arduino_cache_995426\core\core_arduino_avr_nano_cpu_atmega328_e8542dfad011fe300fac8042c3582138.a Linking everything together... "D:\arduino-1.8.12-windows (1)\arduino-1.8.12\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Windows\TEMP\arduino_build_169738/t-rex-duino.ino.elf" "C:\Windows\TEMP\arduino_build_169738\sketch\t-rex-duino.ino.cpp.o" "C:\Windows\TEMP\arduino_build_169738\libraries\SPI\SPI.cpp.o" "C:\Windows\TEMP\arduino_build_169738/core\core.a" "-LC:\Windows\TEMP\arduino_build_169738" -lm avr-gcc: error: @C:\Windows\TEMP\ccsC7iRx: Invalid argument

avr-gcc: fatal error: no input files

compilation terminated.

lto-wrapper.exe: fatal error: D:\arduino-1.8.12-windows (1)\arduino-1.8.12\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

d:/arduino-1.8.12-windows (1)/arduino-1.8.12/hardware/tools/avr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

使用 1.0 版本的库 SPI 在文件夹: D:\arduino-1.8.12-windows (1)\arduino-1.8.12\hardware\arduino\avr\libraries\SPI 使用 2.0 版本的库 EEPROM 在文件夹: D:\arduino-1.8.12-windows (1)\arduino-1.8.12\hardware\arduino\avr\libraries\EEPROM exit status 1

AlexIII commented 4 years ago

HI! Looks like general Arduino IDE error to me, unrelated to the actual code. Are you sure your IDE installed properly? Try compiling some of built-in examples.

wuyizheng123456 commented 4 years ago

thank u,i reinstalled the ide,and it works.but when i connect the vcc of the oled to 5v or 3.3v of arduino,the oled heats quickly and its backlight is very dark.

AlexIII commented 4 years ago

What kind of display you're using? OLEDs don't have any backlight. In any way, it shouldn't heat up of course, my guess is that either your connections are wrong or the display is toast.

wuyizheng123456 commented 4 years ago

It's ssd1309 spi 2.42" and bought from ebay,actually only this chip (d1,the black one) heats up. 1593627715265-1136579143 Should I connect vcc and ground to an external power supply?

wuyizheng123456 commented 4 years ago

Hy j got an update,this is the image when it is connected to 3.3V,so you can see it's a little fuzzy and the score is not very clear.And when it is connected to 5v,i can get a clear and good picture at first but after a while the arduino cant go on working and the whole thing just stops

wuyizheng123456 commented 4 years ago

mmexport1593629981081

wuyizheng123456 commented 4 years ago

hey i made it,!

AlexIII commented 4 years ago

Glad to hear!