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.

PROCESSOR-SDK-AM62X: How to integrate the Pinmux exported .c&.h files from the Sysconfig tool into the "MCU+SDK"

Part Number: PROCESSOR-SDK-AM62X
Other Parts Discussed in Thread: SYSCONFIG, AM625

Hi TI Team,

We are going to use AM625 SoC in our custom device, mcu_plus_sdk_am62x_09_00_00_19 as SDK and for changing the pin mux configurations we had seen from the other threads that we need to use Sysconfig tool. We have downloaded the tool and changed the configurations as per our need. In the tool we are able to see that it gives the pin mux configuration output in 5 files namely AM62x_pinmux.h, AM62x_pinmux_data.c, devicetree.dtsi, PinmuxConfigSummary.csv and untitled.syscfg.

I understand the .c&.h files are for use with  bare-metal/RTOS offering ("MCU+ SDK"),remaining dts files For U-Boot/Linux purposes.

Since I want to do bare-metal/RTOSl development,How to integrate the Pinmux exported .c&.h files from the Sysconfig tool into the "MCU+SDK",Is there a specific TI reference document?

Thanks in advance.

  • Hello Long,

    Thank you for reaching out to Texas Instruments E2E support forum.

    Since I want to do bare-metal/RTOSl development,How to integrate the Pinmux exported .c&.h files from the Sysconfig tool into the "MCU+SDK",Is there a specific TI reference document?

    For getting started with the Sysconfig tool for bare-metal / RTOS development. Please refer Using SDK with SYSCONFIG.

    Please let me know if you have any additional questions.

    Best Regards,

    Tushar

  • Hi TI Team,

    I have found that the file “ti_pinmux_config.c” generated by “Software Product” as “MCU+SDK for Am62x” is the same as the file “AM62x_pinmux_data.c” generated by “Software Product” as empty. But I still have some questions

    1.How to replace “AM62x_pinmux_data.c” with “ti_pinmux_config.c”, it is read-only.

    2.When I want to copy the peripherals used by “Software Product” as empty to the reserved peripherals when “Software Product” is “MCU+SDK for Am62x”, I find that “ti_pinmux_config.c” will not be modified, and I found the sysconfig document to prove that my point is correct.

    "The Reserve Peripherals Tab lets you define hardware for which you will write your own code, rather than relying on SysConfig's code generation."

  • Hi Long,

    Thank you for your response.

    1.How to replace “AM62x_pinmux_data.c” with “ti_pinmux_config.c”, it is read-only.

    You can save the file generated by Sysconfig tool and then you will be able to replace it.

    Please see the below screenshot.

    2.When I want to copy the peripherals used by “Software Product” as empty to the reserved peripherals when “Software Product” is “MCU+SDK for Am62x”, I find that “ti_pinmux_config.c” will not be modified, and I found the sysconfig document to prove that my point is correct.

    The Reserved Peripherals tab is used to reserve any particular hardware resource that your own custom code will handle, and it tells the sysconfig tool not to use that peripheral. This tab should not be used for any peripherals that you want to be configured by the tool.

    Regards,

    Tushar

  • Hi TI Team,

    "You can save the file generated by Sysconfig tool and then you will be able to replace it."

    As you said, I did do that, then when I rebuild the project in CCS, I found that the original "AM62x_pinmux_data.c" will be overwritten by "ti_pinmux_config.c" again. But if you disable "Include in build" in sysconfig for the original "ti_pinmux_config.c", the console will report errors,What should I do to overwrite "AM62x_pinmux_data.c" with "ti_pinmux_config.c" to finish building the project?

    Thanks

  • Hi Long,

    Thank you for your reply. 

    As you said, I did do that, then when I rebuild the project in CCS, I found that the original "AM62x_pinmux_data.c" will be overwritten by "ti_pinmux_config.c" again. But if you disable "Include in build" in sysconfig for the original "ti_pinmux_config.c", the console will report errors,What should I do to overwrite "AM62x_pinmux_data.c" with "ti_pinmux_config.c" to finish building the project

    For your use case, please follow the below steps:

    • Build the project without changing any files.
    • Once you have Sysconfig files generated, then look up the file named ti_pinmux_config.c and modify it using any text editor with the code you want to replace.
    • Next, copy the generated files and paste them into example directory as shown in the image below.

    • Set example.syscfg to be not included in the build and then build the project.

    Now you will be able to build the project without any errors.

    Please let me know if the above solution works.

    Regards,

    Tushar

  • Hi Tushar
    Thanks, this solved my problem

  • Hi Long,

    Thank you for your confirmation.

    Thanks, this solved my problem

    Happy to help Slight smile.

    Regards,

    Tushar