OpenMV2 IDE connection error

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/releases/download/v1.4/openmv_linux2_x86_64_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 cant connect to the OpenMV due error: "Firmware version mismatch! Please update the firmware image and/or the IDE!" in terminal its look like:
(openmv_env)sholc:openmv_v1.4$ ./openmv-ide

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!

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.

Please download the latest release package:

https://github.com/openmv/openmv/releases/download/v1.4/firmware.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.

Dear @iabdalkader and @kwagyeman,

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

(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 :frowning:

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:

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:

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

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.

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:
>
> ```python
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:

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

>

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
  1. [in session] CTRL+A : quit [closing session)
  2. Run OpenMV-IDE

[/list]

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