Here are some simple steps to port the
example into CCS.
- Select Project, and then import CCS
Projects from the menu.
- Choose the
program from SDK. Take the MSPM0L1306, for example.
\mspm0_sdk_1_10_00_05\examples\nortos\LP_MSPM0L1306\driverlib
If the file cannot be imported,
delete the same name project under workspace.
- After
importation, there is going be a project lying on the left, and a REAME.md will
automatically open. It is recommended that you read the README.md file first, which
contains the purpose of this example and the hardware configuration.
- Figure 2-32 shows the most important files in the project.
- Just like STM development, TI also
supports chip view. Double click .syscfg file, you can reach to SysConfig, where you are
allowed to configure the required peripherals through a graphical interface. And, it is
suggested to use the MCU view of SysConfig to help you fix the pin function first with
software engineer, which is similar to MCU/MPU Package in STM8CubeMAX.
- Based on the code and SysConfig example,
you are able to polish the project or modify them with device-specific TRM or application
note released on Ti.com.
- If you want to add third-party libraries,
you can follow the steps below. First, you have to add relevant file into your project, as
shown in Figure 2-33.
Then, other steps need to be done
in order to tell compiler that you have add header files.
- As you finish evaluating the software,
click “build” icon in the main toolbar, as shown in Figure 2-35. The appearance of “Build Finished” shows your successful compilation.