Closed zentala closed 3 years ago
Hi, Thank you for sharing the various error logs. Since your OpenCR keeps failing to be connected to the port, please check if microUSB connector is damaged or detached from the circuit board. Also try with different USB cables and see if it helps to resolve the issue. Lastly, try Bootloader Update on your PC and proceed until Burn Bootloader section.
I tested with a few cables and I am sure they are not damaged.
Burning a bootloader helped partially. After burning a bootloader and flashing a few additional times the same issue occurs. Sometimes I am event not able to flash bootloader again. But if I will wait 20-30minutes, reflash bootloader and then firmware again then the error doesn't occur anymore. But if I will reflash a few additional times in series error repeats and I need to wait again to reflash - firstly bootloader, then code. So for me, this is a matter of time between flashing.
This issue makes it almost impossible to develop and test any new code on the OpenCR. I suspect that my OpenCR is damaged or all OpenCRs had a low-quality flash memory, which is corrupting data when you flashing a few times in series. Is it expected behavior? What should I do now?
Hi, Still not sure what the cause of this issue is, and I don't get it when the board works again after 20~30minutes. If the firmware or bootloader is corrupted, waiting for some time would not fix the issue. Have you tried rebooting your PC after the issue occurred? If possible, please give us more information about your PC (CPU, OS version) you have tested.
I tried to flash it it using 2 totally different machines (one of them is Dell XPS-8930). It is not a reason of this issue.
Steps to reproduce: 1) Reflash OpenCR 10x in a row (eg every minute, during 10 minutes). It will crash showing above errors. 2) Try to reflash the bootloader. This will fail. Try to reflash bootloader 10x in a row. It's failing. 3) Wait 30 minutes. 4) Reflash bootloader again. Success! 5) Reflash firmware. Succes. 6) Reproduce 1st step. It will fail around 2nd-5th flashing.
Sorry, I'm still not able to reproduce this symptom. Though I sometimes get below error, retrying sketch upload just works fine to me.
Sketch uses 56460 bytes (7%) of program storage space. Maximum is 786432 bytes.
Global variables use 39968 bytes of dynamic memory.
opencr_ld ver 1.0.2
opencr_ld_main
>>
file name : /tmp/arduino_build_375876/b_Blink_LED.ino.bin
file size : 55 KB
Open port OK
Clear Buffer Start
Clear Buffer End
>>
cmd_read_board_name fail : 0xF020
An error occurred while uploading the sketch
TL;DR: after a few flashings it seems that flashing is working (diodes blinking, buzzer plays sound from examples that I flashed), but communication via serial port stopped. Is it any know firmware issue or device is broken?
I bought this OpenCR with TB3 Waffle Pi. I was able to flash OpenCR a few times (around 5-10) via Arduino IDE, then I wasn't able to connect with ROS or flash it again.
Example error 1: I flashed example with music from buzzer (example 02.a) and I got following error (but music played):
Example error 2: LED example is also working but there is also flashing error (flashing via recovery mode):
Example error 3: When I am flashing original code for TB3 Waffle via Arduino IDE in recovery mode I got this error:
Example error 4: When I am flashing all the above examples without recovery mode Arduino IDE stuck in:
And then don't respond for a long time. I see message in Arduino
Uploading...
but nothing is happening. DiodeSTATUS
is blinking all the time.Example error 5: I have been trying to reintroduce original firmware via console too:
Example errror 6:
The device is:
/dev/ttyACM*
),POWER
andUSB
diodes are always greenI tested on under two computers with Linux. Before device worked well with both of them.