WeActStudioSTM32H7xx Compile Error
Posted: Fri May 28, 2021 9:26 pm
Hello, I am trying to build micropython for WeActStudioSTM32H7xx module. However I get some errors. Could you please help ?
Code: Select all
CC /home/xxxx/openmv/src/build/micropython/pins_WeActStudioSTM32H7xx.c
boards/WeActStudioSTM32H7xx/bdev.c:22:6: error: 'const struct _mp_spiflash_config_t' has no member named 'cache'
22 | .cache = &spi_bdev_cache,
| ^~~~~
boards/WeActStudioSTM32H7xx/bdev.c:22:15: error: 'spi_bdev_cache' undeclared here (not in a function); did you mean 'spi_bdev_ioctl'?
22 | .cache = &spi_bdev_cache,
| ^~~~~~~~~~~~~~
| spi_bdev_ioctl
boards/WeActStudioSTM32H7xx/bdev.c:22:14: error: excess elements in struct initializer [-Werror]
22 | .cache = &spi_bdev_cache,
| ^
boards/WeActStudioSTM32H7xx/bdev.c:22:14: note: (near initialization for 'qspiflash_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