# Cam 2 in current IDE?

**URL:** <https://forums.openmv.io/t/cam-2-in-current-ide/8697>\
**Category:** OpenMV Boards\
**Created:** [August 30, 2023, 5:58am UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697 "2023-08-30T05:58:59Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjp](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bjp](https://forums.openmv.io/u/bjp)\
**Post date:** [August 30, 2023, 5:58am UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/1 "2023-08-30T05:58:59Z")

</div>

I have an OpenMV Cam 2 (OV7725 - Rev 1, 2/9/2016) I’m trying to use for the first time. I’ve confirmed my USB cable works by transferring some data from an old Android phone. I’ve installed the OpenMV IDE (along with drivers, etc) and my Device Manager (Windows) shows “OpenMV Cam USB COM Port (COM10)”. The LED on the board is blinking blue. But, when I click the connect button in the IDE, it says “No OpenMV Cams found!”.

Why does it say that no cams are found when the device is clearly recognized by the OS?

If I indicate to the IDE that I have a cam connected and it’s bricked, the board type options don’t seem to include anything matching my board.

How should I proceed to use my device?

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [August 30, 2023, 3:51pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/2 "2023-08-30T15:51:18Z")

</div>

Hi, the camera is fine. It’s just need new firmware.

Connect BOOT0 on the camera to 3.3V and then plug into the computer and click connect in the IDE. Follow the prompts about the board being bricked and select the right camera module from the menus when shown.

Your board should be the OpenMV Cam M4 in the board list or OpenMV2. We ship the latest firmware for it.

---

<div class="post-metadata">

**Author:** ![bjp](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bjp](https://forums.openmv.io/u/bjp)\
**Post date:** [August 30, 2023, 9:13pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/3 "2023-08-30T21:13:20Z")

</div>

I connected BOOT0 to 3.3V and followed the instructions to update firmware. I got stuck on this screen:

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/2/273dfb8b3befc712e9b53668a9e40fd5abdaa5e8.png)

My board has been blinking green for 10 minutes. No SD card is present on the board. I’m pretty sure one of the steps said it was erasing data. The internal flash drive appears to be present but the hardware configuration appears to change every second (the COM device sometimes disappears and reappears, and Explorer shows a refresh when looking at This PC where the internal flash drive is shown).

Clicking Ok leads to “No OpenMV Cams found!”. Unplugging and replugging cam leads to blinking green light. Clicking connect in IDE finds no cams, selecting Yes to a bricked cam attached then selecting M4 then indicating Yes to erase the file system leads back to the dialog at the top of this post. I have repeated this sequence 3 times with the same results.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [August 30, 2023, 9:26pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/4 "2023-08-30T21:26:39Z")

</div>

Hi, You need to remove BOOT0 from 3.3V after the initial program.

So, the IDE should have shown you a dialog to load the bootloader which is what BOOT0 to 3.3V allows. Once that’s loaded, you need want to unplug the camera from the PC, remove BOOT0 from 3.3V, and then click connect while the camera is not connected. Go through the dialogs, then it should get to a point where it has an infinite progress bar and it’s waiting for the OpenMV Cam.

Plug it in at that point and it should be restored.

Unfortunately, thanks for these drivers being older… this process can’t be automatic from start to finish.

---

<div class="post-metadata">

**Author:** ![bjp](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bjp](https://forums.openmv.io/u/bjp)\
**Post date:** [August 30, 2023, 9:42pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/5 "2023-08-30T21:42:17Z")

</div>

Yes, I removed BOOT0 from 3.3V when instructed during the firmware update sequence.

Ok, here is the full sequence performed again. I captured screenshots of everything, but the forums won’t let me attach more than 1, so I guess I’ll just mark them as placeholders.

1. Unplug cam from computer

2. Connect BOOT0 to 3.3V with jumper wire

3. Plug cam into computer (observe no lights)

4. Click connect in IDE

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/5/563eed60e37d8485f0fdd9e016e0e0550d1d1105.png)

1. Select "Install the latest release firmware (v4.4.3), do not change “Erase internal file system” checkbox (leave it unchecked), click OK

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/2/29e82cb795301c7709a0e341dcd387567da3451c.png)

1. Select “OpenMV Cam M4 (STM32F427)”, click OK

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/3/3e4174314ae18473d8463aa06733b246319eb2a0.png)

1. Unplug cam from computer

2. Remove jumper wire (note that the jumper wire was NOT between BOOT and RST as indicated in the dialog)

3. Plug cam into computer (even though this is not indicated in the dialog)

4. Observe green flashing immediately

5. Click OK

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/a/a2f4eddbb5cb83bb81845c1c81ba6cfd137d3fa7.png)

