Firmware OPENMV2 vs OPENMV3

Hello,

A friend and I have tried to modify the firmware. When we compile, it updates the files in openmv/firmware/OPENMV2. If we upload that to our M7, it bricks (which makes sense as that firmware is for the M4).
We can’t seem to make the firmware compile for the M7. To that aim, we modified the Makefile under openmv/src, line 47 to be TARGET ?= OPENMV3 (from TARGET ?= OPENMV2).
This causes a few errors with MP_QSTR_P9. What might we be missing?

Thanks

Do:

make clean
make TARGET=OPENMV3

To build for the OpenMV Cam M7.

Do:

make clean
make TARGET=OPENMV2

To build for the M4.

You need to rebuild when switching targets.

Hi, make sure you’re using the same toolchain we’re using right now, that’s gcc version 6.2.1 20161205

The make clean did it for us.
We’re currently running gcc 5.4 20160609 for our work with PX4. If we encounter any issues we’ll switch to gcc 6.2.1 20161205
Thanks!