Error when uploading to Orion board with bluetooth module connected


#1

I can upload my Arduino sketch to Orion with no problems as long as the bluetooth module is NOT connected to the board. If it is connected during upload, it fails with error: avrdude: stk500_loadaddr(): (a) protocol error, expect=0x14, resp=0x55

If I disconnect it, then it uploads fine. Also, the bluetooth module works after the upload if I plug it in???

any help would be greatly appreciated.


#2

I can confirm this behaviour with the following Arduino Software versions: 1.0.5, 1.6.0 and 1.6.6 (latest).

Without Bluetooth Module all sketches upload fine, but with Bluetooth Module connected the upload fails with the error mesage mentioned below.

@Peterlee and @Pioneer: Would be nice to have this fixed with the new library V3.0. However, there are more issues with this library. See my separate thread.

Cheers, Stefan


#3

@srothe, there are only two serial port of Orion, Bluetooth module and USB serial port, they connect together internally, only one serial port can work at a time, in this circumstance, you should disconnect the bluetooth connection firstly.


#4

Ok, this is understood. you really need to describe this behaviour and the need to disconnect Bluetooth while uploading sketches in your user documentation!
Stefan


#5

@Pionneer, Bluetooth module cannot use a SoftwareSerial port ?


#6

@emerout, actually, what am I talking about is the hardware serial port, its also ok for you to write a new firmware and use the SoftwareSerial port.


#7

Completely agree! This one stumped me for quite a while. I was particularly confused because I could upload mBlock sketches with the bluetooth module plugged in, but not Arduino IDE sketches. Documentation of the known issue that the Bluetooth module needs to be disconnected before uploading sketches would be extremely helpful!


#8

Hi
I just buy the sarter robot for my kid, I make a first programm with him and then try to load this one using Mblock and the arduino upload mode.

At the end of the upload, mblock told me to remove the Bluetooth module. I does it, and try to upload again still have the same issue.

I also try the following. disconnect the usb from the computer, disconnect the Bluetooth and reconnect to the computer, got yhe same issue.

Have you any suggestion ?

thanks


#9

Hi fdessy,

You may haven’t connect the serial port of the USB connection to the mBlock software.
Please refer to the detailed steps to upgrade the firmware for Starter robot first and see if the same error message.4. How to upgrade firmware for Orion Board.docx.zip (439.0 KB)
Please note: you can teporarily disconnect the Bluetooth module from the Port 5 on Orion board while operate above.

If upgrade firmware works this time, you can upload your program have a try.
Once still the same thing, you may take a video to show your operation which may help locating the problem.


#10

Hi @tec_support

I followed the instruction of the refered document.

On top of those one, I removed all the connection from the Bluetooth and the IR receptor as the battery power supply from the card.

I also, as written in the doc, put the sound switch to off.

Doing those actio make me able to upload the small programm to the card.

When disconnecting this one from the USB connection and putting back the power supply it works

THANKS, you will make a kid (and a father) happy !! That’s great


#11