Welcome! Log In Create A New Profile

Advanced

Error trying to upload Marlin to mega

Posted by gregted 
Error trying to upload Marlin to mega
December 13, 2016 09:35PM
Hey all.
I have just built a delta and am trying to upload Marlin to my mega but get this error.
Error compiling for board Arduino/Genuino mega or 2560.
I have tried the marlin sketch from Richrap that he uses on his 3dr and another from github.
I have chosen motherboard 33 as ramps 1.4.
I think the board is ok as i can upload the blink sketch with no problems.
I have a Prusa3 that i built about 4 years ago but it runs on Sanguinololu and sprinter so ramps and Marlin are new to me.
Thanks.
Greg.
Re: Error trying to upload Marlin to mega
December 13, 2016 10:36PM
You should have received more information from the error than that.

Can you post the complete error details please? Posting your configuration.h (as a file attachment, not just smacked into the post) will also help.
Re: Error trying to upload Marlin to mega
December 14, 2016 01:02PM
And if it's current Marlin, they don't use the numbers anymore
Instead of 33 It'd be something like BOARD_RAMPS_14_EFB
Re: Error trying to upload Marlin to mega
December 15, 2016 04:34AM
Make sure in Arduino IDE to go into options and select "verbose output" in order that you get the full details of any errors. It will show you where most errors are coming from, not that it is always easy to work out how to fix it, but post the compiler error here someone will know how to solve the problem.


Simon Khoury

Co-founder of [www.precisionpiezo.co.uk] Accurate, repeatable, versatile Z-Probes
Published:Inventions
Re: Error trying to upload Marlin to mega
March 20, 2017 12:57PM
I am having the same issue after uploading the hex file that Hictop provided to get my board reactivated. the following is the verbose message I am getting. If there are experts out there that can help I would appreciate it as I can't make any modification or tweaks to the firmware.


Arduino: 1.6.8 (Mac OS X), Board: "Arduino Mega ADK"

/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware "/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/hardware" -tools "/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/tools-builder" -tools "/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/hardware/tools/avr" -built-in-libraries "/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/libraries" -libraries "/Users/randycrossley/Documents/Arduino/libraries" -fqbn=arduino:avr:megaADK -ide-version=10608 -build-path "/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/build02448615e1ca136401363e53b134b8fd.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/Users/randycrossley/Documents/3d builds/Marlin_3DP12_398/Marlin_3DP12_398.ino"
/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware "/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/hardware" -tools "/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/tools-builder" -tools "/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/hardware/tools/avr" -built-in-libraries "/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/libraries" -libraries "/Users/randycrossley/Documents/Arduino/libraries" -fqbn=arduino:avr:megaADK -ide-version=10608 -build-path "/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/build02448615e1ca136401363e53b134b8fd.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/Users/randycrossley/Documents/3d builds/Marlin_3DP12_398/Marlin_3DP12_398.ino"
"/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10608 -DARDUINO_AVR_ADK -DARDUINO_ARCH_AVR "-I/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino" "-I/private/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/AppTranslocation/E5AC921D-CFCD-406F-84AE-BF167A14AF0D/d/Arduino.app/Contents/Java/hardware/arduino/avr/variants/mega" "/var/folders/93/lvf90j4959z08056k3sw3xzh0000gn/T/build02448615e1ca136401363e53b134b8fd.tmp/sketch/Marlin_3DP12_398.ino.cpp" -o "/dev/null"
failed MSpanList_Insert 0x30e260 0x1cb997246b154 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.MSpanList_Insert(0x2c6fd0, 0x30e260)
/usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_AllocStack(0x2c6c20, 0x4, 0xc2080c8d80)
/usr/local/go/src/runtime/mheap.c:267 +0x71

