This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] AM62D-Q1:AM62D FreeRTOS SDK 11.00.00 中不生成 GPIO_init ()

Guru**** 2810285 points

Other Parts Discussed in Thread: SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1623676/am62d-q1-gpio_init-is-not-generated-in-am62d-freertos-sdk-11-00-00

器件型号: AM62D-Q1
主题: SysConfig 中讨论的其他器件

您好、

在我的项目中、即使配置了 GPIO、syscfg 也不会生成 GPIO_init 函数。 我以 SDK 中包含的示例为例 — gpio_led_blink - generate ti_drivers_config.c 且 gpio_init 也不存在。 AM62x FreeRTOS SDK 11.00.00 中不会发生此问题。 我使用 SysConfig 1.23.1+4034。 如何修复 AM62D FreeRTOS SDK 11.00.00 以生成 GPIO 初始化?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Michal、

    请将以下补丁应用到您的 SDK。

    diff --git a/freertos_sdk/source/drivers/.meta/gpio/v0_1/gpio_v0_1.syscfg.js b/freertos_sdk/source/drivers/.meta/gpio/v0_1/gpio_v0_1.syscfg.js
    index 0d33f004..efcc9134 100644
    --- a/freertos_sdk/source/drivers/.meta/gpio/v0_1/gpio_v0_1.syscfg.js
    +++ b/freertos_sdk/source/drivers/.meta/gpio/v0_1/gpio_v0_1.syscfg.js
    @@ -214,6 +242,11 @@ let gpio_module = {
                 driver_config: "/drivers/gpio/templates/gpio.h.xdt",
                 moduleName: gpio_module_name,
             },
    +        "/drivers/system/system_config.c.xdt": {
    +            driver_config: "/drivers/gpio/templates/gpio_config.c.xdt",
    +            driver_init: "/drivers/gpio/templates/gpio_init.c.xdt",
    +            moduleName: gpio_module_name,
    +        },
             "/drivers/pinmux/pinmux_config.c.xdt": {
                 moduleName: gpio_module_name,
             },
    

    应用上述补丁后、您应该能够看到通过 SysConfig 工具生成的 GPIO 代码。

    此致、

    Tushar