Compiling, Uploading, Running

Top  Previous  Next

The result of the project's compilation is a .TPC binary file, which contains the p-code and is uploaded onto the target device for execution.

The .TPC binary does not include TiOS. It is expected that the target device already has TiOS preloaded or nothing described below and in the Debugging chapter will work.

There is a way to combine TiOS with the .TPC file.

 

debug_toolbar

 

A project's binary can be compiled for debug or release. This is selected in the drop-down on the Debug toolbar (or set in the Project Settings dialog).

A debug binary doesn't execute automatically. It waits for TIDE to send control commands and make it run, break, etc. This is covered in DEBUGGING.

Release binaries run immediately after the device is powered up (or the new binary is uploaded). All debug functions on release binaries are disabled.

The upload is always performed to the currently selected target, and the selection is made in the Device Explorer.

 

tide_button_runHit [F5] or Debug > Run to have your project saved, compiled, uploaded onto the target, and ordered to start executing.

tide_status_progress

The status bar will show you the upload progress.

 

Naturally, the upload won't start if the compilation yields error(s). The execution won't happen if the upload fails. (More).

 

Full rebuilds

"Normal" compilation only processes files that were modified since the last compile.

Use Build > Rebuild All to recompile all the files in your project.

There is also Build > Rebuild All and Upload.

Learn about incremental uploads.