I ran through the ardupilot setup instructions and successfully uploaded the default ardupilot code (v2.2.3) to my ardupilot board. I can verify this code runs by connecting up a terminal program to the usb/serial port with the FTDI cable connected (I bought mine from DIYdrones) At 57600baud I see the expected output:!!!LAT:0,LON:0,SPD:0.00,CRT:0.00,ALT:0,ALH:0,CRS:0.00,BER:0,WPN:0,DST:0,BTV:3.1*+++ASP:150,THH:0,RLL:60,PCH:-7,***+++ASP:150,THH:0,RLL:60,PCH:-12,***+++ASP:150,THH:0,RLL:60,PCH:-8,***+++ASP:149,THH:0,RLL:60,PCH:-7,***+++ASP:149,THH:0,RLL:60,PCH:-12,***So my first time through I successfully uploaded the code and it is happily running.Now I want to play around with some code changes. But when I attempt to upload modified code, I get the dreaded:avrdude: stk500_getsync(): not in sync: resp=0x2bavrdude: stk500_disable(): protocol error, expect=0x14, resp=0x2bI looked at the ARduino debugging tips page and 1-5 & 7 are satisfied. For #6 I'm doing all this from a Linux machine (Fedora 11) so I have very recent/current drivers for linux.I'm wondering if the board is booted and running the code, is this why I can't upload new code? Is there something I need to do on the board when I power it on so that it stops at the boot loader and is ready for new code to be uploaded?Thanks,Curt.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Admin
    Curt,

    Take a look at the second paragraph in Jordi's blog here: http://diydrones.com/profiles/blogs/ardupilot-config-tool-fixed

    I know that you are running Linux, but there may be a similar adjustment in Linux that may solve your problem.

    Just a thought.

    Regards,
    TCIII
  • 3D Robotics
    No, loading new code doesn't change the bootloader, so it should be able to load code without problem every time. If your GPS is disconnected, the board is powered on and your FTDI is plugged in the right way, it must be on your computer side, some funkly Linux serial thing. Is there any chance you can use a Windows machine to test this?
This reply was deleted.

Activity