STM32F417控制器的Micropython

发布于 2025-01-24 15:40:07 字数 777 浏览 6 评论 0原文

我正在从事一个项目,我想在STM32F417控制器上使用Micropython,我发现Micropython不支持我的控制器,因此我可能应该在STM32F407的固件上工作,以使其适合我的控制器,并且比我的控制器兼容,并且将其上传到控制器。因此,我开始看到我应该在“ STM32F407”的固件中更改什么 我得出的结论是,我应该更改

1: mpconfigboard.h
2: stm32f4xx_hal_conf.h
3: mpconfigboard.mk

我可以更改两个标头文件(1,2),但是对于makefile,我对链接器文件的应完全更改感到困惑(ld_files = babards = boars/stm32f405.ld董事会/common_ifs.ld)我没有得到我应该更改的内容。

我还应该更改其他文件。

这是我为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 am working on a project where I want to use micropython on an stm32f417 controller , I´ve figured out that micropython doesn´t support my 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 files (1 , 2) but for the makefile 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 appreciated .
Thank you in advance :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文