Welcome! Log In Create A New Profile

Advanced

Teacup on Sanginololu under Win 7

Posted by OSUFlatland 
Teacup on Sanginololu under Win 7
June 08, 2015 05:43PM
Hi, first, please delete this post and point me in the right direction if this has been covered elsewhere, but I've been looking for a week or better and found nothing useful.

I realize that I'm doing absolutely everything wrong, but I'm cheap and not against learning the hard way, so it works out alright.

This might take a little back story, so bear with me. I got a 3D printer as a kit from a Chinese company called Geeetech on Amazon with the goal of eventually rebuilding it mostly from the ground up when I have better facilities to do so. I have access to a machine shop and cheap lead screws and linear rails, so speed be damned, I intend to make a truly rigid, precise 3D Printer. But for now, I'd like to see what $400 can get me. I assembled the printer and everything seems to work okay... except the end stops. I've probed them and they're switching correctly, so barring the control board, which is silkscreened with "sanguinololu 1.3a", I assume there must be a firmware problem, but it's been configured from the factory. Original is claimed to be Marlin, but I like tinkering, so I read until I found "the best" in my opinion - actually Repetier, but Arduino IDE consistently froze while building. I may try rolling back the IDE and seeing if it helps, but for now I've moved on to Teacup. Which is also having trouble. Attached are photos of the error message and my settings.
Attachments:
open | download - Teacup Error.jpg (142 KB)
open | download - Teacup Settings.jpg (83.2 KB)
Re: Teacup on Sanginololu under Win 7
June 09, 2015 06:16AM
This is the typical symptom of a bug found after the announcement of Configtool: the tool would search for avr-gcc (Unix/Linux/Mac OS X name), but not for avr-gcc.exe (Windows name). It was fixed on June 4th.

Downloading and unpacking Teacup again should help. Unpacking it to the same dir will overwrite the old files, but keep your configuration.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Teacup on Sanginololu under Win 7
June 09, 2015 02:27PM
Awesome! Worked great, thanks!
Re: Teacup on Sanginololu under Win 7
June 09, 2015 03:00PM
Annnnnd, new issue: times out trying to communicate with the FTDI chip. Only USB power applied, Win 7 x64. Reset jumper is in place, red LED by extruder header is on solid. Thanks in advance, and sorry for the N00B questions.
Re: Teacup on Sanginololu under Win 7
June 09, 2015 03:25PM
Are you saying it times out trying to do the upload? If so, do you have the correct programmer, port, and upload speed specified? These three items are critical to having upload succeed. I don't know the sanguinololu well enough to say what the appropriate values are, but if you have the arduino IDE, you can check the settings there. Both the arduino IDE and the teacup configtool use the same underlying tool - avrdude - to achieve the upload. It's just a matter of determining what the correct parameters are.
Re: Teacup on Sanginololu under Win 7
June 10, 2015 12:55AM
Yes, it times out during upload. I'm trying to use the configtool and a USB cable to the Sanguinololu, which I understand uses an FTDI USB-serial converter chip. Is this effective or am I mistaken and in need of a proper ISP or chip programmer? Thanks.
Re: Teacup on Sanginololu under Win 7
June 10, 2015 05:18AM
I was having the same problem with a RAMPS board I tried this firmware on.
I believe the reset-before-upload thing is not working properly (DTR?) with avrdude. The workaround I found was to open pronterface, connect to the board, press "Reset" button in pronterface and disconnect from the board. After this little sequence, avrdude works fine and flashes teacup on the board.

Didn't feel like investing more time in this and finding out the real cause as this workaround allowed me to proceed with my testing of teacup.

HTH
Re: Teacup on Sanginololu under Win 7
June 10, 2015 05:26AM
In case you can upload something with Arduino directly (can be anything, e.g. the Blink example): there's a checkbox in Arduinos settings to see the commands used for uploading. Then compare this to the one Configtool uses. As jbernardis said, it's the very same avrdude executable, so there's certainly a way to get it working.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Teacup on Sanginololu under Win 7
June 10, 2015 11:26PM
The Arduino IDE option to see the commands is "show verbose output during: compilation upload". I have both check boxes enabled. This way when the code is building or uploading, you can see the full command lines go by in the window. If we can see the avrdude command line, we could tell you what values to plug into configtool.

