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.

SYSCONFIG: How does one use custom .metadata with Sysconfig

Part Number: SYSCONFIG

Tool/software:

I was not able to understand how to have sysconfig `.meta` and template files loaded from my project, so I have been maintaining my own fork of ind_comm_sdk, which I'd rather not do, and modifying the metadata there.

At the moment the two big changes are addition of a different Ethernet PHY for use by the EtherCAT setup and changes to the Debug section so I can use a faster, easier to display, protocol than plain old text. 

What is best practice here? How do people maintain Sysconfig settings that are specific to their boards? Everyone else must be hitting this problem the first time they move from a TI Dev board to their own board and need to add a board level setting or change it's behavior. 

Is there some hook functions in sysconfig I'm missing? 

  • SysConfig looks for files in the SDK based on the "includePaths" parameter in the .metadata/product.json file.  However, SysConfig will first look for files relative to the .syscfg file you are using in your project.  So, if the file in the SDK you want to replace is at <SDK root>\source\ti\drivers\.meta\I2C.syscfg.js, and the "includePaths" setting has an entry of "../source", and your .syscfg script is at <project root>/example.syscfg, then you would need to copy that file to <project root>\ti\drivers\.meta\I2C.syscfg.js.  SysConfig should then pick up your copy of the file first.

    That said, usually when people move from a development board to their own, the main issue is the board files prevent other pin choices from being selected.  This document explains how to work around that: https://software-dl.ti.com/ccs/esd/sysconfig/docs/guide/custom-board.html  However, I'm not that familiar with the modules you mentioned, and they may make other significant decisions based on the board configured.  If that's the case, the above web page won't necessarily help and I'll have to get you in touch with experts for those components.

    Darian