WeActStudioSTM32H7xx Compile Error

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
TRMrNo
Posts: 15
Joined: Fri May 28, 2021 9:24 pm

WeActStudioSTM32H7xx Compile Error

Post by TRMrNo » 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

TRMrNo
Posts: 15
Joined: Fri May 28, 2021 9:24 pm

Re: WeActStudioSTM32H7xx Compile Error

Post by TRMrNo » Sat Jun 11, 2022 9:14 am

I got error. What Could be the problem ?

Code: Select all

@ubuntu:~/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/stm32lib' did not match any file(s) known to git
make: *** [../../py/mkrules.mk:191: submodules] Error 1


@ubuntu:~/openmv/src/micropython/ports/stm32$ make BOARD=WeActStudioSTM32H7xx V=1
make: *** No rule to make target 'build-WeActStudioSTM32H7xx/modstm_qstr.h', needed by 'build-WeActStudioSTM32H7xx/genhdr/qstrdefs.generated.h'.  Stop.

Post Reply