Edited 1 time(s). Last edit at 06/10/2015 11:27PM by jbernardis.
Re: Teacup on Sanginololu under Win 7
June 11, 2015 12:36AM
Okay, so I did all the aforementioned, and here is the result of reattempting to upload:

"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe" -C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" -c stk500v2 -b 115200 -p atmega1284p -P COM8 -U flash:w:"C:\Users\Craig\Downloads\Programs\3D Printer\Firmware\Teacup_Firmware-master\teacup.hex":i
avrdude.exe: stk500v2_ReceiveMessage(): timeout
avrdude.exe: stk500v2_ReceiveMessage(): timeout
avrdude.exe: stk500v2_ReceiveMessage(): timeout
avrdude.exe: stk500v2_ReceiveMessage(): timeout
avrdude.exe: stk500v2_ReceiveMessage(): timeout
avrdude.exe: stk500v2_ReceiveMessage(): timeout
avrdude.exe: stk500v2_getsync(): timeout communicating with programmer


And this is the console output from Arduino:


Build options changed, rebuilding all
Using library Servo in folder: C:\Program Files (x86)\Arduino\libraries\Servo

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino -IC:\Program Files (x86)\Arduino\libraries\Servo\src C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\ServoKnob.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\ServoKnob.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino -IC:\Program Files (x86)\Arduino\libraries\Servo\src C:\Program Files (x86)\Arduino\libraries\Servo\src\avr\Servo.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\Servo\avr\Servo.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino -IC:\Program Files (x86)\Arduino\libraries\Servo\src C:\Program Files (x86)\Arduino\libraries\Servo\src\sam\Servo.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\Servo\sam\Servo.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\hooks.c -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\hooks.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\WInterrupts.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring.c -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\wiring.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_analog.c -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\wiring_analog.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_digital.c -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\wiring_digital.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_pulse.c -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\wiring_pulse.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_shift.c -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\wiring_shift.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\abi.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\abi.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\CDC.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\CDC.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HardwareSerial.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HardwareSerial.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HardwareSerial0.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HardwareSerial0.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HardwareSerial1.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HardwareSerial1.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HardwareSerial2.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HardwareSerial2.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HardwareSerial3.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HardwareSerial3.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\HID.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HID.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\IPAddress.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\IPAddress.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\main.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\main.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\new.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\new.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Print.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\Print.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Stream.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\Stream.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\Tone.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\Tone.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\USBCore.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\USBCore.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WMath.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\WMath.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1284p -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Users\Craig\AppData\Roaming\Arduino15\packages\Sanguino\hardware\avr\1.0.0\variants\sanguino C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WString.cpp -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\WString.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\hooks.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\WInterrupts.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\wiring.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\wiring_analog.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\wiring_digital.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\wiring_pulse.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\wiring_shift.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\abi.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\CDC.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HardwareSerial.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HardwareSerial0.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HardwareSerial1.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HardwareSerial2.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HardwareSerial3.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\HID.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\IPAddress.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\main.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\new.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\Print.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\Stream.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\Tone.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\USBCore.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\WMath.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-ar rcs C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\WString.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc -w -Os -Wl,--gc-sections -mmcu=atmega1284p -o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/ServoKnob.cpp.elf C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\ServoKnob.cpp.o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\Servo\avr\Servo.cpp.o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp\Servo\sam\Servo.cpp.o C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/core.a -LC:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp -lm
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/ServoKnob.cpp.elf C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/ServoKnob.cpp.eep
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy -O ihex -R .eeprom C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/ServoKnob.cpp.elf C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/ServoKnob.cpp.hex

Sketch uses 2,800 bytes (2%) of program storage space. Maximum is 130,048 bytes.
Global variables use 60 bytes (0%) of dynamic memory, leaving 16,324 bytes for local variables. Maximum is 16,384 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -carduino -PCOM8 -b115200 -D -Uflash:w:C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/ServoKnob.cpp.hex:i

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM8
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe1
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x73
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x58
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xf1
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x3a
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x26
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x58
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xc3
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x08

avrdude done. Thank you.


