Openmv firmwire build error

hi! engineers from Openmv.

I strictly follow Linux Installation at Home · openmv/openmv Wiki · GitHub .

I’m sure I’ve used this method, “git clone – recursive https://github.com/openmv/openmv.git”.
But I met the following ERROR messages .

Makefile:10: *** Invalid BOARD specified: boards/OPENMV4.  Stop.
omv/ports/stm32/omv_portconfig.mk:598: recipe for target 'FIRMWARE_OBJS' failed
make: *** [FIRMWARE_OBJS] Error 2
chenhua@ubuntu:~/openmv/ch_openmv/openmv/src$ 

Seems you used the wrong TARGET, should be make TARGET=OPENMV4

hi,

I’ve used the cmd like “make TARGET=OPENMV4P”,
the ERROR message is as below:
‘’
…/…/extmod/modbtree.c:37:10: fatal error: db.h: No such file or directory
#include <db.h>
^~~~~~
compilation terminated.
…/…/lib/berkeley-db-1.xx/btree/bt_close.c:48:10: fatal error: db.h: No such file or directory
#include <db.h>
^~~~~~
compilation terminated.
…/…/lib/berkeley-db-1.xx/btree/bt_conv.c:45:10: fatal error: db.h: No such file or directory
#include <db.h>
‘’

You need to init the sub modules.

thanks for your replay.
but how to init the sub moduels?
like this?
$ cd ports/stm32
$ make submodules
$ make

when go into the dir of /openmv/src/micropython/ports/stm32 and run “make submodules”,
the ERROR message is as below:
openmv/src/micropython/ports/stm32$ make submodules
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Updating submodules: lib/lwip lib/mbedtls lib/mynewt-nimble lib/stm32lib
error: pathspec ‘…/…/lib/lwip’ did not match any file(s) known to git.
error: pathspec ‘…/…/lib/mbedtls’ did not match any file(s) known to git.
error: pathspec ‘…/…/lib/mynewt-nimble’ did not match any file(s) known to git.
error: pathspec ‘…/…/lib/stm32lib’ did not match any file(s) known to git.
…/…/py/mkrules.mk:215: recipe for target ‘submodules’ failed
make: *** [submodules] Error 1

there is a updated ERROR message when run the cmd “make TARGET=OPENMV4P”:

CC boards/OPENMV4P/bdev.c
AS …/…/lib/stm32lib/CMSIS/STM32H7xx/Source/Templates/gcc/startup_stm32h743xx.s
CC …/…/lib/stm32lib/CMSIS/STM32H7xx/Source/Templates/system_stm32h7xx.c
…/…/lib/stm32lib/CMSIS/STM32H7xx/Source/Templates/system_stm32h7xx.c:86:0: error: “VECT_TAB_OFFSET” redefined [-Werror]
#define VECT_TAB_OFFSET 0x00000000UL /*!< Vector Table base offset field.

Whatever it is it’s a local issue with your clone, so just remove the whole repo and start over again. Please follow the instructions literally, they are very detailed and clear enough:

git clone --depth=1 https://github.com/openmv/openmv.git
cd openmv
git submodule update --init --depth=1 --no-single-branch
git -C src/micropython/ submodule update --init --depth=1
make -C src/micropython/mpy-cross/
make -C src/ TARGET=OPENMV4P