Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2831

Problems with Marlin 2.0.3 compiling - Mega2560 error (no replies)

$
0
0
Hi,
Working on updating home built DIY Mendel Prusa i3 clone with Marlin 2.0.3 and Ramps 1.4 controller.

I need some technical help here. On my desktop PC I configured my newly downloaded copy of Marlin 2.0.3 today - I had cleared my PC of every Marlin file before installing the new version. I opened Marlin.ino in a newly installed Arduino IDE version 1.8.11. After configuring each item which I changed, I verified the firmware so that I could isolate any problems individually as I went along. On the final verification the firmware compiled without error (I did have a problem with the RepRapDiscount Full Graphical controller initially but sorted that).

I then took the configured firmware loaded onto a thumb drive and opened it on the PC attached to my printer. When I verified it I was surprised to get an error message reporting problems with linking to the Arduino Mega 2560. Thinking that I might be missing some files on that PC in order to checkI returned to my study PC (printer is in detached garage) and was surprised to get the same error message despite it verifying correctly earlier.

This is the message I got after it had verified the firmware and when Arduino was linking it together.:


Linking everything together...
"C:\\Users\\Terry\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o
"C:\\Users\\Terry\\AppData\\Local\\Temp\\arduino_build_828547/Marlin.ino.elf"
"C:\\Users\\Terry\\AppData\\Local\\Temp\\arduino_build_828547\\sketch\\Marlin.ino.cpp.o"
"C:\\Users\\Terry\\AppData\\Local\\Temp\\arduino_build_828547/core\\core.a"
"-LC:\\Users\\Terry\\AppData\\Local\\Temp\\arduino_build_828547" -lm
C:\Users\Terry\AppData\Local\Temp\ccgDt77s.ltrans0.ltrans.o: In function `main':



C:\Users\Terry\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2\cores\arduino/main.cpp:43: undefined reference to `setup'

C:\Users\Terry\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.2\cores\arduino/main.cpp:46: undefined reference to `loop'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino Mega or Mega 2560.
Error compiling for board Arduino Mega or Mega 2560
.


The top 5 lines were all on one but I separated them for clarity. I have investigated the files indicated in the error message but am not a programmer and can't see where the problem is. The mystifying thing is that it verified on my study PC at first but came up with the error a second time I tried verifying it. I have attached a zipped copy of my configuration.h for possible testing.

Here's hoping that some good Samaritan takes pity on a tyro and I would be glad of any help and advice as my poor hair is disappearing as I tear it out.;)

Terry D

Viewing all articles
Browse latest Browse all 2831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>