Pages: [1]   Go Down
Author Topic: Arduino Bt -- Loading sketch from arduino=0015  (Read 1199 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
Hopefully someone could help---- I am trying to load a sketch from arduino-0015 to my new Arduino Bt board ,without success. I have setup the connection on the PC side ok in that PC,s radio has paired with the Arduio Bt. I have the correct settings in Arduino-0015 as I have done this before with my usb board.
I have tried various combinations of connecting the PC,s bluetooth and resetting the Arduino Bt board.
Maybe I am doing something silly!!!  as I don,t really understand what is going on therefore could someone please help.

I get the following" failure to upload" messages that are meaningless to me.
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 186
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi johnglynn,

when you get that error, the connection to the Arduino works, but the bootloader is no longer waiting for the PC. You have to press the reset button some (milli)seconds earlier.

You can set the following parameter in "Documents and Settings\<username>\Application Data\Arduino\preferences.txt" to see when the Arduino-IDE is really starting the download:
Code:
upload.verbose=true

Try following this sequence:
1. Press <ctrl>-<R> to compile the sketch
2. Press and hold the reset switch on the Arduino-BT
3. Press <ctrl>-<U> to upload the sketch
4. Wait until you see the following messages:
Code:
avrdude: ser_open(): setting dtr
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
5. Release the reset switch on the Arduino-BT

When you download the sketch, it is compiled before. To avoid this, compile it manually (step 1), so you make the timing more predictable.

See also the following article (in German): http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1246118096/1#1

  MikeT
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Mike,
I followed your suggestion and managed to upload three times but have failed about 40 times.
The use of the verbose preference sounds very good however my pc does not seem to write  the upload status to the pc screen in real time and I keep missing the point where I should release the reset button. I tried changing the screen layout to give myself more visibility of the message screen but to no avail.
Finally I changed the build.verbose statement to "true" as detailed in your attached link ;also without success.
 
Things would have to happen much slower for me  I'm afraid

john
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 186
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi john,

Quote
The use of the verbose preference sounds very good however my pc does not seem to write  the upload status to the pc screen in real time

You have to start the IDE using the "run.bat" script and then look at the "DOS-Box". There you see the output of avrdude in realtime. This only works when you don't run the Arduino IDE with a maximized window.

Quote
I followed your suggestion and managed to upload three times but have failed about 40 times.

Do you have an ISP cable? I made a new bootloader and need some beta testers. [smiley=smiley.gif]

This bootloader works 100% for me.

  MikeT
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Mike,
Thanks again for the advice. Running the IDE from the run.bat file is working really well and I can see exactly what is going on in real time although I am still having finger problems-- old age i'm afraid.
Never the less I have managed to upload the Standard Firmata shetch and I am now working away merrily using the Processing language to control the arduino bt. The bluetooth communication is very stable and quite impressive.
If you can recommend a preferred supplier for the isp cable\software required I will purchase  and test your bootloader program as a newbie
Logged

Pages: [1]   Go Up
Jump to: