Welcome! Log In Create A New Profile

Advanced

Can't connect ot Sanguinololu

Posted by theruss007 
Can't connect ot Sanguinololu
September 09, 2013 10:43PM
I'm trying to upload the Marlin firmware to my Atmega 1284p which had the bootloader already installed on it, on my Sanguinololu. At first I was getting an error. I can't remember what the error code was. But it changed to the:

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51.

I tried changed the avr.config file in the arduino-0023>hardware>tools>avr>etc. directory. That's what changed it to that error. I've soldered in the auto reset bus, I've tried holding down the reset button while it uploads, I've changed my com port settings so where they were 38400 so they matched with the boards.txt file and checked the "RTS on close" box; I've made sure the correct com port and board are selected.

And when I plug in the board on usb it does show that it is an FTDI connected.

So, I'm not sure what to do. I don't know what else to try. Could it be that my chip is fried? I've looked through the forums and on the wiki.

Any ideas?

Thanks in Avance
Re: Can't connect ot Sanguinololu
September 10, 2013 08:12AM
Quote

I've tried holding down the reset button while it uploads

Pointless, as the ATmega runs in programming mode while reset is held down. Programming mode requires not a serial, but an SPI connection.

Quote

I've changed my com port settings so where they were 38400 so they matched with the boards.txt

Your baud rate has to match the one of the bootloader. Bootloaders with 38400 baud are out of fashion for a long time now, more likely is 57600 or 115200 baud. You have to change boards.txt for that.

Your vendor should know which bootloader her uploaded. Is there a bootloader at all?

Quote

Could it be that my chip is fried?

No. As long as the chip responds at all, it's very unlikely it's fried. Unless you attach something like 12V, ATmegas are almost undestroyable.

Quote

I've looked through the forums and on the wiki.

But you apparently didn't find the Electronics section smiling smiley


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Can't connect ot Sanguinololu
September 10, 2013 10:38AM
not 100% sure but it looks like this is the electronics section you want to reference:

[reprap.org].
Re: Can't connect ot Sanguinololu
September 10, 2013 10:47AM
If you're using the current Marlin, follow the directions in the README.md to install the current Sanguino addons to your Arduino/hardware directory. This has the correct settings for 644p and 1284p at different clock speeds. Upgrading to a modern Arduino tools can't hurt either.
Re: Can't connect ot Sanguinololu
September 10, 2013 01:21PM
Glad to know the chip isn't fried. I'll try messing with the Baud rate some. I've already don what the Marlin firmware said to do. Originally the Sanguino didn't show up in the Boards selection, but after I followed the README instructions, it showed up.
Re: Can't connect ot Sanguinololu
September 10, 2013 01:47PM
I also just downloaded the Ardion 1.0.1 IDE and after I get a chance, I'll try it out.
Re: Can't connect ot Sanguinololu
September 11, 2013 10:35PM
After no luck and deciding to go over things in more detail, I took out the Atmega 1284p from the board to see if the error changed. It didn't, which led me to think maybe it was the FTDI. I checked it by connecting the RX and TX oins and when I sent characters from my keyboard I got nothing. Not only that when ever I had the jumper connecting them, I would get random characters. It looked like putty didn't recognize them as characters though, except for a few.

So basically, I'm thinking it is my FTDI chip, and now need to figure out what I did wrong with it. Should be fun. XD
Re: Can't connect ot Sanguinololu
September 11, 2013 10:48PM
probably the wrong bit rate. try different bit rates in putty and see what gives you normal characters across the tx pin. i think the arudino normally communicates at 57600, or somewhere about that. look at the documentation for arduino ide in more detail. otherwise reupload the bootloader to the device that way you will know for sure what bit rate is used. you can use bit banging method if you do not have another arduino or a programmer.
Re: Can't connect ot Sanguinololu
September 13, 2013 01:17PM
I tried that and still nothing. I eventually decided to re-check my soldering on the FTDI, and turns out I had pins 1 and 2 soldered together... I fixed that, did the echo test and it worked. I then uploaded Marlin with no problems. Even connected it to Ponterface.

Turns out it was something stupid on my part. But thank you guys anyways for the help.
Sorry, only registered users may post in this forum.

Click here to login