查看: 1433|回复: 2

[求助] MCUXpress遇到GDB启动问题

[复制链接]

该用户从未签到

2

主题

3

帖子

0

新手上路

Rank: 1

积分
16
最后登录
2020-11-2
发表于 2020-10-28 12:17:03 | 显示全部楼层 |阅读模式
我这边解压NXH3670的demo,然后直接导入,编译能通过,但是debug的时候直接显示如下: JX%@E$TS_4LX$ROFS)LP@GA.png

说gdb启动问题   这个问题该怎么解决??


我知道答案 目前已有2人回答
回复

使用道具 举报

该用户从未签到

656

主题

6312

帖子

0

超级版主

Rank: 8Rank: 8

积分
19947
最后登录
2024-4-19
发表于 2020-10-29 10:53:29 | 显示全部楼层
run-Debug configurations 选择GDB ,把里面的选项 删掉。 然后再试试
回复 支持 反对

使用道具 举报

该用户从未签到

2

主题

3

帖子

0

新手上路

Rank: 1

积分
16
最后登录
2020-11-2
 楼主| 发表于 2020-10-29 11:29:42 | 显示全部楼层
小恩GG 发表于 2020-10-29 10:53
run-Debug configurations 选择GDB ,把里面的选项 删掉。 然后再试试

大佬GDB问题先放一下,有个重要的问题请大佬帮忙看一下:
我这边是直接导入官方工程demo,然后下载调试就直接出现下面的情况了:

