0

Problem programming Arduino using Bluefruit module
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Problem programming Arduino using Bluefruit module

by sfleming144 on Sun Sep 14, 2014 7:58 pm

I am having trouble programming a Arduino using the Bluefruit module. The Arduino can send data via a serial debug screen using the Bluefruit module, and can be programmed using a FTDI cable on the same 6 pin connector that the Bluefruit module uses. I am running Ubuntu 14.04, and the Bluefruit link shows up as /dev/rfcomm0 in the Arduino IDE. Here is the error I get when trying to program the Arduino:

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x64
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x69
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x79
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x35
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x34
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x2e
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x39
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x25

I turned it off and just to see what would happen, commented out Serial.print lines, disconnected the Bluefruit module, turned it on and then re-programmed the Arduino using a FTDI cable, then tried again to program using the Bluefruit module and got this error message:
Device added successfully, but failed to connect
I tried again awhile later after I had shut down the computer and started it up again and it connected, but failed again to program:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

Since that did not work, I put back the Serial.print lines. Any ideas?

sfleming144
 
Posts: 11
Joined: Mon Sep 01, 2014 3:31 pm

Re: Problem programming Arduino using Bluefruit module

by adafruit_support_rick on Mon Sep 15, 2014 9:07 am

Is this the EZ-LInk breakout? Have you done the DTR/DSR test? Do you have the capacitor installed?

Try pressing the reset button on the Arduino just before the upload begins. You may have to try it a few ties to get the timing right. Does that help?

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Problem programming Arduino using Bluefruit module

by sfleming144 on Mon Sep 15, 2014 12:55 pm

I am using the EZ-Link break out and a Arduino chip programmed with the Uno bootloader. A socket is soldered on the EZ-Link and it is connected to a 6 pin header, and yes I installed the 1uF capacitor between the DTR pin of the EZ-Link and the reset pin of the Arduino. If I remove the EZ-Link and replace it with a FTDI USB to serial adapter cable, the Arduino can be successfully programmed. My computer is running Ubuntu 14.04 Linux, so do you know a program like X-CTU for Linux that I could use to perform the DTR/DSR test?

sfleming144
 
Posts: 11
Joined: Mon Sep 01, 2014 3:31 pm

Re: Problem programming Arduino using Bluefruit module

by adafruit2 on Mon Sep 15, 2014 2:55 pm

sfleming144 wrote:I am using the EZ-Link break out and a Arduino chip programmed with the Uno bootloader. A socket is soldered on the EZ-Link and it is connected to a 6 pin header, and yes I installed the 1uF capacitor between the DTR pin of the EZ-Link and the reset pin of the Arduino. If I remove the EZ-Link and replace it with a FTDI USB to serial adapter cable, the Arduino can be successfully programmed. My computer is running Ubuntu 14.04 Linux, so do you know a program like X-CTU for Linux that I could use to perform the DTR/DSR test?


we do not support Arduino programming on linux using bluefruit because RFCOMM on linux doesnt have the baud rate change stuff. sorry! please try a mac or windows :)

adafruit2
Site Admin
 
Posts: 20214
Joined: Fri Mar 11, 2005 7:36 pm

Re: Problem programming Arduino using Bluefruit module

by sfleming144 on Mon Sep 15, 2014 3:31 pm

If Arduino programming is not supported under Linux, a note should be made about this on the product web page. When I watched the product video, Lady Ada said "You can pair with any operating system" and the Ubuntu logo was displayed on the screen along with the Apple, Windows and Android logos. When programming the Arduino was discussed, nothing was said about that it could not be done under Linux, and I saw nothing on the product web page about this either.

sfleming144
 
Posts: 11
Joined: Mon Sep 01, 2014 3:31 pm

Re: Problem programming Arduino using Bluefruit module

by adafruit2 on Tue Sep 16, 2014 10:50 am

Thanks for the note! We've added
Works great with Mac and Windows computers. Linux is not supported at this time.
to each product and tutorial. If you do not have a Mac or Windows computer and cannot use this module, email support@adafruit for a refund

adafruit2
Site Admin
 
Posts: 20214
Joined: Fri Mar 11, 2005 7:36 pm

Please be positive and constructive with your questions and comments.