1 (edited by Goshdarnit 2015-05-30 19:11:47)

Topic: Cannot Reflash My Firmware No Matter What I Try!

I really need some help. I know it's infuriating to see similar questions repeated, but I have trawled the Forums and the Net, and this just isn't working for me.

I have a USBTiny AVR Programmer, which I am trying to use to reflash my firmware in order to update it to use my E3D Lite6 hotend.

I have tried this on a Mac OSX (Yosemite), a PC running Windows 7, a PC running Windows XP and a PC running Windows Vista! All of them fail to see the programmer at all. I have tried setting it to power the board from the programmer, and tried setting it to use separate power from the USB. Nothing works.

If I use avrdude, I always get the "initialization failed, rc=-1 Double check connections and try again" message. Below is a picture of how the programmer is connected to my PC/Mac. I have installed libusb drivers and the device manager shows my USBTiny AVR Programmer as being installed and running correctly. But I always get that error. If I try FLIP, it just can't open the USB connection. Finally, if I try Arduino on my Mac it compiles the sketch, but then throws me "Teensy did not respond to a USB-based request to automatically reboot. Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch."

PLEASE HEEEEEELLLLLLPPPPPPP!!!

http://soliforum.com/i/?uFHPG6u.jpg

2

Re: Cannot Reflash My Firmware No Matter What I Try!

I am not familiar with that board but I recall a post from either Soliryan or SoliEdrick where they mention a couple of pins that need to be jumped to act as the "reset".

Printit Industries Model 8.10 fully enclosed CoreXY, Chamber heat
3-SD3's & a Workbench all fully enclosed, RH-Slic3r Win7pro, E3D V6, Volcano & Cyclops Hot End
SSR/500W AC Heated Glass Bed, Linear bearings on SS rods. Direct Drive Y-axis, BulldogXL
Thanks to all for your contributions

3

Re: Cannot Reflash My Firmware No Matter What I Try!

Found it in MacGyverX's under the kimono thread by SoliRyan.
"The boot jumper is JP3, and then just quickly short the reset and ground pins on the ICSP header to simulate a reset button press."

Printit Industries Model 8.10 fully enclosed CoreXY, Chamber heat
3-SD3's & a Workbench all fully enclosed, RH-Slic3r Win7pro, E3D V6, Volcano & Cyclops Hot End
SSR/500W AC Heated Glass Bed, Linear bearings on SS rods. Direct Drive Y-axis, BulldogXL
Thanks to all for your contributions

4

Re: Cannot Reflash My Firmware No Matter What I Try!

But the programmer is plugged into the ICSP header.... I can't get to the reset pins as the programmer is connected to them!

5

Re: Cannot Reflash My Firmware No Matter What I Try!

OK OK OK... How stupid do I feel... I had misidentified pin 1, and had the connector backwards... Flipped it 180 degrees and it's writing as I type this...

D'oh!

I feel such a fool.

6

Re: Cannot Reflash My Firmware No Matter What I Try!

And onto the next issue. I think I remember reading somewhere that this was not something to worry about. Something to do with the programmer not being able to read above the first 64k or something? But I got the following message after flashing the firmware...

"Reading | ################################################## | 100% 69.31s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x10000
         0x0c != 0x8a
avrdude: verification error; content mismatch

avrdude done.  Thank you."

Big question. Has it flashed, or reverted to the original firmware, and should I be worried about this message?

7

Re: Cannot Reflash My Firmware No Matter What I Try!

I think that error is just because the programmer can't read all the memory in the printer. I plugged it in and tried it, and it seems to have taken the new firmware, so on to setting the Bowden up.

8

Re: Cannot Reflash My Firmware No Matter What I Try!

I've always gotten the verification error... and things are working fine.

9

Re: Cannot Reflash My Firmware No Matter What I Try!

Thanks for including the connection pic. I've got the programmer waiting at home to flash my firmware tonight. Did you end up compiling it yourself or go with the binary from MacGyverX?

10

Re: Cannot Reflash My Firmware No Matter What I Try!

rrssll wrote:

Thanks for including the connection pic. I've got the programmer waiting at home to flash my firmware tonight. Did you end up compiling it yourself or go with the binary from MacGyverX?

I compiled it myself, but MacGyver's would work if you can't be bothered with that. I just wanted to tweak a few other things (changed bed levelling to a 16 point measurement for example) and also wanted to learn more about the printer.

Bear in mind that the picture above is with the cable connected WRONGLY. Turn the connector around 180 degrees on the Solidoodle motherboard to connect it correctly.