Upgrading firmware

视频教程5 - 升级固件:https://singtown.com/learn/49997/

Project OpenMV updates all the time,uses can upgrade firmware to keep updated.Every time you update,it will remedy bug adding new function.

There are two ways to upgrade,one is the internal function IDE carry itself which use bootloader to upgrade firmware.We call it regular upgrade.Another one is dfu upgrade which use upgrade-firmware function of chipSTM.

Please preferentially use regular upgrade.If can’t or new chip,use DFU to burn procedure,

Regular upgrade

OpenMV IDE has function to upgrade firmware which is handy.Please preferentially use this(universal to Windows,MacOS and Ubuntu)

If your firm ware is not the latest version,there will be [out of data - click here to upgrade] under IDE ,as the picture above.Click here,it will pop a dialog box:if upgrade to the latest firmware?

Choose OK

If want to erase file system,choose Yes,if want keep the file,choose No.

This process will last for 1 minute,the light of OpenMV will twinkle.In the end,it would have a hint:upgrade successfully.

Then OpenMV is upgraded to the latest version.

DFU upgrade

Please preferentially use regular upgrade.

Model DFU is bootloader specially owned by chip STM.This kind of way to upgrade is applied to OpenMV never burned firmware before or never burn it wrongly.

Dfu upgrade doesn’t need debugger,only need a du pont line and a USB line.

First step,install software

在OpenMV的IDE就集成了这个烧录软件:DFUSE

双击打开。

Second step download the latest firmware

同样,在IDE中就集成了最新的固件。

Third step enter model DFU

Link pin Boot and pin RST with a du pont line.

Then it would be model DFU,there will show a equipment DFU on the equipment manager.

If not install drive automatically,you can find drive file on the path of install in software DfuSe.Installing it would be okay.

Fourth step burn firmware

Open software,click Choose choosing openmv.dfu(do not choose Choose on the lest side)

Please focus on distinguishing firmware of OpenMV2 and OpenMV3. 如果你是OpenMV3 M7的板子,请选择OpenMV3的固件;如果是OpenMV2 M4的板子,请选择OpenMV2的固件。

This way will make upload successful.Pull out du pont line,the insert USB line again.Try to run IDE.

MacOS DFU upgrade

MacOS can also be regular upgrade,please preferentially use regular upgrade.

Model DFU is bootloader specially owned by chip STM.This kind of way to upgrade is applied to OpenMV never burned firmware before or never burn it wrongly.

We can’t find procedure of GUI inside Linux and Mac OS,only order line.

Install software:

brew install dfu-util

Download firmware

Download official firmware: https://github.com/openmv/openmv/releases

And decompress firmware to current directory:

ls
openmv.dfu

Enter model DFU

Check it first:

>> sudo dfu-util -l
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Deducing device DFU version from functional descriptor length
Found Runtime: [05ac:828f] ver=0131, devnum=4, cfg=1, intf=3, path="20-3", alt=0, name="UNKNOWN", serial="UNKNOWN"
Found DFU: [0483:df11] ver=2200, devnum=27, cfg=1, intf=0, path="20-2", alt=3, name="@Device Feature/0xFFFF0000/01*004 e", serial="348633623235"
Found DFU: [0483:df11] ver=2200, devnum=27, cfg=1, intf=0, path="20-2", alt=2, name="@OTP Memory /0x1FFF7800/01*512 e,01*016 e", serial="348633623235"
Found DFU: [0483:df11] ver=2200, devnum=27, cfg=1, intf=0, path="20-2", alt=1, name="@Option Bytes  /0x1FFFC000/01*016 e/0x1FFEC000/01*016 e", serial="348633623235"
Found DFU: [0483:df11] ver=2200, devnum=27, cfg=1, intf=0, path="20-2", alt=0, name="@Internal Flash  /0x08000000/04*016Kg,01*064Kg,07*128Kg,04*016Kg,01*064Kg,07*128Kg", serial="348633623235"

Means have already entered model dfu.

Burn firmware

sudo dfu-util --alt 0 -D openmv.dfu

If it’s normal,it will display:

image for alternate setting 0, (2 elements, total size = 1008036)
parsing element 1, address = 0x08000000, size = 65536
Download    [=========================] 100%        65536 bytes
Download done.
parsing element 2, address = 0x08010000, size = 942484
Download    [=========================] 100%       942484 bytes
Download done.
done parsing DfuSe file

This way we can upgrade firm ware successfully Reference source:https://github.com/openmv/openmv/wiki/Using-DFU-to-update-your-firmware

results matching ""

    No results matching ""