Board XML files - Creation

From Texas Instruments Wiki
Jump to: navigation, search

Board XML files are used to describe a particular board configuration file, which may be used for configuring Code Composer Studio for a particular board. Faraday EVM or 6416 DSK are examples of physical board that could be described using board.xml file.

The easiest way of creating a board xml file is to use CCS Setup Editor to construct most of file contents.

Start CCS, select Target->New Target Configuration. Specify a name for your configuration file. Once setup editor file is opened, click on Advanced Tab and construct JTAG layout using New and Add buttons. Make any necessary adjustments to GEL intialization scripts. Open Target Configuration view (from View menu), right click on newly added file and select properties. Note the path location to your file. Open windows explorer and navigate to location of your file, open it in your favourite text editor.

The contents of the file should look like something like this(e.g. below is for 6416 DSK):


  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <configurations XML_version="1.2" id="configurations_0">
  <configuration XML_version="1.2" id="Texas Instruments XDS560 PCI Emulator_0">
       <instance XML_version="1.2" desc="Texas Instruments XDS560 PCI Emulator_0" href="connections\TIXDS560_Connection.xml" id="Texas Instruments XDS560 PCI Emulator_0" xml="TIXDS560_Connection.xml" xmlpath="connections"/>
       <connection XML_version="1.2" id="Texas Instruments XDS560 PCI Emulator_0">
           <instance XML_version="1.2" href="drivers\tixds560c64x_11.xml" id="drivers" xml="tixds560c64x_11.xml" xmlpath="drivers"/>
           <platform XML_version="1.2" id="platform_0">
               <instance XML_version="1.2" desc="TMS320C6416_0" href="Devices\c6416.xml" id="TMS320C6416_0" xml="c6416.xml" xmlpath="Devices"/>
           </platform>
       </connection>
   </configuration>
  </configurations>

We need to convert this information into a board .xml file. As a first step we want to save this file as YouBoardName.xml, then delete all lines above <platform and below </plaform lines, except the very first line. In our case this should look like:


  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <platform XML_version="1.2" id="platform_0">
       <instance XML_version="1.2" desc="TMS320C6416_0" href="Devices\c6416.xml" id="TMS320C6416_0" xml="c6416.xml" xmlpath="Devices"/>
  </platform>

Now we need to add board information to our file.


  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <board id="6416DSK" XML_version="1" desc="C6416 DSK" description="C6416 DSK">
    <platform XML_version="1.2" id="platform_0">
       <instance XML_version="1.2" desc="TMS320C6416_0" href="Devices\c6416.xml" id="TMS320C6416_0" xml="c6416.xml" xmlpath="Devices"/>
    </platform>
  </board>

Last step is to copy our newly created board.xml file to {CCSInstallRoot}\ccsv4\common\targetdb\boards directory and restart CCS.