1. Select “OpenMV Cam M4 (STM32F427)”, click OK

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/a/a51811f060f87f323d601c0e7bc73cab8c78e022.png)

13.Click Yes

1. Observe Erasing… progress bar then Programming… progress bar

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/b/b21a02a7a08fa20bfeed59fc97f0296e78649d77.png)

1. Wait 10 minutes

2. Observe no change to green flashing and frequent changes in hardware configuration (see previous post)

3. Click OK

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/a/aa6112ab7045a7b9d5b82c44f0c3f4f66ec565f5.png)

1. Click OK

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/6/6bf8f3df38eeb9c812c4c7032c76845f562b4a4e.png)

1. Click Yes

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/c/c837071c3f9124f9d70d92842e3f980e7c5b7ead.png)

1. Select “OpenMV Cam M4 (STM32F427)”, click OK

![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/e/e90233d68e288d8f1adb5829fd8ba42f44657a06.png)

1. Click Yes

2. Observe Erasing… progress bar then Programming… progress bar (we are back at step 14)

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [August 30, 2023, 9:45pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/6 "2023-08-30T21:45:13Z")

</div>

Can you send me a picture of the board? It sound like the firmware is corrupt. Does the programming process finish? But, then on reset it’s back to the bootloader?

---

<div class="post-metadata">

**Author:** ![bjp](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bjp](https://forums.openmv.io/u/bjp)\
**Post date:** [August 30, 2023, 10:01pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/7 "2023-08-30T22:01:04Z")

</div>

I’ve updated the previous post with screenshots I hosted externally. Step 14 shows what I see when the “Programming…” progress bar completes.

The board:

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/b/b59d953a8849a2a4c95a07d04d7aca6771097369.jpeg)

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/openmv1/original/2X/1/1359140d6881322bff3f532a208e3ddc8335fd60.jpeg)

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [August 30, 2023, 10:13pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/8 "2023-08-30T22:13:55Z")

</div>

Hmm, okay, it seems you are doing everything right.

Jump on here and I can help you out: [meet.google.com/rcb-rihz-xwd](http://meet.google.com/rcb-rihz-xwd)

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [August 30, 2023, 10:40pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/9 "2023-08-30T22:40:39Z")

</div>

It sounds like the firmware being loaded is bad. I’ll check if there’s a regression in our firmware for the M4.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [August 31, 2023, 4:11am UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/10 "2023-08-31T04:11:32Z")

</div>

Yeah, there’s a regression. The firmware is bad. Will determine what needs to be fixed.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [August 31, 2023, 4:24am UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/11 "2023-08-31T04:24:05Z")

</div>

I think it’s something wrong with the IDE firmware loader. I went back to 3 year old firmware and the board was still bricked.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [August 31, 2023, 4:51am UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/12 "2023-08-31T04:51:14Z")

</div>

M7 appears fine with the new IDE.

Will try another M4 camera.

---

<div class="post-metadata">

**Author:** ![bjp](https://avatars.discourse-cdn.com/v4/letter/b/e68b1a/32.png) [@bjp](https://forums.openmv.io/u/bjp)\
**Post date:** [August 31, 2023, 5:12pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/13 "2023-08-31T17:12:35Z")

</div>

Thanks for all the prompt responses – much appreciated! Based on that, I now also have an H7 on the way, so probably don’t sink all your time into this issue 🙂

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [August 31, 2023, 5:15pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/14 "2023-08-31T17:15:33Z")

</div>

I need to fix it anyway to test a driver.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [September 1, 2023, 2:05am UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/15 "2023-09-01T02:05:22Z")

</div>

Firmware version 4.2.0 works if you upload via DFUSE demo which is in the IDE. Looks like something to do with our custom bootloader and firmware. V4.2.3 doesn’t work.

… So, should be able to determine the error soon.

V4.3.0 works.  
V4.4.0 works.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [September 1, 2023, 7:10pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/16 "2023-09-01T19:10:09Z")

</div>

Firmware for the M4 breaks in v4.4.2. Determining what now.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [September 1, 2023, 11:53pm UTC](https://forums.openmv.io/t/cam-2-in-current-ide/8697/17 "2023-09-01T23:53:39Z")

</div>

Found the issue. It was an unsupported instruction being executed.

vcvtm and vcvtp are only valid for the cortex-m7, not cortex-m4.

This PR fixes it. Can confirm that the firmware works:

[imlib/fmath: Fix invalid fp instruction usage on cortex-m4. by kwagyeman · Pull Request #1914 · openmv/openmv · GitHub](https://github.com/openmv/openmv/pull/1914).

IDE bootloader is fine. So, once that fix is merged the unit will work again.
