User`s guide
reload
Purpose Reload most recent program file to processor signal proce ssor
Syntax s = reload(cc,timeout)
s = reload(cc)
Description s = reload(cc,timeout) resends the most recently loaded program
file to the p rocessor. If you have not loaded a program file in the
current session (so there is no previously loaded file),
reload returns
the null entry
[] in s indicating that it could not load a file to the
processor. Otherwise,
s contains the full path name to the program file.
After you reset your processor or after any event produces changes in
your processor memory, use
reload to restore the program file to the
processor for execution.
To limit the time CCS IDE spends trying to reload the program file to
the processor,
timeout specifies how long the load process can take. If
the load process exceeds the timeout limit, CCS IDE stops trying to
load the program file 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
confirmation before the timeout period passed.
s = reload(cc) reloads the most recent program file, 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