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: GPIO_init() is not generated in AM62D FreeRTOS SDK 11.00.00

Part Number: AM62D-Q1
Other Parts Discussed in Thread: SYSCONFIG

Hi,

In my project syscfg does not generate GPIO_init function even though GPIO is configured. I take example included in sdk - gpio_led_blink - generate ti_drivers_config.c and GPIO_init is absent too. This issue does not happen in AM62x FreeRTOS SDK 11.00.00. I use SysConfig 1.23.1+4034. How to fix AM62D FreeRTOS SDK 11.00.00 to generate GPIO initialization?

  • Hi Michal,

    Please apply the below patch to your 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,
             },
    

    After applying the above patch you should be able to see the GPIO code getting generated via Sysconfig tool.

    Regards,

    Tushar