- Only use the "rts6200.lib" Run time Support Library from TI, when compiling code for VC Smart Cameras! This is the default setting in the cc(r).cmd file included automatically when using VC's project files, for instance "new527_CCS31r.pjt".
- Especially when using Ti functions like "memcopy" it is recommended to re-compile the rts lib using the "-mi 100000" compiler option.
Background information regarding the RTS library usage:
- The run-time-support libraries that are shipped with the C6000
code generation tools are built with the following command strings:
mk6x -o -mo --RTS rts.src -l rts6200.lib
This means the RTS Library has not been compiled
using the default compiler setting ".mi 100000", recommended for
programming VC Smart Cameras.
"-mi 100000" ensures that the system interrupts are queried at least
every 100000 processor cycles. This is a vital operation for a multi
tasking system as the VC Smart Camera to operate properly.
If the system interrupts are blocked for more than 100 microseconds the system might become unstable.
This
can happen if inner loops include more than 100000 cycles, or if Ti
functions are used, that have not been compiled with the -mi 100000
compiler option!
For this reason it is recommended to compile the RTS library with "-mi 100000".
How to compile the RTS Library with "-mi 100000":
For a complete instruction refer to the following Ti manual:
- spru187n.pdf , section 10.1 (path if CCS has been installed to
c:\ti: "C:/ti/docs/pdf/spru187n.pdf" (the index "n" may increment with
newer compiler versions).
- Execute the following code from the command line, after navigating to the RST lib directory (C:\ti\C6000\cgtools\lib):
mk6x -o -mo -mi 100000 --RTS rts.src -l rts6200.lib
For further reference regarding code optimisation and interrupt latency, refer to the
"Code Optimization Seminar
"
available for download from: Registered User Section -> Advanced Programming Seminar.
|