which seems to suggest that Arduino has communication issues with the board as well? Could be the cheapest Chinese manufacturer couldn't be bothered with a bootloader? But they do have firmware available, and it looks to just be Marlin. I'm not a complete newbie at electronics, but my experience has mostly been in controlled classroom environments with purpose built solutions. Again, thanks for the help, everyone.
Re: Teacup on Sanginololu under Win 7
June 11, 2015 06:10AM
Quote
OSUFlatland
"C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe" -C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" -c stk500v2 -b 115200 -p atmega1284p -P COM8 -U flash:w:"C:\Users\Craig\Downloads\Programs\3D Printer\Firmware\Teacup_Firmware-master\teacup.hex":i
[...]
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -carduino -PCOM8 -b115200 -D -Uflash:w:C:\Users\Craig\AppData\Local\Temp\build3614415839771193501.tmp/ServoKnob.cpp.hex:i

Hmm. These two are identical, except for the -c flag ("arduino" vs. "stk500v2") and the -D flag ("disable auto erase").

Quote
OSUFlatland
which seems to suggest that Arduino has communication issues with the board as well? Could be the cheapest Chinese manufacturer couldn't be bothered with a bootloader? But they do have firmware available, and it looks to just be Marlin.

Yes and yes, and: if they provide a firmware, how do they expect you to upload this? Unfortunately I'm not aware of a procedure to check for a bootloader, except for connecting with a programmer.

If you have a PC with a true parallel port available, bit banging with a few resistors is the cheapest way: [www.arduino.cc] Second option is to find a friend with a programmer, uploading a bootloader has to be done only once in a lifetime. If you want to get your own programmer, make sure it's a model which supports > 64 kB Flash: [reprap.org]


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Teacup on Sanginololu under Win 7
June 11, 2015 09:37AM
Glad that fancy piece of paper left me with some deductive skills and a little feeling for error messages. smiling smiley Two out of four likely candidates do, in fact, have a parallel port. I can load whatever OS is needed on them and go. Possibly even a live image? My cousin has a PIC programmer. I know they bought Atmel a while back, but have no idea how compatible the interfaces are.

I also can get these:

http://www.surplusgizmos.com/AVRISP-STK500-Compatible-Atmel-USB-Programmer-ISP_p_1938.html

and

http://www.surplusgizmos.com/STK48-Development-Prototyping-board-for-Atmel-ATmega8-ATmega168-ATmega328-_p_1940.html

but the prototyping board at least looks like it won't work with the Atmel 1284 on my Sanguinololu. Also, I see no ISP header on my Sanguinololu, so I assume I'll need an external programmer. Glad I was never planning on sticking to the sub-$400 purchase price of this printer. smiling smiley
Re: Teacup on Sanginololu under Win 7
June 11, 2015 02:14PM
Quote
OSUFlatland
I know they bought Atmel a while back, but have no idea how compatible the interfaces are.

This one likely works. AFAIK there is only one such device for the whole AVR range.

Quote
OSUFlatland
http://www.surplusgizmos.com/AVRISP-STK500-Compatible-Atmel-USB-Programmer-ISP_p_1938.html

Looks like an STK500, which is up to 64k, only, so no bootloader programming possible. STK500v2 is good.

Quote
OSUFlatland
http://www.surplusgizmos.com/STK48-Development-Prototyping-board-for-Atmel-ATmega8-ATmega168-ATmega328-_p_1940.html

Socket has only 28 pins.

Quote
OSUFlatland
Also, I see no ISP header on my Sanguinololu, so I assume I'll need an external programmer.

It's the 6-pin header at the bottom right corner: [reprap.org] In case your programmer has a 10 pin connector, place it in a way that two pins on each side are left unconnected.

There's no danger with trying. It's possible to brick ATmegas (disable serial programming or setting it to external clock instead of external oscillator), but to do so, the programmer has to work. The wiki page for Gen7 Arduino IDE Support describes how all this works and this package its self has the required bootloader binaries inside.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Teacup on Sanginololu under Win 7
June 11, 2015 03:24PM
It occurs to me that the ISP may be doubling for the display header. Pretty sure one of the pin clusters it's plugged into is a 2x3. I'll check it out when I get home tonight or tomorrow and report back.

Could this be used?

http://www.arduino.cc/en/Tutorial/ArduinoISP

I have several Arduinos of various flavors kicking around.

Edited 1 time(s). Last edit at 06/11/2015 03:42PM by OSUFlatland.
Re: Teacup on Sanginololu under Win 7
June 11, 2015 05:24PM
Quote
OSUFlatland
It occurs to me that the ISP may be doubling for the display header.

