主题中讨论的其他器件: SEGGER
你好
我正在使用 MSPM0L1306的生产版本、使用固件刷写器件时非常不稳定。 我正在将 J-Link 与 J-Flash/臭氧一起使用。 对空器件进行编程是正常的、但固件运行后、如果没有首先完全擦除芯片、就无法覆盖固件。 如果在上传新固件之前未执行完整的芯片擦除、则上传将失败、并且器件 有时永久无法访问。 之后无法建立通信、恢复的唯一方法是直接替换芯片。
这是我在尝试刷写已有固件的器件时遇到的错误:
Device "MSPM0L1306" selected.
Found SW-DP with ID 0x6BA02477
DPIDR: 0x6BA02477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x84770001)
AP[1]: MEM-AP (IDR: 0x002E0001)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xF0000000
CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p1, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ F0000000
[0][0]: E00FF000 CID B105100D PID 000BB4C0 ROM Table
ROMTbl[1] @ E00FF000
[1][0]: E000E000 CID B105E00D PID 000BB008 SCS
[1][1]: E0001000 CID B105E00D PID 000BB00A DWT
[1][2]: E0002000 CID B105E00D PID 000BB00B FPB
Connected to target device.
ResetTarget() start
DAP initialized successfully.
ResetTarget() end - Took 5.01ms
Elf.GetBaseAddr(); // returns 0x0
Target.ReadU32 (0x00000000); // returns 0x4, data is 0x20000490
Target.SetReg ("SP", 0x20000490);
Target.ReadU32 (0x00000004); // returns 0x4, data is 0x18D
Target.SetReg ("PC", 0x18D);
J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (32768 bytes)
J-Link: Flash download: Total: 0.494s (Prepare: 0.035s, Compare: 0.068s, Erase: 0.152s, Program & Verify: 0.220s, Restore: 0.016s)
J-Link: Flash download: Program & Verify speed: 145 KB/s
Elf.GetBaseAddr(); // returns 0x0
Target.ReadU32 (0x00000000); // returns 0x4, data is 0x20000B48
Target.SetReg ("SP", 0x20000B48);
Target.ReadU32 (0x00000004); // returns 0x4, data is 0x1B1
Target.SetReg ("PC", 0x1B1);
Programming failed @ address 0x000018D4 (block verification error)
这是器件永久无法访问后的输出:
Connecting to target via SWD Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 CoreSight SoC-400 or earlier Scanning AP map to find all available APs AP[0]: Stopped AP scan as end of AP map has been reached Iterating through AP map to find AHB-AP to use Attach to CPU failed. Executing connect under reset. DPIDR: 0x6BA02477 CoreSight SoC-400 or earlier Scanning AP map to find all available APs AP[0]: Stopped AP scan as end of AP map has been reached Iterating through AP map to find AHB-AP to use Could not find core in Coresight setup DPIDR: 0x6BA02477 CoreSight SoC-400 or earlier Scanning AP map to find all available APs AP[0]: Stopped AP scan as end of AP map has been reached Iterating through AP map to find AHB-AP to use Could not find core in Coresight setup Cannot connect to target.
这是一个已知问题吗?


