TI中文支持网
TI专业的中文技术问题搜集分享网站

MSPM0L1305: KEIL5 IDE可以下载但不能调试运行

Part Number:MSPM0L1305Other Parts Discussed in Thread: SYSCONFIG

hi all,

我使用KEIL5 IDE 创建开发环境, 在MSP0L1306的demo板子上可以下载并调试成功。但是我们自己的板子使用的MCU是MSPM0L305,24PIN。使用keil5可以成功下载程序,但是无法调试运行。log如下:

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 Dec 13 2022 11:14:50
Hardware: V9.20
S/N : 25952333
Feature(s) : RDI, GDB, FlashDL, FlashBP, JFlash

* JLink Info: Found SW-DP with ID 0x6BA02477
* JLink Info: DPv0 detected
* 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.287V
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: 500 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

Yale Li:

https://e2echina.ti.com/support/microcontrollers/other/f/other-microcontrollers-forum/757206/mspm0l1305-can-not-debug-by-keil5

我们在这个链接中讨论。

,

fanok:

1、我们用的MCU型号是MSPM0L1305TRGER。PA18引脚我们想复用为AD检测电源电压,现在的问题是PA18有BSL_invoke功能,作为AD检测接到Battery上就被拉高了导致进入BSL模式,程序无法运行,那么PA18如何复用为检测高电平的AD功能呢?

 

2、根据TI的文档说明,PA18的BSL_invoke功能可以被禁用,使用sysconfig配置为disable状态,用keil IDE编译烧写运行 并不起作用。Keil IDE并没有把BSL_CONFIG和BCR_CONFIG写入flash的nomain区域。参考“flashctl_nonmain_memory_write”例程,通过程序写入BSL_CONFIG和BCR_CONFIG配置参数到nomain区域,对于PA18被拉高的情况根本没有机会运行程序写入这两个配置来禁止GPIO BSL_Invoke功能,这种情况软件是否能够禁止GPIO BSL_Invoke功能?

 

3、我用“flashctl_nonmain_memory_write”例程写flash的nomain区域,禁止GPIO BSL invoke功能,Flash被锁死了 如何解锁?

,

Yale Li:

好的,我跟进过去了:

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

赞(0)
未经允许不得转载:TI中文支持网 » MSPM0L1305: KEIL5 IDE可以下载但不能调试运行
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1