Page 2 of 4
Re: New STM32H743VIT6 dev boards
Posted: Sun Feb 16, 2020 3:05 pm
by zaord
Thanks you so much !
I will try and test it and come back to you
Have a really good journey this day
Re: New STM32H743VIT6 dev boards
Posted: Sun Feb 16, 2020 6:17 pm
by zaord
Hi Mcauser
I get this error when I follow you thread :
Code: Select all
sudo make BOARD=MCUDEV_DEVEBOX_H7XX_M
CC system_stm32.c
In file included from ./mpconfigport.h:31:0,
from ../../py/mpconfig.h:62,
from ../../py/mphal.h:29,
from system_stm32.c:78:
system_stm32.c: In function 'SystemClock_Config':
boards/MCUDEV_DEVEBOX_H7XX_M/mpconfigboard.h:16:30: error: 'RCC_PLLP_DIV2' undeclared (first use in this function)
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2) // divide PLL clock by this to get core clock
^
system_stm32.c:295:34: note: in expansion of macro 'MICROPY_HW_CLK_PLLP'
RCC_OscInitStruct.PLL.PLLP = MICROPY_HW_CLK_PLLP;
^~~~~~~~~~~~~~~~~~~
boards/MCUDEV_DEVEBOX_H7XX_M/mpconfigboard.h:16:30: note: each undeclared identifier is reported only once for each function it appears in
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2) // divide PLL clock by this to get core clock
^
system_stm32.c:295:34: note: in expansion of macro 'MICROPY_HW_CLK_PLLP'
RCC_OscInitStruct.PLL.PLLP = MICROPY_HW_CLK_PLLP;
^~~~~~~~~~~~~~~~~~~
system_stm32.c:298:34: error: 'MICROPY_HW_CLK_PLLR' undeclared (first use in this function)
RCC_OscInitStruct.PLL.PLLR = MICROPY_HW_CLK_PLLR;
^~~~~~~~~~~~~~~~~~~
system_stm32.c:333:38: error: 'MICROPY_HW_CLK_PLL3M' undeclared (first use in this function)
PeriphClkInitStruct.PLL3.PLL3M = MICROPY_HW_CLK_PLL3M;
^~~~~~~~~~~~~~~~~~~~
system_stm32.c:334:38: error: 'MICROPY_HW_CLK_PLL3N' undeclared (first use in this function)
PeriphClkInitStruct.PLL3.PLL3N = MICROPY_HW_CLK_PLL3N;
^~~~~~~~~~~~~~~~~~~~
system_stm32.c:335:38: error: 'MICROPY_HW_CLK_PLL3P' undeclared (first use in this function)
PeriphClkInitStruct.PLL3.PLL3P = MICROPY_HW_CLK_PLL3P;
^~~~~~~~~~~~~~~~~~~~
system_stm32.c:336:38: error: 'MICROPY_HW_CLK_PLL3Q' undeclared (first use in this function)
PeriphClkInitStruct.PLL3.PLL3Q = MICROPY_HW_CLK_PLL3Q;
^~~~~~~~~~~~~~~~~~~~
system_stm32.c:337:38: error: 'MICROPY_HW_CLK_PLL3R' undeclared (first use in this function)
PeriphClkInitStruct.PLL3.PLL3R = MICROPY_HW_CLK_PLL3R;
^~~~~~~~~~~~~~~~~~~~
../../py/mkrules.mk:47: recipe for target 'build-MCUDEV_DEVEBOX_H7XX_M/system_stm32.o' failed
make: *** [build-MCUDEV_DEVEBOX_H7XX_M/system_stm32.o] Error 1
Re: New STM32H743VIT6 dev boards
Posted: Sun Feb 16, 2020 11:53 pm
by jimmo
zaord wrote: ↑Sun Feb 16, 2020 6:17 pm
I get this error when I follow you thread :
Can you try running
Code: Select all
make submodules
make BOARD=MCUDEV_DEVEBOX_H7XX_M clean
make BOARD=MCUDEV_DEVEBOX_H7XX_M
Re: New STM32H743VIT6 dev boards
Posted: Mon Feb 17, 2020 6:44 am
by zaord
Thakns !
I made the three commands you said but the errors are the same.
I think, there is some undifined variable in the board definition (if you look the errors)
Best Regards to you !
Re: New STM32H743VIT6 dev boards
Posted: Thu Feb 20, 2020 1:04 am
by zaord
Did anyone have any idea how to solve those errors ?
Best Regards !
Re: New STM32H743VIT6 dev boards
Posted: Thu Feb 20, 2020 1:43 am
by mcauser
It builds fine for me on the latest (head) version. Maybe try recompiling the cross compiler?
Code: Select all
cd micropython
make -C mpy-cross
cd ports/stm32
make submodules
make BOARD=MCUDEV_DEVEBOX_H7XX_M clean
make BOARD=MCUDEV_DEVEBOX_H7XX_M
Re: New STM32H743VIT6 dev boards
Posted: Thu Feb 20, 2020 9:39 am
by zaord
What did you call head version ?
I have ubuntu 18.04 bionic
Best
Re: New STM32H743VIT6 dev boards
Posted: Thu Feb 20, 2020 9:47 am
by zaord
I get the same error ...
Re: New STM32H743VIT6 dev boards
Posted: Thu Feb 20, 2020 12:37 pm
by jimmo
mcauser wrote: ↑Thu Feb 20, 2020 1:43 am
It builds fine for me on the latest (head) version. Maybe try recompiling the cross compiler?
hi mcauser, doesn't work for me either -- looks like the mpconfigboard.h is using the F7-style macros for the clock (and not setting the
MICROPY_HW_CLK_PLL3* values).
Re: New STM32H743VIT6 dev boards
Posted: Thu Feb 20, 2020 3:22 pm
by zaord
Mcauser, Is it possible to send me the firmeware that I try to upload on my board ?
Best Regards,
Ewen