Yes, the programming header is actually an SPI header with Chip Select connected to Reset. Displays connecting to SPI also exist.

Quote
OSUFlatland
Could this be used?

http://www.arduino.cc/en/Tutorial/ArduinoISP

Yes.

If you happen to find this supports > 64 kB, please remove the question mark on the RepRap wiki page for AVR programmers.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Teacup on Sanginololu under Win 7
June 11, 2015 05:47PM
Can do. Hopefully I can get to it tomorrow after work, but no promises. 12 hour shifts eat your work days. smiling smiley
Re: Teacup on Sanginololu under Win 7
June 12, 2015 09:36AM
So...I have a bunch of Pro Micro's, which the how-to seems to say won't work because they don't have an FTDI chip - on chip USB - or a couple Mini Pro, which use an off board FTDI USB-TTL programmer.I have a couple others too, but they're buried in storage somewhere. Thoughts on my best bet? Or try them and see what works?
Re: Teacup on Sanginololu under Win 7
June 13, 2015 06:31AM
Try them. Once there's a bootloader on the chip three's no need to ever look back.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Teacup on Sanginololu under Win 7
June 13, 2015 09:29AM
Update:the Pro Micro seems to have taken the Arduino ISP code, but I need a cable now, and would like something a bit more elegant than bits of CAT5 stuck to a few strips of 1x header strip. I'll try to get a ribbon cable and header connector from a local surplus shop on my lunch today.
Re: Teacup on Sanginololu under Win 7
June 17, 2015 03:40PM
Attempting to use a Pro Micro to burn the bootloader to the Sanguinololu gives me the following:


Arduino: 1.6.4 (Windows 7), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -cstk500v1 -PCOM11 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m



avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58

Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]

Copyright (c) 2007-2009 Joerg Wunsch



System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



Using Port : COM11

Using Programmer : stk500v1

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x3f

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x3f

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x3f

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x3f

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x3f

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x3f

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x3f

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x3f

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x3f

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x3f



avrdude done. Thank you.



Error while burning bootloader.
Re: Teacup on Sanginololu under Win 7
June 17, 2015 04:00PM
Quote
OSUFlatland
Using Programmer : stk500v1

Given that your programmer should support binaries > 64 kB, this might not work. Swapping stk500v1 for stk500v2 (-c parameter) should give better results.

Quote
OSUFlatland
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x3f

This means, communications partially works, but not the expected way. No clear way to fix this (googling together with "Arduino" will find a lot of ideas). Dis- and reconnecting USB often works.

Is the ATmega brand new? Are the fuses set? If not, try to add a -B10 parameter to make communications slower. Factory fresh ATmegas run at just 1 MHz regardless of the oscillator attached; not enough to communicate at > 100'000 baud.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Teacup on Sanginololu under Win 7
June 17, 2015 07:18PM
Okay, solved a driver issue with the Arduino, which I probably should have done before even trying, but I was impatient... Same error. Do I have to try burning the boot loader from a command line or is there a way in GUI to swap stk500v1 for stk500v2? I tried switching to "AVRISP Mk II" but got the following:

Arduino: 1.6.4 (Windows 7), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -cstk500v2 -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m



avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58

Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]

Copyright (c) 2007-2009 Joerg Wunsch



System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



Using Port : usb

Using Programmer : stk500v2

Error while burning bootloader.

avrdude: usbdev_open(): did not find any USB device "usb"


I assume this is because the Arduino GUI is looking for some other USB composite device and all I have available is a USB COM port?
Re: Teacup on Sanginololu under Win 7
June 17, 2015 07:23PM
I also tried uploading with "Arduino as ISP" as the programmer, and received the following:


Arduino: 1.6.4 (Windows 7), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -cstk500v1 -PCOM12 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m



avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58

Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]

Copyright (c) 2007-2009 Joerg Wunsch



System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"



Using Port : COM12

Using Programmer : stk500v1

Overriding Baud Rate : 19200

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x03

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x03

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x03

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x03

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x03

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x03

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x03

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x03

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x03



avrdude done. Thank you.



Problem uploading to board. See [www.arduino.cc] for suggestions.

