This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSPM0L1305:无法通过 Keil5进行调试

Guru**** 681490 points
Other Parts Discussed in Thread: MSPM0L1305, SYSCONFIG
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1244200/mspm0l1305-can-not-debug-by-keil5

器件型号:MSPM0L1305
主题中讨论的其他器件: SysConfig

大家好、

我为我们的客户提出这个问题:

我的定制板 MCU 是 MSPM0L1305、我使用 SKD (mspm0_SDK_1_00_00_04)示例创建我的 Keil 工程。 现在可以将项目下载到闪存中、但无法运行、Keil 日志如下所示:

Set JLink Project File to "C:\ti\L42P-APP\keil\JLinkSettings.ini"* JLink Info: Device "MSPM0L1305" selected.
 
JLink info:
------------
DLL: V7.82 , compiled Oct 13 2022 13:32:51
Firmware: J-Link V9 compiled May  7 2021 16:26:12
Hardware: V9.30
S/N : 59300616 
Feature(s) : RDI, FlashBP, FlashDL, JFlash, GDB 
 
* JLink Info: Found SW-DP with ID 0x6BA02477
* JLink Info: DPIDR: 0x6BA02477
* JLink Info: CoreSight SoC-400 or earlier
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[5]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x84770001)
* JLink Info: AP[1]: MEM-AP (IDR: 0x002E0001)
* JLink Info: AP[2]: JTAG-AP (IDR: 0x002E0000)
* JLink Info: AP[3]: MEM-AP (IDR: 0x002E0003)
* JLink Info: AP[4]: MEM-AP (IDR: 0x002E0002)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xF0000000
* JLink Info: CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M0 r0p1, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ F0000000
* JLink Info: [0][0]: E00FF000 CID B105100D PID 000BB4C0 ROM Table
* JLink Info: ROMTbl[1] @ E00FF000
* JLink Info: [1][0]: E000E000 CID B105E00D PID 000BB008 SCS
* JLink Info: [1][1]: E0001000 CID B105E00D PID 000BB00A DWT
* JLink Info: [1][2]: E0002000 CID B105E00D PID 000BB00B FPB
ROMTableAddr = 0xF0000000
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
 
Target info:
------------
Device: MSPM0L1305
VTarget = 3.309V
State of Pins: TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 0
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints:          2
JTAG speed: 4000 kHz
 
Load "C:\\ti\\L42P-APP\\keil\\Objects\\L42P_APP_FW.axf" 
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
*** error 122: AGDI: memory read failed (0x01000020)
* JLink Info: CPU could not be halted
***JLink Error: Cannot read register 15 (R15) while CPU is running
***JLink Error: Cannot read register 16 (XPSR) while CPU is running
***JLink Error: Cannot read register 0 (R0) while CPU is running
***JLink Error: Cannot read register 1 (R1) while CPU is running
***JLink Error: Cannot read register 2 (R2) while CPU is running
***JLink Error: Cannot read register 3 (R3) while CPU is running
***JLink Error: Cannot read register 4 (R4) while CPU is running
***JLink Error: Cannot read register 5 (R5) while CPU is running
***JLink Error: Cannot read register 6 (R6) while CPU is running
***JLink Error: Cannot read register 7 (R7) while CPU is running
***JLink Error: Cannot read register 8 (R8) while CPU is running
***JLink Error: Cannot read register 9 (R9) while CPU is running
***JLink Error: Cannot read register 10 (R10) while CPU is running
***JLink Error: Cannot read register 11 (R11) while CPU is running
***JLink Error: Cannot read register 12 (R12) while CPU is running
***JLink Error: Cannot read register 13 (R13) while CPU is running
***JLink Error: Cannot read register 14 (R14) while CPU is running
***JLink Error: Cannot read register 15 (R15) while CPU is running
***JLink Error: Cannot read register 16 (XPSR) while CPU is running
***JLink Error: Cannot read register 17 (MSP) while CPU is running
***JLink Error: Cannot read register 18 (PSP) while CPU is running
***JLink Error: Cannot read register 20 (CFBP) while CPU is running


和 Keil 项目选项如下所示:

--

谢谢、此致

耶鲁

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    你好,耶鲁,

    剂量客户如何连接 PA18? 并将其用作 BSL 触发函数的总剂量是多少? 是否有人修改了非主闪存?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Gary、

    感谢您的答复。

    您的判断是正确的。 客户 将 PA18引脚多路复用用于 AD。 他们 将该引脚连接到电池、因此它被上拉、MCU 运行到 BSL 模式。

    他们还有一个问题:

    1. 如何将 PA18多路复用为检测高电平电压的 AD 功能?

    2. 根据 TI 文档可以禁用 PA18的 BSL_invoke 功能、即可以使用 SysConfig 将其配置为已禁用。 但它不能与 Keil IDE 配合使用。 Keil IDE 不会将 BSL_CONFIG 和 BCR_CONFIG 写入闪存的非主区域。  请参阅"flashctl_nonmain_memory_write"例程、通过程序将 BSL_CONFIG 和 BCR_CONFIG 配置参数写入非主区域、当 PA18被拉至高电平时、没有机会运行程序来写入这两个配置以禁用 GPIO BSL_invoke 函数。 在这种情况下、软件是否可以禁用 GPIO BSL_invoke 函数?

    3. 客户使用"flashctl_nonmain_memory_write"例程写入闪存的非 MAIN 区域以禁用 GPIO BSL 调用函数、并且闪存被锁定。 如何解锁?

    --

    谢谢、此致

    耶鲁

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    1.  如何将 PA18多路复用为检测高电平电压的 AD 函数[/引号]

    他们可以针对可参阅本文档第5.3节的步骤修改非主闪存

    https://www.ti.com/lit/an/slaaec9/slaaec9.pdf