There are OpenCV samples copied from opencv/samples/cpp and adopted a little ro run on Embox. These samples are located in cmds/ folder. Images for testing purposes are located in data_samples/. Embox's configurations are located in templates/.
You can run these sample on Embox (qemu, stm32) and on Linux (your PC).
You need to have both repos cloned - embox and opencv_samples.
$ cd embox/
$ make ext_conf EXT_PROJECT_PATH=<path-to>/opencv_samples
Now templates are available:
$ make confload
...
ext_project/opencv_samples/stm32f769i-discovery
ext_project/opencv_samples/stm32f769i-discovery-extmem
ext_project/opencv_samples/arm-qemu
$ make confload-ext_project/opencv_samples/arm-qemu
$ make // you can optionally pass -j<n> to speed up build
Run:
./scripts/qemu/auto_qemu
You can run some samples from internal ROM (2 MB):
$ make confload-ext_project/opencv_samples/stm32f769i-discovery
$ make // you can optionally pass -j<n> to speed up build
You can also run samples from internal QSPI (64 MB):
$ make confload-ext_project/opencv_samples/stm32f769i-discovery-extmem
$ make // you can optionally pass -j<n> to speed up build
You will need OpenOCD >= 0.11.0. You can download it here.
Start OpenOCD. If you built OpenOCD from sources:
$ cd <path to openocd>/tcl
Pass the corresponding *.cfg
to openocd:
$ sudo ../src/openocd -f board/stm32f769i-disco.cfg
Then go to embox/ and run:
./scripts/gdb_run_stm32f7_qspi.sh
Embox will be loaded and you can call commands from conf/start_script.inc.