WARNING: Target connection lost.
  SEGGER J-Link GDB Server V6.80d Command Line Version
  JLinkARM.dll V6.80d (DLL compiled Jun 26 2020 17:16:09)
  Command line: -nosilent -swoport 2332 -select USB -telnetport 2333 -singlerun -endian little -noir -speed auto -port 2331 -vd -device MKL27Z64xxx4 -if SWD -halt -reportuseraction
  -----GDB Server start settings-----
  GDBInit file:                  none
  GDB Server Listening port:     2331
  SWO raw output listening port: 2332
  Terminal I/O port:             2333
  Accept remote connection:      localhost only
  Generate logfile:              off
  Verify download:               on
  Init regs on start:            off
  Silent mode:                   off
  Single run mode:               on
  Target connection timeout:     0 ms
  ------J-Link related settings------
  J-Link Host interface:         USB
  J-Link script:                 none
  J-Link settings file:          none
  ------Target related settings------
  Target device:                 MKL27Z64xxx4
  Target interface:              SWD
  Target interface speed:        auto
  Target endian:                 little
  Connecting to J-Link...
  J-Link is connected.
  Device "MKL27Z64XXX4" selected.
  Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
  Hardware: V9.20
  Feature(s): RDI, GDB, FlashDL, FlashBP, JFlash, RDDI
  Checking target voltage...
  Target voltage: 3.30 V
  Listening on TCP/IP port 2331
  Connecting to target...
  ConfigTargetSettings() start
  ConfigTargetSettings() end
  InitTarget() start
  InitTarget()
  InitTarget() end
  Found SW-DP with ID 0x0BC11477
  Unknown DP version. Assuming DPv0
  AP map detection skipped. Manually configured AP map found.
  AP[0]: AHB-AP (IDR: Not set)
  AP[1]: MEM-AP (IDR: Not set)
  AP[0]: Core found
  AP[0]: AHB-AP ROM base: 0xF0002000
  CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
  Found Cortex-M0 r0p1, Little endian.
  FPUnit: 2 code (BP) slots and 0 literal slots
  CoreSight components:
  ROMTbl[0] @ F0002000
  ROMTbl[0][0]: F0000000, CID: B105900D, PID: 001BB932 MTB-M0+
  ROMTbl[0][1]: F0001000, CID: B105900D, PID: 0008E000 MTBDWT
  ROMTbl[0][2]: E00FF000, CID: B105100D, PID: 000BB4C0 ROM Table
  ROMTbl[1] @ E00FF000
  ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
  ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
  ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
  ConfigTargetSettings() start
  ConfigTargetSettings() end
  InitTarget() start
  InitTarget()
  InitTarget() end
  Found SW-DP with ID 0x0BC11477
  Unknown DP version. Assuming DPv0
  AP map detection skipped. Manually configured AP map found.
  AP[0]: AHB-AP (IDR: Not set)
  AP[1]: MEM-AP (IDR: Not set)
  AP[0]: Core found
  AP[0]: AHB-AP ROM base: 0xF0002000
  CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
  Found Cortex-M0 r0p1, Little endian.
  FPUnit: 2 code (BP) slots and 0 literal slots
  CoreSight components:
  ROMTbl[0] @ F0002000
  ROMTbl[0][0]: F0000000, CID: B105900D, PID: 001BB932 MTB-M0+
  ROMTbl[0][1]: F0001000, CID: B105900D, PID: 0008E000 MTBDWT
  ROMTbl[0][2]: E00FF000, CID: B105100D, PID: 000BB4C0 ROM Table
  ROMTbl[1] @ E00FF000
  ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
  ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
  ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
  Connected to target
  Waiting for GDB connection...Connected to 127.0.0.1
  Reading all registers
  Read 4 bytes @ address 0x000000E8 (Data = 0xB672B510)
  Read 2 bytes @ address 0x000000E8 (Data = 0xB510)
  Connected to 127.0.0.1
  Reading all registers
  Read 4 bytes @ address 0x000000E8 (Data = 0xB672B510)
  Read 2 bytes @ address 0x000000E8 (Data = 0xB510)
  Received monitor command: reset
  Reset: Halt core after reset via DEMCR.VC_CORERESET.
  Reset: Reset device via AIRCR.SYSRESETREQ.
  Resetting target
  Downloading 192 bytes @ address 0x00000C00 - Verified OK
  Downloading 20 bytes @ address 0x00000E00 - Verified OK
  Downloading 15968 bytes @ address 0x00001000 - Verified OK
  Downloading 15936 bytes @ address 0x00004E60 - Verified OK
  Downloading 15984 bytes @ address 0x00008CA0 - Verified OK
  Downloading 15984 bytes @ address 0x0000CB10 - Verify failed
  Downloading 16176 bytes @ address 0x00010980J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match
   - Verify failed
  Downloading 16352 bytes @ address 0x000148B0 - Verify failed
  Downloading 6324 bytes @ address 0x00018890 - Verify failed
  Downloading 1264 bytes @ address 0x0001A144 - Verify failed
  Writing register (PC = 0x    1130)
  Read 4 bytes @ address 0x00001130 (Data = 0xB672B510)
  Read 2 bytes @ address 0x000059B4 (Data = 0xB510)
  Reading 64 bytes @ address 0x00005980
  Read 2 bytes @ address 0x000059B6 (Data = 0xF008)
  Read 2 bytes @ address 0x000059B4 (Data = 0xB510)
  Read 2 bytes @ address 0x000059B6 (Data = 0xF008)
  Reading all registers
  Read 4 bytes @ address 0x00001130 (Data = 0xB672B510)
  Read 2 bytes @ address 0x000059B4 (Data = 0xB510)
  Received monitor command: semihosting enable
  Semi-hosting enabled (Handle on BKPT)
  Received monitor command: exec SetRestartOnClose=1
  Executed SetRestartOnClose=1
  Received monitor command: reset
  Reset: Halt core after reset via DEMCR.VC_CORERESET.
  Reset: Reset device via AIRCR.SYSRESETREQ.
  Resetting target
  Setting breakpoint @ address 0x000059B4, Size = 2, BPHandle = 0x0001
  Setting breakpoint @ address 0x000059B6, Size = 2, BPHandle = 0x0002
  Starting target CPU...
  Debugger requested to halt target...
  WARNING: CPU could not be halted
  Reading all registers
  WARNING: CPU could not be halted
  ERROR: Cannot read register 0 (R0) while CPU is running
  ERROR: Cannot read register 1 (R1) while CPU is running
  ERROR: Cannot read register 2 (R2) while CPU is running
  ERROR: Cannot read register 3 (R3) while CPU is running
  ERROR: Cannot read register 4 (R4) while CPU is running
  ERROR: Cannot read register 5 (R5) while CPU is running
  ERROR: Cannot read register 6 (R6) while CPU is running
  ERROR: Cannot read register 7 (R7) while CPU is running
  ERROR: Cannot read register 8 (R8) while CPU is running
  ERROR: Cannot read register 9 (R9) while CPU is running
  ERROR: Cannot read register 10 (R10) while CPU is running
  ERROR: Cannot read register 11 (R11) while CPU is running
  ERROR: Cannot read register 12 (R12) while CPU is running
  ERROR: Cannot read register 13 (R13) while CPU is running
  ERROR: Cannot read register 14 (R14) while CPU is running
  ERROR: Cannot read register 15 (R15) while CPU is running
  ERROR: Cannot read register 16 (XPSR) while CPU is running
  ERROR: Cannot read register 17 (MSP) while CPU is running
  ERROR: Cannot read register 18 (PSP) while CPU is running
  ERROR: Cannot read register 24 (PRIMASK) while CPU is running
  ERROR: Cannot read register 25 (BASEPRI) while CPU is running
  ERROR: Cannot read register 26 (FAULTMASK) while CPU is running
  ERROR: Cannot read register 27 (CONTROL) while CPU is running
  Removing breakpoint @ address 0x000059B4, Size = 2
  Removing breakpoint @ address 0x000059B6, Size = 2
  WARNING: Failed to read memory @ address 0xDEADBEEE
  WARNING: Failed to read memory @ address 0xDEADBEEE
  WARNING: CPU could not be halted
  ERROR: Cannot read register 18 (PSP) while CPU is running
  Reading register (PSP = 0xDEADBEEF)
  WARNING: Target connection lost.
Disassembly的窗口显示:
000000e8:               Failed to execute MI command:
                      -data-disassemble -s 232 -e 340 -- 3
                      Error message from debugger back end:
                      Cannot access memory at address 0xe8
000000e9:               Connection is shut down


显示的应该是无法连接0xe8,这可能是什么造成的??
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /4 下一条

Archiver|手机版|小黑屋|恩智浦技术社区

GMT+8, 2024-4-20 13:03 , Processed in 0.118604 second(s), 23 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表