Good morning to all, I’m currently working on a method in python3 to flash the firmware to the camera without passing through the OpenMVIDE. I need this to work somehow reliably for a project I’m working on: something related to continuous learning, where the firmware (and the micropython code) need to be “updatable” autonomously.
What I want to obtain is a way to be able to call a python script that flashes the firmware into the camera. I’m currently working on some sort of reverse engineering of the OpenMVIDE code using the functions available at:
The problem I’m stumbling upon is the sequence of commands to send to be able to access the bootloader to start erasing the flash and flashing the firmware. I tried every combination of:
reset()reset_to_bl()bootloader_start()bootloader_reset()
As of today, calling bootloader_start() (which should return something through the serial) does not return anything, no matter the timing and the amount of time.sleep() delays I put into the code between resets and bootloader_start() calls.
What I’m asking is: there’s a new method to be implemented in order to be able to access, somewhat reliably, the bootloader? Or, at least, there’s a specific sequence of command to follow (with a specific timing)?
Maybe a specific command not reported in the list of constants at the beginning of the file linked (such as:
__BOOTLDR_START = 0xABCD0001
__BOOTLDR_RESET = 0xABCD0002
...)?
A schematic, a flowchart, a piece of papere with something useful written on it would help me a lot.
Also some explanations on what the methods do would be welcome!
Thanks a lot,
keep up the good work!