New STM32H743VIT6 dev boards

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.
zaord
Posts: 96
Joined: Fri Jan 31, 2020 3:56 pm

Re: New STM32H743VIT6 dev boards

Post by zaord » Sun Feb 16, 2020 3:05 pm

Thanks you so much !
I will try and test it and come back to you ;)

Have a really good journey this day :)

zaord
Posts: 96
Joined: Fri Jan 31, 2020 3:56 pm

Re: New STM32H743VIT6 dev boards

Post by zaord » Sun Feb 16, 2020 6:17 pm

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


User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: New STM32H743VIT6 dev boards

Post by jimmo » Sun Feb 16, 2020 11:53 pm

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

zaord
Posts: 96
Joined: Fri Jan 31, 2020 3:56 pm

Re: New STM32H743VIT6 dev boards

Post by zaord » Mon Feb 17, 2020 6:44 am

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 !

zaord
Posts: 96
Joined: Fri Jan 31, 2020 3:56 pm

Re: New STM32H743VIT6 dev boards

Post by zaord » Thu Feb 20, 2020 1:04 am

Did anyone have any idea how to solve those errors ?

Best Regards !

User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

Re: New STM32H743VIT6 dev boards

Post by mcauser » Thu Feb 20, 2020 1:43 am

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

zaord
Posts: 96
Joined: Fri Jan 31, 2020 3:56 pm

Re: New STM32H743VIT6 dev boards

Post by zaord » Thu Feb 20, 2020 9:39 am

What did you call head version ?
I have ubuntu 18.04 bionic ;)

Best

zaord
Posts: 96
Joined: Fri Jan 31, 2020 3:56 pm

Re: New STM32H743VIT6 dev boards

Post by zaord » Thu Feb 20, 2020 9:47 am

I get the same error ...

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: New STM32H743VIT6 dev boards

Post by jimmo » Thu Feb 20, 2020 12:37 pm

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).

zaord
Posts: 96
Joined: Fri Jan 31, 2020 3:56 pm

Re: New STM32H743VIT6 dev boards

Post by zaord » Thu Feb 20, 2020 3:22 pm

Mcauser, Is it possible to send me the firmeware that I try to upload on my board ?

Best Regards,

Ewen

Post Reply