Part Number: CCSTUDIO-MSP
器件型号:CCSTUDIO-MSP
主题中讨论的其他器件: UNIFLASH
默认情况下,CCS 将根据器件和调试器自动检测 JTAG 接口。但是,您可能需要将接口类型手动更改为 2 线 SBW 或 4 线 JTAG。目前,CCS 不允许您在不对驱动程序进行一些手动更改的情况下更改 JTAG 接口。以下是有关如何使用 CCS v10 执行此操作的说明。
步骤 1.确保 CCS 已关闭,然后在文本编辑器中打开以下文件(假设位于默认安装位置)。
C:\ti\ccs<此处为版本>\ccs\ccs_base\common\targetdb\drivers\msp430_emu.xml
步骤 2.根据您的特定器件所属系列为您的器件更新“msp430_emu.xml”。对于每个系列,您将看到多个“isa”部分,因此应根据您的器件在相应部分中进行更改。
原始“msp430_emu.xml”
<?xml version="1.0"?>
<drivers id="MSP430">
<isa Type="MSP430" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" Value="MSP430" id="interface" />
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1">
<choice Name="Fast" value="0"/>
<choice Name="Medium" value="1"/>
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="MSP430L092" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" Value="MSP430" id="interface" />
<property Name="Emulation Type" desc="Emulation Types" Type="choicelist" id="emuType" Value="0">
<choice value="Normal"/>
<choice value="ROM"/>
</property>
<property Type="hiddenfield" id="NormalActivationCode" Value="0xA55AA55A"></property>
<property Type="hiddenfield" id="ROMActivationCode" Value="0x5AA55AA5"></property>
<property Type="hiddenfield" id="supportExtMemDL" Value="true"></property>
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0">
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="MSP430C09x" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" Value="MSP430" id="interface" />
<property Type="stringfield" id="password" Name="Password: (HEX format)"></property>
<property Type="hiddenfield" id="passwordMinLength" Value="8"></property>
<property Type="hiddenfield" id="passwordMaxLength" Value="8"></property>
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0">
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="MSP430FR57xx" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" id="supportLPMx5" Value="true"></property>
<property Type="stringfield" id="password" Name="Password: (HEX format)"></property>
<property Type="hiddenfield" id="passwordMinLength" Value="0"></property>
<property Type="hiddenfield" id="passwordMaxLength" Value="120"></property>
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1">
<choice Name="Fast" value="0"/>
<choice Name="Medium" value="1"/>
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="MSP430FR59xx" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" id="supportLPMx5" Value="true"></property>
<property Type="stringfield" id="password" Name="Password: (HEX format)"></property>
<property Type="hiddenfield" id="passwordMinLength" Value="0"></property>
<property Type="hiddenfield" id="passwordMaxLength" Value="120"></property>
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1">
<choice Name="Fast" value="0"/>
<choice Name="Medium" value="1"/>
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="MSP430F1xx_SLOW" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" Value="MSP430" id="interface" />
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0">
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="RF430FRL15X" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" Value="MSP430" id="interface" />
<property Name="Emulation Type" desc="Emulation Types" Type="choicelist" id="emuType" Value="0">
<choice value="Normal"/>
<choice value="ROM"/>
</property>
<property Type="hiddenfield" id="NormalActivationCode" Value="0xA55AA55A"></property>
<property Type="hiddenfield" id="ROMActivationCode" Value="0x5AA55AA5"></property>
<property Type="hiddenfield" id="supportExtMemDL" Value="true"></property>
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0">
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="CORTEX_M4_432" ProcID="0x75803800">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" Value="MSP430" id="interface" />
<property Type="hiddenfield" Value="true" id="haltOnConnectByDefault" />
<property Type="hiddenfield" Value="true" id="supportsNonIntrusiveConnect" />
<property Type="hiddenfield" Value="true" id="disableInternalFlashManager" />
<property Type="hiddenfield" Value="true" id="disableArmAdvancedFeatures" />
<property Type="hiddenfield" Value="true" id="disableSoftwareBreakpoint" />
<property Type="hiddenfield" Value="true" id="disableSoftLaunch" />
<property Type="hiddenfield" Value="true" id="msp432fet" />
<property Name="JTAG/SWD (Auto-detect)" desc="JTAG/SWD (Auto-detect)" Type="choicelist" id="interfaceSpeed" Value="1">
<choice Name="Fast" value="0"/>
<choice Name="Medium" value="1"/>
<choice Name="Slow" value="2"/>
</property>
<property Type="hiddenfield" Value="true" id="Make Device Secure" />
</driver>
</isa>
<isa Type="CS_DAP" ProcID="0x38000405">
<driver file="NONE">
<connectionType Type="MSP430"/>
</driver>
</isa>
</drivers>
添加的接口类型属性
<property Name="Interface Type" desc="Interface Type" Type="choicelist" id="interfaceType" Value="3">
<choice Name="4 Wire JTAG protocol used" value="0"/>
<choice Name="2 Wire (Spy-bi-wire) JTAG protocol used" value="1"/>
<choice Name="2 Wire Devices accessed by 4wire JTAG protocol" value="2"/>
<choice Name="Protocol will be detected automatically" value="3"/>
</property>
修改后的“msp430_emu.xml”
<?xml version="1.0"?>
<drivers id="MSP430">
<isa Type="MSP430" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Name="Interface Type" desc="Interface Type" Type="choicelist" id="interfaceType" Value="3">
<choice Name="4 Wire JTAG protocol used" value="0"/>
<choice Name="2 Wire (Spy-bi-wire) JTAG protocol used" value="1"/>
<choice Name="2 Wire Devices accessed by 4wire JTAG protocol" value="2"/>
<choice Name="Protocol will be detected automatically" value="3"/>
</property>
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1">
<choice Name="Fast" value="0"/>
<choice Name="Medium" value="1"/>
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="MSP430L092" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" Value="MSP430" id="interface" />
<property Name="Emulation Type" desc="Emulation Types" Type="choicelist" id="emuType" Value="0">
<choice value="Normal"/>
<choice value="ROM"/>
</property>
<property Type="hiddenfield" id="NormalActivationCode" Value="0xA55AA55A"></property>
<property Type="hiddenfield" id="ROMActivationCode" Value="0x5AA55AA5"></property>
<property Type="hiddenfield" id="supportExtMemDL" Value="true"></property>
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0">
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="MSP430C09x" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" Value="MSP430" id="interface" />
<property Type="stringfield" id="password" Name="Password: (HEX format)"></property>
<property Type="hiddenfield" id="passwordMinLength" Value="8"></property>
<property Type="hiddenfield" id="passwordMaxLength" Value="8"></property>
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0">
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="MSP430FR57xx" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" id="supportLPMx5" Value="true"></property>
<property Type="stringfield" id="password" Name="Password: (HEX format)"></property>
<property Type="hiddenfield" id="passwordMinLength" Value="0"></property>
<property Type="hiddenfield" id="passwordMaxLength" Value="120"></property>
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1">
<choice Name="Fast" value="0"/>
<choice Name="Medium" value="1"/>
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="MSP430FR59xx" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" id="supportLPMx5" Value="true"></property>
<property Type="stringfield" id="password" Name="Password: (HEX format)"></property>
<property Type="hiddenfield" id="passwordMinLength" Value="0"></property>
<property Type="hiddenfield" id="passwordMaxLength" Value="120"></property>
<property Name="Interface Type" desc="Interface Type" Type="choicelist" id="interfaceType" Value="3">
<choice Name="4 Wire JTAG protocol used" value="0"/>
<choice Name="2 Wire (Spy-bi-wire) JTAG protocol used" value="1"/>
<choice Name="2 Wire Devices accessed by 4wire JTAG protocol" value="2"/>
<choice Name="Protocol will be detected automatically" value="3"/>
</property>
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="1">
<choice Name="Fast" value="0"/>
<choice Name="Medium" value="1"/>
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="MSP430F1xx_SLOW" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" Value="MSP430" id="interface" />
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0">
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="RF430FRL15X" ProcID="0x6b800000">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" Value="MSP430" id="interface" />
<property Name="Emulation Type" desc="Emulation Types" Type="choicelist" id="emuType" Value="0">
<choice value="Normal"/>
<choice value="ROM"/>
</property>
<property Type="hiddenfield" id="NormalActivationCode" Value="0xA55AA55A"></property>
<property Type="hiddenfield" id="ROMActivationCode" Value="0x5AA55AA5"></property>
<property Type="hiddenfield" id="supportExtMemDL" Value="true"></property>
<property Name="JTAG/SBW Speed" desc="JTAG/SBW Speed" Type="choicelist" id="interfaceSpeed" Value="0">
<choice Name="Slow" value="2"/>
</property>
</driver>
</isa>
<isa Type="CORTEX_M4_432" ProcID="0x75803800">
<driver file="../../DebugServer/drivers/msp430_emu.dvr">
<connectionType Type="MSP430"/>
<property Type="hiddenfield" Value="msp430.dll" id="dllName" />
<property Type="hiddenfield" Value="MSP430" id="interface" />
<property Type="hiddenfield" Value="true" id="haltOnConnectByDefault" />
<property Type="hiddenfield" Value="true" id="supportsNonIntrusiveConnect" />
<property Type="hiddenfield" Value="true" id="disableInternalFlashManager" />
<property Type="hiddenfield" Value="true" id="disableArmAdvancedFeatures" />
<property Type="hiddenfield" Value="true" id="disableSoftwareBreakpoint" />
<property Type="hiddenfield" Value="true" id="disableSoftLaunch" />
<property Type="hiddenfield" Value="true" id="msp432fet" />
<property Name="JTAG/SWD (Auto-detect)" desc="JTAG/SWD (Auto-detect)" Type="choicelist" id="interfaceSpeed" Value="1">
<choice Name="Fast" value="0"/>
<choice Name="Medium" value="1"/>
<choice Name="Slow" value="2"/>
</property>
<property Type="hiddenfield" Value="true" id="Make Device Secure" />
</driver>
</isa>
<isa Type="CS_DAP" ProcID="0x38000405">
<driver file="NONE">
<connectionType Type="MSP430"/>
</driver>
</isa>
</drivers>
步骤 3.保存该文件,然后重新打开 CCS。
步骤 4.通过双击工程文件夹,在 CCS Project Explorer 中选择并展开 CCS 工程。
步骤 5.双击“targetConfigs”文件夹将其展开。
步骤 6.双击以“.ccxml”结尾的目标配置文件将其打开,然后点击“Advanced”选项卡。
步骤 7.点击“MSP430”CPU。
第 8 步:在“CPU Properties”下,将“Interface Type”更改为“Protocol will be detected automatically”以外的其他内容。请注意,某些选项可能会因您的器件而异。
步骤 9(可选):如有必要,请调整通信速度以确保可靠通信。
步骤 10:点击“Save”以保存对目标配置的更改。
现在,假设硬件连接和 JTAG 电路都正确,您可以使用指定的接口对器件进行编程或调试。
注意:通过修改 UniFlash 位于以下位置的驱动程序,可以对 UniFlash 进行相同的更改。
C:\ti\uniflash_<此处为版本>\deskdb\content\TICloudAgent\win\ccs_base\common\targetdb\drivers\msp430_emu.xml