主题中讨论的其他器件:MSP-FET、
我们希望使用 MSP-FET 编程器确认 SLAU320AG 的以下信息是否可以解决 MSP430FR2110的锁定调试问题(我们希望擦除锁定和固件):
* -----/|-------------------------------------------------------------------- * * / |__ * * /_ / MSP Flasher v1.3.20 * * | / * * -----|/-------------------------------------------------------------------- * * * Evaluating triggers... * Invalid argument for -e trigger. Default used (ERASE_ALL). * Checking for available FET debuggers: * Found USB FET @ COM11 <- Selected * Initializing interface @ COM11...done * Checking firmware compatibility: * FET firmware is up to date. * Reading FW version...done * Setting VCC to 3000 mV...done * Accessing device... # Exit: 16 # ERROR: The Debug Interface to the device has been secured * Powering down...done * Disconnecting from device...done
如果是这样、我们将使用上述代码与运行测试引脚和 REST 引脚的主机连接到器件、以进行 JMB 连接。
代码流是否遵循上述指南? (基于针对 MSP430 JTAG 邮箱 SLAA763的 SimpleLink 主机给出的代码示例)
int unlockDevice (void) { // restart device ClrTST(); ClrRST(); ConnectJTAG(); // Apply again 4wire/SBW entry Sequence EntrySequences_RstLow_SBW(); //Restart JTAG – Keep RST low device do not start ResetTAP(); // reset TAP state machine -> Run-Test/Idle // shift in JTAG mailbox exchange request IR_Shift(IR_JMB_EXCHANGE); DR_Shift16(0xA55A); DR_Shift16(0x1A1A); StopJtag(); // wait until LPM4 MsDelay(100); // connect to device again, apply entry sequence ConnectJTAG(); // Apply again 4wire/SBW entry Sequence. EntrySequences_RstHigh_SBW(); // reset TAP state machine -> Run-Test/Idle ResetTAP(); if(SyncJtag_AssertPor() != SC_ERR_NONE) { return(SC_ERR_GENERIC); } }
尽管我们可以获得器件 ID、但上述内容似乎并不会擦除/解锁 JTAG、if (SyncJtag_AssertPor ()!= SC_ERR_NONE)始终返回等待同步的错误。