User`s guide

reload
Purpose Reload most recent program le to processor signal proce ssor
Syntax s = reload(cc,timeout)
s = reload(cc)
Description s = reload(cc,timeout) resends the most recently loaded program
le to the p rocessor. If you have not loaded a program le in the
current session (so there is no previously loaded le),
reload returns
the null entry
[] in s indicating that it could not load a le to the
processor. Otherwise,
s contains the full path name to the program le.
After you reset your processor or after any event produces changes in
your processor memory, use
reload to restore the program le to the
processor for execution.
To limit the time CCS IDE spends trying to reload the program le to
the processor,
timeout species how long the load process can take. If
the load process exceeds the timeout limit, CCS IDE stops trying to
load the program le and returns an error stating that the time period
expired. Exceeding the allotted time for the reload operation usually
indicates t ha t the reload was successful but CCS IDE did not receive
conrmation before the timeout period passed.
s = reload(cc) reloads the most recent program le, using the
timeout value set when you creat ed link cc, the global timeout setting.
Using reload with Multiprocessor Boards
When yo ur board contains more than one processor, reload calls the
reloadin g function for each processor represented by
cc, reloading the
most recently loaded program on each processor.
Thisisthesameascalling
reload for each processor individually
through
ticcs obje cts for each one.
Examples AfteryoucreateanobjectthatconnectstoCCS,usetheavailable
methods to reload your most recently loaded project. If you have not
loaded a project in this session,
reload returns an error and an empty
value for
s. Loading a project eliminates the error.
7-135