How to connect to the OMAP-L138/C6748/AM1808 EVM board using CCS?
From Texas Instruments Embedded Processors Wiki
Contents |
Set board to emulation Boot
In order to be able to immediately connect to both ARM and DSP on each board, it is necessary to set it to emulation boot.
Board settings for emulation are:
S7:8 S7:7 S7:6 S7:5 ON OFF OFF ON
See details on table 2.11 of the Logic Quick Start Guide.
Connecting using CCS3.3
This page was tested with CCS3 SR12. SR 12 installation is necessary for the OMAP-L1/C674x connection with an external emulator.
XDS100v1 embedded emulation - DSP only
NOTE: The OMAP-L138 EVM board has more than one USB connector. Make sure that you are connected to the correct one. Please page 6, section 1.4 of this document. It contains a picture of the board - connect to the the USB cable to the V connector described on the page.
For the CCSv3.3 that comes with the EVM, simply install CCS, drivers and BSL from the CD and click on one of the Desktop icons:
If you already have a full version of CCS installed you will need to download at least CCS Service Release 12.If you want to know what Service Release you have, please see this page. To install the latest Service Release please see this page.
Go to LogicPD's web site.
Click on the Kit Contents tab, at the bottom of the page click at: TMS320C6748 SOM-M1 GEL, CCS Setup, & BSL Files - you will need to create an account in their website if you do not have one already and download the files.
Go to CC3 Setup and click File -> Import. Browse to the configurations that you just got from Logic's site (...\1014014A_TMS320C6748_GEL_BSL_Files\evmc6748_v1\import) and select the file to import: C6748_xds100.ccs
You can also make sure that the correct GEL file is in that configuration:
1) Right click on the TMS320C674x_0 core and select Properties...
2) Browse to the GEL file you downloaded from Logic's website: ...\1014014A_TMS320C6748_GEL_BSL_Files\evmc6748_v1\gel\C6748.gel
3) Click OK
From this you should be able to connect to the DSP. This configuration does not support connection to the ARM.
XDS100v2 external emulator - DSP + ARM
XDS100v2 hardware is NOT supported on Code Composer Studio v3.3. You need to use v4 or later.
XDS510/560 external emulator - DSP only (C6748 SOM)
The full version of CCSv3.3 is necessary to connect to an external emulator. It is necessary to download at least CCS Service Release 12. If you want to know what Service Release you have, please see this page. To install the latest Service Release please see this page.
Here is the procedure for the XDS510/560 emulators:
1) Go to Spectrum Digital's web site and get the latest drivers if needed.
2) Go to LogicPD's web site. Click on the Kit Contents tab, at the bottom of the page click at: TMS320C6748 SOM-M1 GEL, CCS Setup, & BSL Files - you will need to create an account in their website if you do not have one already and download the files.
3) Go to CC3 Setup and click File -> Import. Browse to the configurations that you just got from Logic's site (...\1014014A_TMS320C6748_GEL_BSL_Files\evmc6748_v1\import\) and select the file to import: C6748_tixds560.ccs for XDS560 or C6748_sdxds510usb.ccs for the XDS510 emulator.
This board will show in the "Custom Boards" tab:
You can also make sure that the correct GEL files are in the configuration:
1) Right click on the TMS320C674XP_0 core and select Properties...
2) Browse to the GEL file you downloaded from Logic's website: ...\1014014A_TMS320C6748_GEL_BSL_Files\evmc6748_v1\gel\C6748.gel
3) Click OK
4) Click on "Save & Quit" at the bottom of the CCS Setup screen. Click yes in the pop up screen if you want to start CCS.
XDS510/560 external emulator - DSP + ARM (OMAP-L138 SOM)
The full version of CCSv3.3 is necessary to connect to an external emulator. It is necessary to download at least CCS Service Release 12. If you want to know what Service Release you have, please see this page. To install the latest Service Release please see this page.
Here is the procedure for the XDS510/560 emulators:
1) Go to Spectrum Digital's web site and get the latest drivers if needed.
2) Go to LogicPD's web site. Click on the Kit Contents tab, at the bottom of the page click at: OMAP-L138 SOM-M1 GEL, CCS Setup, & BSL Files - you will need to create an account in their website if you do not have one already and download the files.
Go to CC3.3 Setup and click File -> Import. Browse to the configurations that you just got from Logic's site (...\1014013A_OMAP-L138_GEL_BSL_Files\evmomapl138_v1\import\) and select the file to import: OMAPL138_tixds560.ccs for XDS560 or OMAPL138_sdxds510usb.ccs for the XDS510 emulator.
This board will show in the "Custom Boards" tab and the ARM will show.
You can also make sure that the correct GEL files are in the configuration:
1) Right click on the TMS320C674x_0 core and select Properties...
2) Browse to the GEL file you downloaded from Logic's website: ...\1014013A_OMAP-L138_GEL_BSL_Files\evmomapl138_v1\gelOMAPL138_ARM.gel
3) Click OK
4) Right click on the ARM9_0 core and select Properties...
5) Browse to the GEL file you downloaded from Logic's website: ...\1014013A_OMAP-L138_GEL_BSL_Files\evmomapl138_v1\gelOMAPL138_DSP.gel
6) Click OK
7) Click on "Save & Quit" at the bottom of the CCS Setup screen. Click yes in the pop up screen if you want to start CCS.
8) As the ARM GEL has initialization that the DSP needs, always connect to the ARM first.
XDS510/560 external emulator - ARM only (AM1808 SOM)
The full version of CCSv3.3 is necessary to connect to an external emulator. It is necessary to download at least CCS Service Release 12. If you want to know what Service Release you have, please see this page. To install the latest Service Release please see this page.
The AM1808 SOM is the one available for the Zoom™ AM1808 eXperimenter Kit.
Here is the procedure for the XDS510/560 emulators:
1) Go to Spectrum Digital's web site or Blackhawk's website and get the latest drivers if needed.
2) Go to LogicPD's web site. Click on the Kit Contents tab, at the bottom of the page click at: AM1808 SOM-M1 GEL, CCS Setup, & BSL Files - you will need to create an account in their website if you do not have one already and download the files.
3) Download the configuration files here.
4) Go to CC3 Setup and click File -> Import. Browse to the configurations that you just downloaded and select the file to import: AM1808_BH560m.ccs for XDS560 or AM1808_SD510USB.ccs for the XDS510 emulator.
The imported board will show in the "Custom Boards" tab:
5) Right click on the ARM9_0 core and select Properties...
6) Browse to the GEL file you downloaded from Logic's website: ...\1016316A_AM1808_BSL\AM1808_BSL\src\bsl\AM1808.gel
7) Click OK
8) Click on "Save & Quit" at the bottom of the CCS Setup screen. Click yes in the pop up screen if you want to start CCS.
Connecting using CCS4
This page was tested with CCS4 version 4.1.
XDS100v1 embedded emulation - DSP only
NOTE: The OMAP-L138 EVM board has more than one USB connector. Make sure that you are connected to the correct one. Please page 6, section 1.4 of this document. It contains a picture of the board - connect to the the USB cable to the V connector described on the page.
Go to LogicPD's web site. Click on the Kit Contents tab, at the bottom of the page click at: TMS320C6748 SOM-M1 GEL, CCS Setup, & BSL Files - you will need to create an account in their website if you do not have one already and download the files.
For CCS4, please see the example video Create a new target configuration at Target Setup.
When you create your target configuration file, select the Texas Instruments XDS100v1 USB Emulator connection, and the TMS3206748 device:
Save the configuration and proceed to select the advanced tab at the bottom. Expand the configuration and select the C674X_0 connection. On the right provide the location for the gel file (...\1014014A_TMS320C6748_GEL_BSL_Files\evmc6748_v1\gel\C6748.gel - downloaded from Logic's web site) at the initialization script location. Save it again.
From this you should be able to connect to the DSP. This configuration does not support connection to the ARM.
XDS100v2, XDS510 or XDS560 external emulator - DSP + ARM (C6748 SOM)
Go to LogicPD's web site. Click on the Kit Contents tab, at the bottom of the page click at: TMS320C6748 SOM-M1 GEL, CCS Setup, & BSL Files - you will need to create an account in their website if you do not have one already and download the files.
For CCS4, please see the example video Create a new target configuration at Target Setup.
In CCSv4 when you create your target configuration file (Target -> New Target Configuration), select:
- Spectrum Digital XDS510USB Emulator Connection for XDS510;
- OR Blackhawk USB560 Emulator connection for XDS560;
- OR Texas Instruments XDS100v2 USB Emulator Connection for XDS100 version 2.
Select TMS320C6748 for Device.
Save the configuration and proceed to select the advanced tab at the bottom. Expand the configuration and select the C674X_0 connection. On the right provide the location for the DSP gel file (...\1014014A_TMS320C6748_GEL_BSL_Files\evmc6748_v1\gel\C6748.gel - downloaded from Logic's web site) at the initialization script location:
From this you should be able to connect to the C6748.
When connecting to DSP cores in the C6748, follow these steps:
- Launch the Target Configuration created above
- Select the top line of C674x_0 and right-click Connect Target
- Now you are ready to start loading code and start debugging
XDS100v2, XDS510 or XDS560 external emulator - DSP + ARM (OMAP-L138 SOM)
Go to LogicPD's web site. Click on the Kit Contents tab, at the bottom of the page click at: OMAP-L138 SOM-M1 GEL, CCS Setup, & BSL Files - you will need to create an account in their website if you do not have one already and download the files.
For CCS4, please see the example video Create a new target configuration at Target Setup.
In CCSv4 when you create your target configuration file, select:
- Spectrum Digital XDS510USB Emulator Connection for XDS510;
- OR Blackhawk USB560 Emulator connection for XDS560;
- OR Texas Instruments XDS100v2 USB Emulator Connection for XDS100 version 2.
Select OMAPL138 for Board or Device.
NOTE: If you are using an XDS560 emulator, you must lower the JTAG TCLK frequency from the default setting to 10.368 MHz. You can do this from the 'Advanced' configuration tab and selecting the top level connection and modifying the XDS560 properties:
Save the configuration and proceed to select the advanced tab at the bottom. Expand the configuration and select the C674X_0 connection-On the right provide the location for the DSP gel file (...\1014013A_OMAP-L138_GEL_BSL_Files\evmomapl138_v1\gelOMAPL138_DSP.gel - downloaded from Logic's web site) at the initialization script location:
Select the ARM9_0 connection-on the right provide the location for the gel file (...\1014013A_OMAP-L138_GEL_BSL_Files\evmomapl138_v1\gelOMAPL138_ARM.gel - downloaded from Logic's web site) at the initialization script location: Save the configuration.
From this you should be able to connect to the OMAP-L138.
- For XDS100 please see this FAQ
- Multi-Core Debug with CCSv4
When connecting to the ARM + DSP cores in the OMAP-L138, follow these steps:
- Launch the Target Configuration created above
- Select the top line of ARM9_0 and right-click Connect Target
- Use the menu Scripts->Wake Cores->Wake DSP
- Select the top line of C674x_0 and right-click Connect Target
- Now you are ready to start loading code and start debugging
XDS100v2, XDS510 or XDS560 external emulator - ARM only (AM1808 SOM)
The AM1808 SOM is the one available for the Zoom™ AM1808 eXperimenter Kit.
Go to LogicPD's web site. Click on the Kit Contents tab, at the bottom of the page click at: AM1808 SOM-M1 GEL, CCS Setup, & BSL Files - you will need to create an account in their website if you do not have one already and download the files.
For XDS100v2 you can use the configuration that comes ready in the BSL instead of following the steps below. The configuration file is at ...\1016316A_AM1808_BSL\AM1808_BSL\src\bsl\AM1808.ccxml. Also, you can see sections 6 and 7 of the Zoom™ AM1808 Development Kit User Manual
To create a new configuration in CCS4, please see the example video Create a new target configuration at Target Setup.
In CCSv4 when you create your target configuration file, select:
- Spectrum Digital XDS510USB Emulator Connection for XDS510;
- OR Blackhawk USB560 Emulator connection for XDS560;
- OR Texas Instruments XDS100v2 USB Emulator Connection for XDS100 version 2.
Select AM1808 for Device. If you do not see AM1808 in the device list, please update your CCSv4.
NOTE: If you are using an XDS560 emulator, you must lower the JTAG TCLK frequency from the default setting to 10.368 MHz. You can do this from the 'Advanced' configuration tab and selecting the top level connection and modifying the XDS560 properties:
Save the configuration and proceed to select the advanced tab at the bottom.
Expand the configuration and select the ARM9_0 connection - on the right provide the location for the gel file (...\1016316A_AM1808_BSL\AM1808_BSL\src\bsl\AM1808.gel - downloaded from Logic's web site) at the initialization script location and save the configuration:
From this you should be able to connect to the AM1808.
When connecting to the AM1808, follow these steps:
- Launch the Target Configuration created above
- Select the top line of ARM9_0 and right-click Connect Target
- Now you are ready to start loading code and start debugging
Connection errors using CCSv4 and XDS100
These are some common connection errors seen with CCSv4 and XDS100.
- "Error connecting to the target: Error 0x80000240/-151 Fatal Error during: Initialization, OCS"
With XDS100 systems, this can occur because the EEPROM was not programmed properly. Please check with your XDS100 manufacturer.
More details on checking the VID/PID for your EEPROM are at XDS100#Q:_How_can_I_check_if_the_VID.2FPID_for_the_EEPROM_are_programmed_correctly.3F. If incorrect VID/PIDs are seen, you need to contact your manufacturer, or get the VID/PID on EEPROM programmed properly. To reprogram the EEPROM, please see XDS100#Q:_What_should_the_USB_device.27s_UID_.28VID.2FPID.29_be.3F_2.
With CCS 4.1.2 and newer, a bug was fixed so that the XDS100 software could properly connect only to a XDS100 VID/PID values. In older versions of CCS, the XDS100 software would connect to any VID/PID value causing incompatibilties with non-XDS100 FTDI based devices plugged into the same PC. So with CCS 3.3, the connection to a incorrectly programmed EEPROM would still work, while with CCS 4.1.2 and higher it would fail. The solution is to reprogram the EEPROM with correct VID/PID as described above.
- "Error connecting to the target: Error 0x80002240/-151 Fatal Error during: Initialization, OCS, Control,"
This error could occur if the USB connector is connected to the wrong port on the board. The OMAP-L138 EVM board has more than one USB connector. Make sure that you are connected to the correct one. Please page 6, section 1.4 of this document. It contains a picture of the board - connect the USB cable to the V connector described on the page.
Leave a Comment
