Trouble with updating v4.5.6 firmware

Hi, I’ve plobrem with updating fimware

Conditions:
pc: macbook sonoma 14.5
board: OpenMV Cam RT1062
uging: DFU mode

Issue:

  1. Connecting OpenMV Cam
  2. OpenMV IDE shows「A board in DFU mode was detected. What would you like to do?」
  3. Hit 「Ok」button
  4. The next moment IDE shows 「 Timeout Error!

/Applications/OpenMV IDE.app/Contents/Resources/sdphost/mac/sdphost -u 0x1FC9,0x0135 – write-file 0x20001C00 /Users/kawamurayuuichi/.config/OpenMV/openmvide/firmware/OPENMV_RT1060/sdphost_flash_loader.bin

Error: UsbHidPeripheral() cannot open USB HID device (vid=0x1fc9, pid=0x0135, sn=).

I don’t know how should I do next…
So, I would appreciate it if someone could help me.

Hi, there’s a forum thread about this that another user had to deal with the same issue. You have to disable the security setting on Mac that disables programs from having access to HID devices.

See here: RT1062 bricked and cannot connect to IDE - OpenMV Products - OpenMV Forums

This is an issue with the default security settings on Mac disabling how the bootloader loading program communicates.

[SOLVED] HID permissions in OSX - #2 by loopier - Questions - scsynth

The situation did not change after granting OpenMV permission to access the USB HID…
I have also now terminated the virus security software in the attached image.


Pressing either the Ok or Cancel button immediately opens the Timeout Error window, and pressing Ok there opens the same window again.

Every time,
Connect window → Timeout Error!

Hi, can you also launch the IDE from admin mode, it may need that too?

You are dealing with the same issue I resolved with the other user. So, this is 100% solvable.

Note, it’s not full disk access it needs:

Enable access for assistive devices in System Preferences > Security & Privacy > Privacy > Accessibility

Thank you for your reply.
I tried to find OpenMV.app at System Preferences > Security & Privacy > Privacy > Accessibility
But I couldn’t.
Am I doing something wrong?

Can you search for “Enable access for assistive devices”?

@sim - @axx_kawamura has the same issue as you. Do you think you can tell them what you did to fix the issue?

Postscript:
During the installation of another application, a different Accessibility screen opened and I was able to add OpenMV.app.
After doing this, I opened OpenMV with sudo from Terminal, but the result was still the same.

Like this

Sure! @axx_kawamura You have to enable Input Monitoring [System Preferences > Security&Privacy > Input Monitoring]. Since it is classified as a HID-Device, it could be an external keyboard, so the system thinks the IDE is trying to read its input (keystrokes).

Yes.
I’ve already done that.
But situation doesn’t change…

@sim - Can you provide screen shots of what you did?

Sure! But it looks like @axx_kawamura did exactly what I did with enabling the Input Monitoring. The only difference I see is that I didn’t test it in DFU mode. I simply enable the Input Monitoring, restart the OpenMV IDE and connect the board without jumping the SBL pin.

(my OS is in German, so I will ad the name to the pictures)

Input Monitoring:

Perhaps it could also be helpful if you check your “Files and Folders” settings, especially for the “Removable Volumes” access:

Files and Folders:

1 Like

@sim

Thank you for the information.
I checked “Files and Folders” but I’ve already allowd full access for OpenMV app.

Thank you.

I don’t know if this is related, but I am concerned that I get this warning every time I start OpenMV.app.

Mmm, delete that ~/.config/OpenMV folder. That’s happening because all its files are probably marked as root-owned. So, when launched in user mode, it cannot do anything anymore to control its settings. When you launch the IDE in root mode this can happen as it will then write files as if it were the super user… so, then when launched it user mode it cannot edit the same files again it wrote.

Regarding the update issue, I’m not sure what to do… I don’t have a Mac and the @sim showed the fix that works. I found that fix after searching why Macs block HID access.

Do you have access to another non-Mac computer you can run the IDE from? All our other camera modules don’t use HID mode to update the firmware, so, they don’t have this issue. However, the bootloader for the RT1062 is from NXP who wanted to use HID USB mode instead of DFU (which is meant for this) for some reason.