I just received my OpenCr1.0 board, I was able to upload only once to it. I first successfully uploaded the "b_Blink_led" sketch with the Arduino IDE. and it worked....
But then I tried to upload the Open_Manipulator_Chain sketch and it hung on upload. and now I can't even upload the Blink sketch. I tried updating the bootloader by placing in DFU mode and running "dfu-util 0483:df11 0 0x08000000 ./opencr_boot.bin" and I also tried manually uploading the sketch by saving the binary and using opencr_ld.exe. But nothing works. I don't know what else todo. Maybe I just have a bad board?
I'm sorry for the inconvenience.
If you could show me the error code or message you get would be greatly helpful to figure out what went wrong.
If you are running the bootloader recovery, you need to run the command where the opencr_boot.bin file is located at.
You can download the OpenCR repository that contains opencr_boot.bin file.
The binary file is located at below directory in the repository.
When I run the command where the binary file is not exist:
When I run the command in the directory with the opencr_boot.bin file.
the bootloader downlad went fine that is not the problem
thomas@ubuntudev:~/Downloads/OpenCR-master/arduino/opencr_arduino/opencr/bootloaders$ sudo dfu-util -d 0483:df11 -a 0 -s 0x08000000 -D ./opencr_boot.bindfu-util 0.8Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.Copyright 2010-2014 Tormod Volden and Stefan SchmidtThis program is Free Software and has ABSOLUTELY NO WARRANTYPlease report bugs to firstname.lastname@example.org: Invalid DFU suffix signaturedfu-util: A valid DFU suffix will be required in a future dfu-util release!!!Opening DFU capable USB device...ID 0483:df11Run-time device DFU version 011aClaiming USB DFU Interface...Setting Alternate Setting #0 ...Determining device status: state = dfuERROR, status = 10dfuERROR, clearing statusDetermining device status: state = dfuIDLE, status = 0dfuIDLE, continuingDFU mode device DFU version 011aDevice returned transfer size 2048DfuSe interface name: "Internal Flash "Downloading to address = 0x08000000, size = 25604Download [=========================] 100% 25604 bytesDownload done.File downloaded successfully
I was able to upload the blink sketch by putting the board into firmware recovery mode by pressing the SW2 and Reset buttons
but the Arduino just hangs when I try to open the Serial Monitor.
I have to quit the Arduino IDE or unplug the USB cable.
I was able to load the open_manipulator_chain.ino but when I run the processing sketch this is the error I get:
Just a quick question, did you properly connected OpenManipulator to OpenCR?
I don't think I understand the question? Did you see my previous response?
No I did not connect the OpenManipulator
I explained in my previous message that I loaded the open_manipulator_chain.ino onto the OpenCR board, then I opened Processing and ran the Chain.pde script. and all I got was a bunch of errors. (see above)
also when I open the serial monitor in the Arduino IDE after loading the open_manipulator_chain.ino it just hangs. there are no error messages the application just freezes and I have to diconnect the USB cable or close the program.
I had no idea whether you were using the software with the actual hardware or not, so I needed to know your environment first.
The Processing uses the Serial port that is assigned for OpenCR to read data from OpenCR, and while the Processing is running, you are not suppose to open the serial port as the port will be occupied by Processing, therefore, it could hang from Arduino IDE when you try to open the same serial port.
When I tried to turn on the controller without connecting the OpenManipulator as shown in below image, the Processing returned the exact same error you received.
However, I was able to adjust each joint without turning on the Controller.
Ok . thanks.. but I am still having some issues with the USB Serial cmmunication.... now the board is not showing up in the Arduino IDE. I tried uninstalling and reinstalling the windows STM32 driver but the board would now show up.
finally I i found a solution. I downloaded the Impulse RC Driver Fixer:
and the OpenCR is showing up again as USB Serial Device (COM4) and I can communicate with it. oh and I don't have to keep going into recovery mode
Thank you for the feedback and glad that you fixed the problem :D
Didn't Zadig driver installer work for you?
Since this is the first time I've heard about it, I'll see if there's any changes in their software / driver.
Recovery mode is recommended when the program is not properly downloading, and usually I don't have any issues with downloading sketches.
Enjoy your project!