WeActStudio / MiniSTM32H7xx

STM32H750VBT6/STM32H743VIT6 Core Board With 0.96'' TFT,TF Card,8MB QSPI FLASH,8MB SPI FLASH,DVP Port
GNU General Public License v3.0
288 stars 100 forks source link

openmv source code problem #18

Closed e135193 closed 2 years ago

e135193 commented 3 years ago

Hello,

I have a compile error

boards/WeActStudioSTM32H7xx/bdev.c:5:8: error: unknown type name 'mp_spiflash_cache_t'
    5 | STATIC mp_spiflash_cache_t spi_bdev_cache;
      |        ^~~~~~~~~~~~~~~~~~~
boards/WeActStudioSTM32H7xx/bdev.c:11:6: error: 'const struct _mp_spiflash_config_t' has no member named 'cache'
   11 |     .cache = &spi_bdev_cache,
      |      ^~~~~
boards/WeActStudioSTM32H7xx/bdev.c:11:14: error: excess elements in struct initializer [-Werror]
   11 |     .cache = &spi_bdev_cache,
      |              ^
boards/WeActStudioSTM32H7xx/bdev.c:11:14: note: (near initialization for 'spiflash_config')
cc1: all warnings being treated as errors
make[1]: *** [../../py/mkrules.mk:77: /home/engin/openmv/src/build/micropython/boards/WeActStudioSTM32H7xx/bdev.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [omv/ports/stm32/omv_portconfig.mk:591: FIRMWARE_OBJS] Error 2