goroutine 1 [syscall]:
syscall.Syscall6(0x7, 0x558b, 0xc2082f71dc, 0x0, 0xc2082ae7e0, 0x0, 0x0, 0xc208038240, 0x7471, 0xc208038260)
/usr/local/go/src/syscall/asm_darwin_amd64.s:44 +0x5
syscall.wait4(0x558b, 0xc2082f71dc, 0x0, 0xc2082ae7e0, 0x90, 0x0, 0x0)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:32 +0x79
syscall.Wait4(0x558b, 0xc2082f7224, 0x0, 0xc2082ae7e0, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/syscall_bsd.go:162 +0x60
os.(*Process).wait(0xc20809e9a0, 0x0, 0x0, 0x0)
/usr/local/go/src/os/exec_unix.go:22 +0x103
os.(*Process).Wait(0xc20809e9a0, 0xc208042d00, 0x0, 0x0)
/usr/local/go/src/os/doc.go:45 +0x3a
os/exec.(*Cmd).Wait(0xc20803ab40, 0x0, 0x0)
/usr/local/go/src/os/exec/exec.go:364 +0x23c
os/exec.(*Cmd).Run(0xc20803ab40, 0x0, 0x0)
/usr/local/go/src/os/exec/exec.go:246 +0x71
arduino.cc/builder/builder_utils.ExecRecipeCollectStdErr(0xc208096a50, 0x1efe10, 0x15, 0x101, 0x318f90, 0x2c0908, 0x0, 0x0, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder_utils/utils.go:338 +0x1b1
arduino.cc/builder.(*GCCPreprocRunnerForDiscoveringIncludes).Run(0xc20801e540, 0xc20803c570, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/gcc_preproc_runner.go:80 +0x23e
arduino.cc/builder.runCommand(0xc20803c570, 0x31a3a0, 0xc20801e540, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/container_find_includes.go:93 +0x6c
arduino.cc/builder.findIncludesUntilDone(0xc20803c570, 0xc208296a00, 0x7a, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/container_find_includes.go:111 +0x3c2
arduino.cc/builder.(*ContainerFindIncludes).Run(0x2c0908, 0xc20803c570, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/container_find_includes.go:49 +0x383
arduino.cc/builder.runCommands(0xc20803c570, 0xc2082f7b90, 0x1d, 0x1d, 0x19501, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:187 +0x139
arduino.cc/builder.(*Builder).Run(0xc2082f7d88, 0xc20803c570, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:118 +0xef7
arduino.cc/builder.RunBuilder(0xc20803c570, 0x0, 0x0)
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/src/arduino.cc/builder/builder.go:218 +0x49
main.main()
/Users/jenkins/jenkins/workspace/arduino-builder-macosx/main.go:320 +0x1eb2

goroutine 5 [syscall]:
syscall.Syscall(0x3, 0x5, 0xc20807cc00, 0x200, 0xc2080321c8, 0x2a0000c200000003, 0xc2080321c8)
/usr/local/go/src/syscall/asm_darwin_amd64.s:20 +0x5
syscall.read(0x5, 0xc20807cc00, 0x200, 0x200, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:970 +0x6e
syscall.Read(0x5, 0xc20807cc00, 0x200, 0x200, 0xc20801d5a0, 0x0, 0x0)
/usr/local/go/src/syscall/syscall_unix.go:136 +0x58
os.(*File).read(0xc2080404c0, 0xc20807cc00, 0x200, 0x200, 0xc20807cc00, 0x0, 0x0)
/usr/local/go/src/os/file_unix.go:191 +0x86
os.(*File).Read(0xc2080404c0, 0xc20807cc00, 0x200, 0x200, 0x0, 0x0, 0x0)
/usr/local/go/src/os/file.go:95 +0x91
bytes.(*Buffer).ReadFrom(0xc208011b90, 0x3192c0, 0xc2080404c0, 0x0, 0x0, 0x0)
/usr/local/go/src/bytes/buffer.go:169 +0x25a
io.Copy(0x31a3f0, 0xc208011b90, 0x3192c0, 0xc2080404c0, 0x0, 0x0, 0x0)
/usr/local/go/src/io/io.go:358 +0x13d
os/exec.funcĀ·003(0x0, 0x0)
/usr/local/go/src/os/exec/exec.go:221 +0x7d
os/exec.funcĀ·004(0xc20809e7e0)
/usr/local/go/src/os/exec/exec.go:328 +0x2d
created by os/exec.(*Cmd).Start
/usr/local/go/src/os/exec/exec.go:329 +0xb6d
arduino-builder returned 2
Error compiling for board Arduino Mega ADK.
Sorry, only registered users may post in this forum.

Click here to login