NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Port Connect
Contents
Port Connect[edit]
Introduction[edit]
You can use the Port Connect tool to access a file through a memory address. Then, by connecting to the memory (port) address, you can read data in from a file, and/or write data out to a file.
Connecting a File[edit]
To connect a memory (port) address to a data file, follow these steps:
- From the Tools menu, select Port Connect.
This action displays the Port Connect window and starts the Port Connect tool.
- Click the Connect button.
This action opens the Connect dialog box.
- In the Port Address field, enter the memory address.
This parameter can be an absolute address, any C expression, the name of a C function, or an assembly language label. If you want to specify a hex address, be sure to prefix the address number with 0x; otherwise, Code Composer Studio treats the number as a decimal address.
- In the Length field, enter the length of the memory range.
The length can be any C expression.
- In the Page field, choose type of memory (program or data) that the address occupies:
To identify this page . . . Use this value as the page parameter . . . Program memory Prog Data memory Data
- In the Type field, select the Write or Read radio button.
- Click OK.
This action displays the Open Port File window.
- Select the data file to which you want to connect and click Open.
The file is accessed during an assembly language read or write of the associated memory address. Any memory address can be connected to a file. A maximum of one input and one output file can be connected to a single memory address; multiple addresses can be connected to a single file.
Disconnecting a File[edit]
Before you can delete from the memory map a memory address that you have connected to a file, you must disconnect the address. To disconnect a memory address from a data file, follow these steps:
- Select the line that contains the file and port address you want to disconnect.
This action activates the Disconnect button.
- Press the Disconnect button or double click the port address.
This action disconnects the memory address from the data file and removes that information from the Port Connect window.
Additional Information[edit]
- Training presentation on Port Connect - link.
Port Connect Recording[edit]
- Port connect presentation recording on CCSv4 - link
Supported Simulators[edit]
- Supported on all C6000 Device Simulator only