Use the following steps to add CLB
support to an existing C2000WARE DriverLib Project:
- Add the "empty.syscfg" file (for
F2837xD
<C2000WARE_INSTALL>\driverlib\f2837xd\examples\cpu1\clb\empty.syscfg) from
the CLB examples folder to the project by copying the file into the project
directory.
- CCS asks the user whether or not to
enable SysConfig. Accept and select "Yes".
- Open the "Project Properties" and
open the Resources → Linked Resources. Add the following Variable Paths:
- C2000WARE_ROOT
[PATH_TO_C2000WARE]
- CLB_SYSCFG_ROOT [PATH_TO_CLB_TOOL]
- See step 6 for more details
- In the Project Properties window,
select Build → Steps.
- Add the following line to the
Post-build steps as seen in Figure 5-2.
- ${NODE_TOOL}
"${C2000WARE_ROOT}/dot_file_libraries/clbDotUtility.js"
"${C2000WARE_ROOT}" "${BuildDirectory}/syscfg"
"${BuildDirectory}/syscfg/clb.dot"
Figure 5-2 Post-Build
Steps
- Next, open
Resources → Linked Resources to verify the correct path for CLB_SYSCFG_ROOT is
used. Then open Build → SysConfig → Basic Options and add the proper path to the
Root system config meta data list; do this only in the case where the project
does not contain SysConfig:
- Make sure that the Linked
Resources has the correct path for CLB_SYSCFG_ROOT
- ${CLB_SYSCFG_ROOT}/.metadata/product.json
- Finally
click Apply and Close.
- After
building the project, the content generated by the CLB Tool will be present in
the build configuration directory. Figure 5-5 shows an example of this after adding CLB support to the epwm_ex1_trip_zone
driverlib example.