C.2 Linker-Generated Copy Tables and CRC Tables
In this example, three tasks exist in separate load areas. As each is needed, it is copied into the common run area and executed. A separate copy table is generated for each task (see table() operator in ex1.cmd). CRC values for the task functions are verified as well. See Example 7 for the crc_table() operator calls.
To run a simple example that uses copy tables and CRC tables, follow these steps:
- Create a CCS project with an empty main.c file.
- Create following files in the project and copy code into the files from the following examples:
- Edit the linker command file (*.cmd) provided for your target in the CCS project. Add the UNION statement in Example 7 to the SECTION directives in the file.
- Build and test the project. You should see the result: "Copy table and CRC tasks PASSED".