updating firmware from IDE

Discussion related to "under the hood" OpenMV topics.
sertunc
Posts: 10
Joined: Thu Jun 30, 2016 1:18 am

updating firmware from IDE

Postby sertunc » Fri Jul 01, 2016 4:35 am

Hi,

I have read updating firmware from this page;
https://github.com/openmv/openmv/wiki/G ... e-firmware

i have downloaded the latest 1,5 IDE.
I am updating with IDE built-in bootloader,
Got 2 questions :

1) Do i need to connect 3,3V to BOOT0 for updating firmware ?
2) should i only update ; openmv/firmware/OPENMV2/firmware.bin or should i update bootloader.bin and openmv.bin also ?


thanks in advance
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: updating firmware from IDE

Postby kwagyeman » Fri Jul 01, 2016 10:29 am

1) Do i need to connect 3,3V to BOOT0 for updating firmware ?

>> Not if you're using the bootloader built-in to the IDE. Using the BOOT0 pin is for recovering from being totally bricked.

2) should i only update ; openmv/firmware/OPENMV2/firmware.bin or should i update bootloader.bin and openmv.bin also ?

>> Pick the largest file. They are all part of the same firmware image. The largest one has all the pieces. If you upload the smaller ones that will brick the system.
Nyamekye,
sertunc
Posts: 10
Joined: Thu Jun 30, 2016 1:18 am

Re: updating firmware from IDE

Postby sertunc » Fri Jul 01, 2016 12:17 pm

bootloader.bin ; 64kb
firmware.bin ; 850kb
openmv.bin ; 914kb

so i did flash openmv.bin which is largest
and now i have a bricked device :(
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: updating firmware from IDE

Postby kwagyeman » Fri Jul 01, 2016 12:26 pm

Ah, okay, so, you can unbrick it by following the tutorial here: https://github.com/openmv/openmv/wiki/U ... r-firmware

I thought you were talking about that one. For using the built-in boot loader in the IDE you want the second largest file.
Nyamekye,
User avatar
kwagyeman
Posts: 4430
Joined: Sun May 24, 2015 2:10 pm

Re: updating firmware from IDE

Postby kwagyeman » Fri Jul 01, 2016 12:27 pm

Since the STM32 is unbrickable you don't really have to worry. :)
Nyamekye,
sertunc
Posts: 10
Joined: Thu Jun 30, 2016 1:18 am

Re: updating firmware from IDE

Postby sertunc » Fri Jul 01, 2016 12:39 pm

wow, it was the easiest unbricking of my life :) :)
thank you
User avatar
iabdalkader
Posts: 1214
Joined: Sun May 24, 2015 3:53 pm

Re: updating firmware from IDE

Postby iabdalkader » Fri Jul 01, 2016 1:40 pm

For anyone else reading this, you only need to update the main firmware image (openmv/firmware/OPENMV2/firmware.bin) as mentioned in the wiki. If you upload any other binary, you still can recover the cam using the IDE, the bootloader only writes to specific flash pages so it can't overwrite itself.

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests