OpenMV2 IDE connection error

Discussion related to "under the hood" OpenMV topics.
sholc2005
Posts: 4
Joined: Tue May 10, 2016 9:34 am

OpenMV2 IDE connection error

Postby sholc2005 » Fri May 27, 2016 7:22 am

Hi,

after I received OpenMV2 on STM32F427 it worked nice with IDE.
Then I wanted to use SDD card I upgraded firmware (from https://github.com/openmv/openmv/releas ... 4_v1.4.zip) and after that no luck.
I tried upgrade using IDE (Bootloader with openmv.bin), but after it blue led blinking and red is on and I can`t connect to the OpenMV due error: "Firmware version mismatch!
Please update the firmware image and/or the IDE!" in terminal it`s look like:
(openmv_env)sholc:openmv_v1.4$ ./openmv-ide

Code: Select all

fw_version:(1919117645, 2035294319, 1852794996)
ide_version:(1, 5, 0)
I tried update firmware using DFU tool but also no luck.
How can I reanimate my OpenMV2?

Thanks!
User avatar
kwagyeman
Posts: 4458
Joined: Sun May 24, 2015 2:10 pm

Re: OpenMV2 IDE connection error

Postby kwagyeman » Fri May 27, 2016 8:20 am

Use the DFU tool to flash the firmware DFU file onto the OpenMV cam. The bootloader and OpenMV dfus are only part of the actual binary image.
Nyamekye,
User avatar
iabdalkader
Posts: 1214
Joined: Sun May 24, 2015 3:53 pm

Re: OpenMV2 IDE connection error

Postby iabdalkader » Fri May 27, 2016 10:59 am

Please download the latest release package:

https://github.com/openmv/openmv/releas ... rmware.zip

Extract the package, and use the IDE's bootloader to upload this file:

openmv_v1.4/firmware/OPENMV2/openmv.bin file.

When the camera starts/restarts the bootloader runs for about 500 milliseconds (you'll see the Green LED blinking quickly), after that it jumps to the main app, Blue LED starts blinking, you should wait for the Blue LED to blink before connecting.

Let us know how it goes.
sholc2005
Posts: 4
Joined: Tue May 10, 2016 9:34 am

Re: OpenMV2 IDE connection error

Postby sholc2005 » Mon May 30, 2016 4:44 am

Dear @iabdalkader and @kwagyeman,

I updated firmware using DFU (as suggested @kwagyeman):

Code: Select all

(tensorflow)sholc:util$ python pydfu.py -u ../../firmware/firmware.dfu
File: ../../firmware/firmware.dfu
    DfuSe v1, image size: 936137, targets: 1
    Target 0, alt setting: 0, name: "ST...", size: 935852, elements: 2
      0, address: 0x08000000, size: 65536
      1, address: 0x08010000, size: 870300
    usb: 0483:df11, device: 0x0000, dfu: 0x011a, UFD, 16, 0xc9f97f07
Writing memory...
0x08000000   65536 [=========================] 100% 
0x08010000  870300 [=========================] 100% 
Exiting DFU...
and updated Openmv using Bootloader (on openmv.bin). In both cases images uploaded successfully and blue nice blinking. After ~ 30 sec red light turning on and blue continue to blinking.
Also previous issue with connecting in the IDE is actual for me :(

Code: Select all

fw_version:(1919117645, 2035294319, 1852794996)
ide_version:(1, 5, 0)
That is interesting after updating using bootloader in the internal storage I so four files in the root:

Code: Select all

sholc:2989-0800$ ls -l
total 7
-rw-r--r-- 1 sholc sholc  247 dec  9  2000 main.py
-rw-r--r-- 1 sholc sholc 2429 dec  9  2000 openmv.inf
-rw-r--r-- 1 sholc sholc  551 dec  9  2000 README.txt
-rw-r--r-- 1 sholc sholc 2217 dec  9  2000 selftest.py
but after OpenMV reconnection only three:

Code: Select all

total 4
-rw-r--r-- 1 sholc sholc  247 dec  9  2000 main.py
-rw-r--r-- 1 sholc sholc 2429 dec  9  2000 openmv.inf
-rw-r--r-- 1 sholc sholc  551 dec  9  2000 README.txt
User avatar
iabdalkader
Posts: 1214
Joined: Sun May 24, 2015 3:53 pm

Re: OpenMV2 IDE connection error

Postby iabdalkader » Mon May 30, 2016 9:14 am

You don't need to upload the bootloader, just the main firmware image (openmv.bin) using the IDE.
Note for anyone else reading this, starting from v1.5, the firmware images have been renamed, the app firmware image is now called firmware.bin, and the combined (bootloader + app) image is now called openmv.bin
and updated Openmv using Bootloader (on openmv.bin). In both cases images uploaded successfully and blue nice blinking. After ~ 30 sec red light turning on and blue continue to blinking.
It looks like you're connecting before the bootloader jumps to the main app, please wait for the blue LED to blink or try reconnecting again.

Code: Select all

fw_version:(1919117645, 2035294319, 1852794996)
ide_version:(1, 5, 0)
This is normal, the selftest.py is the self-tests the camera runs on first boot, it gets erased afterwards, which means the camera HW is good.
That is interesting after updating using bootloader in the internal storage I so four files in the root:

Code: Select all

sholc:2989-0800$ ls -l
total 7
-rw-r--r-- 1 sholc sholc  247 dec  9  2000 main.py
-rw-r--r-- 1 sholc sholc 2429 dec  9  2000 openmv.inf
-rw-r--r-- 1 sholc sholc  551 dec  9  2000 README.txt
-rw-r--r-- 1 sholc sholc 2217 dec  9  2000 selftest.py
but after OpenMV reconnection only three:

Code: Select all

total 4
-rw-r--r-- 1 sholc sholc  247 dec  9  2000 main.py
-rw-r--r-- 1 sholc sholc 2429 dec  9  2000 openmv.inf
-rw-r--r-- 1 sholc sholc  551 dec  9  2000 README.txt
sholc2005
Posts: 4
Joined: Tue May 10, 2016 9:34 am

Re: OpenMV2 IDE connection error

Postby sholc2005 » Mon May 30, 2016 11:01 am

I found solution to me about connection issue in the IDE! May be it's due my machine (Ubuntu 14.04 LTS) or due OpenMV-IDE bug.
After I restarted my ubuntu and first time connected OpenMV to usb port then IDE connected successfully and I was able to run examples:) After pressing button reset in the IDE and after connection button the old issue was actual for me.
My problem resolved simply by using screen command (terminal sessions):
  • 1) screen /dev/ttyACM0
    2) [in session] CTRL+A : quit [closing session)
    3) Run OpenMV-IDE
[/list]

This is all!
OpenMV-IDE connected successfully to the my OpenMV2 and all samples now working!

Return to “Technical Discussion”

Who is online

Users browsing this forum: acutetech and 11 guests