Arduino and Sanguinololu have both been plugged and unplugged multiple times. Yes, this is the first use of the ISP Arduino.
Re: Teacup on Sanginololu under Win 7
June 17, 2015 07:58PM
Also, I tried AVRISP Mk II, but it gave the error "could not find usb" or somesuch - I assume because that programmer does not operate over a simple COM port.
Re: Teacup on Sanginololu under Win 7
June 18, 2015 09:52AM
Using the command line is much easier in such cases. Still some people prefer to edit the boards.txt file somewhere inside the Arduino folder to adjust parameters there. In case you want to access the .hex file for a self built firmware, Arduino places them in a temporary folder %TEMP%\buildxxx or similar.

USB and COM are different things. Some modern devices connect through USB just to provide a COM port, others connect the same way, but do not provide a COM port. -Pusb is for those who don't. Those who do, need a baud rate with the -b flag.

I take you have no idea how your programmer works. Finding this out would be good, just for the purpose of learning to operate the thing at all. The kind of firmware doesn't matter, with a bootloader it works the same. Google? Somebody on this planet should have used your programmer successfully before.

Funny thing here, the person who avoids touching Windows at all and who doesn't own a single Arduino has to explain how this works, because all the Windows and Arduino users declare to be dumb :-)


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Teacup on Sanginololu under Win 7
June 18, 2015 01:31PM
I you're trying to use an FTDI connection, you are basically trying to program the AVR thought the serial interface. I'm not 100% sure of this, but I think in this case, you need a bootloader on your AVR already. this is the arduino solution.

If you're using a raw AVR chip without the bootloader, then I think the easiest route is to use an ISP adaptor. I use an AVR programmer from pololu. If you're going the ISP route, then you will also need to set the AVR fuses to appropriate values. The avrdude command can also be used to set fuses, and you can google the Arduino values
Re: Teacup on Sanginololu under Win 7
June 20, 2015 12:05AM
I'm using a Pro Micro clone, based on a 16u4 with USB on chip. I've been trying to read up on this, but depending on what you meant, most sources aren't very forthcoming on the "how" as much as the "how to".

I understand the claim from both sides that Windows users are dumb, but in 99% of situations, I don't need or want the control and complexity of UNIX/Linux based systems. I do have a Banana Pi based file server I built, but Windows is far more user friendly in day to day use.

I also understand the claim that most Arduino users would make with regard to being "dumb" - the platform makes firmware coding almost obnoxiously easy, which is both good and bad. I've written Atmel ASM. In a lot of ways I prefer it, but it's still intimidating to me. And the cost of entry is either steep or a very steep learning curve to build your own programmer. And you have to learn instruction set differences based on hardware capabilities, etc. Just my $0.02. Anyway.
Re: Teacup on Sanginololu under Win 7
June 20, 2015 04:51AM
Quote
OSUFlatland
Windows is far more user friendly in day to day use.

This is something I read often, and which is hard to believe to me. Recently I set up XP just for testing Configtool and I found a lot of obstacles. I installed Git and got kind of a secondary shell system. I installed Python and it wouldn't start a .py script from the command line. There is no package management system. Much easier with Ubuntu: apt-get whatever and go ahead. Or Synaptic, the apt-get with GUI. Or Ubuntu's app shop.

Anyways. Tastes are different. Does this micro pro based programmer work now? Wiring is decribed here: [www.arduino.cc] (with an extra note for the 32u4).

Then get Gen7 Arduino IDE support installed: [reprap.org] to get the bits neccessary for the ATmega1284P.

For doing the actual programming, command line version is on the lower part of the same wiki page. Using the GUI, these appear to be good instructions: [letsmakerobots.com]


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Teacup on Sanginololu under Win 7
June 21, 2015 12:45PM
If you don't code much, package dependencies are usually included in win installers. I believe your complaint is with poor ports. :-)

Using avrdude in command line I get the following while trying to write fuses according to modified code from the gen7 wiki:

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin>avrdude -C ..\etc\avrdude.
conf -c stk500v2 -p atmega1284p -P COM12 \ -B 5 -U lfuse:w:0xF7:m -U hfuse:w:0xF
C:m
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
Re: Teacup on Sanginololu under Win 7
June 21, 2015 10:26PM
Those messages mean to me that you're not even connecting to the processor. Either your baud rate is wrong or your port is wrong. Or your programmer is wrong.
Sorry, only registered users may post in this forum.

Click here to login