micropython for STM32F417 controller

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
Firas_Baccouri
Posts: 35
Joined: Wed Apr 27, 2022 7:22 am

micropython for STM32F417 controller

Post by Firas_Baccouri » Wed Apr 27, 2022 12:20 pm

Hi,
I am working on a project where i want to use micropython on an stm32f417 controller , i´ve figured out that there is no micropython available for this controller , so i should maybe work on the firmware of STM32F407 to let it compatible for my controller and than upload it to the controller for that reason i am starting to see what i should change in the firmware of "STM32F407" ,
i get the conclusion that i should change the
1 : "mpconfigboard.h"
2: "stm32f4xx_hal_conf.h"
3:"mpconfigboard.mk"

i could change the two header file (1 , 2) but for the make file i am confused about what i should change exactly also for the linker file(LD_FILES = boards/stm32f405.ld boards/common_ifs.ld) i didn´t get what i should change .

And is there any other file i should change .

This is the change that i made for the mpconfigboard.h :

#define MICROPY_HW_BOARD_NAME "F4"
#define MICROPY_HW_MCU_NAME "STM32F417"

// HSE is 8MHz
#define MICROPY_HW_CLK_PLLM (4)
#define MICROPY_HW_CLK_PLLN (168)
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2)
#define MICROPY_HW_CLK_PLLQ (7)

I want to get that project done as soon as possible , any help will be apreciated .
Thank you in advance :)

tepalia02
Posts: 99
Joined: Mon Mar 21, 2022 5:13 am

Re: micropython for STM32F417 controller

Post by tepalia02 » Fri Apr 29, 2022 11:21 am


Firas_Baccouri
Posts: 35
Joined: Wed Apr 27, 2022 7:22 am

Re: micropython for STM32F417 controller

Post by Firas_Baccouri » Fri Apr 29, 2022 1:09 pm

tepalia02 wrote:
Fri Apr 29, 2022 11:21 am
Hi, have you tried this library? https://github.com/SpotlightKid/micropython-stm-lib
Thank you for your response, actually I didn´t , I´ve checked it now unfortunately I didn´t get what it is exactly doing !!!!

Post Reply