你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

stm32cubeide debug 显示GDB closed TCP/IP connection

[复制链接]
Kong先生 提问时间:2019-8-26 10:21 /
使用stm32cubeide 编写一个简单的跑马灯程序,直接卡在了本地gdb调试那里
  1. SEGGER J-Link GDB Server V6.44c Command Line Version

  2. JLinkARM.dll V6.44c (DLL compiled Mar 22 2019 17:26:40)

  3. Command line: -port 2331 -s -device STM32F407ZG -endian little -speed 500 -vd
  4. -----GDB Server start settings-----
  5. GDBInit file:                  none
  6. GDB Server Listening port:     2331
  7. SWO raw output listening port: 2332
  8. Terminal I/O port:             2333
  9. Accept remote connection:      localhost only
  10. Generate logfile:              off
  11. Verify download:               on
  12. Init regs on start:            off
  13. Silent mode:                   off
  14. Single run mode:               on
  15. Target connection timeout:     0 ms
  16. ------J-Link related settings------
  17. J-Link Host interface:         USB
  18. J-Link script:                 none
  19. J-Link settings file:          none
  20. ------Target related settings------
  21. Target device:                 STM32F407ZG
  22. Target interface:              JTAG
  23. Target interface speed:        500kHz
  24. Target endian:                 little

  25. Connecting to J-Link...
  26. J-Link is connected.
  27. Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
  28. Hardware: V8.00
  29. S/N: 17935099
  30. Feature(s): RDI,FlashDL,FlashBP,JFlash
  31. Checking target voltage...
  32. Target voltage: 3.31 V
  33. Listening on TCP/IP port 2331
  34. Connecting to target...
  35. J-Link found 2 JTAG devices, Total IRLen = 9
  36. JTAG ID: 0x4BA00477 (Cortex-M4)
  37. Connected to target
  38. Waiting for GDB connection...Connected to 127.0.0.1
  39. Reading all registers
  40. Read 4 bytes @ address 0x08000878 (Data = 0x0201F000)
  41. Read 2 bytes @ address 0x08000878 (Data = 0xF000)
  42. Connected to 127.0.0.1
  43. Reading all registers
  44. Read 4 bytes @ address 0x08000878 (Data = 0x0201F000)
  45. Read 4 bytes @ address 0x080008D2 (Data = 0x0016BD70)
  46. Reading 64 bytes @ address 0x00000000
  47. GDB closed TCP/IP connection
复制代码


收藏 评论1 发布时间:2019-8-26 10:21

举报

1个回答
294479435@qq.co 回答时间:2019-8-29 14:51:36
J-Link found 2 JTAG devices, Total IRLen = 9
JTAG ID: 0x4BA00477 (Cortex-M4)
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x08000878 (Data = 0x0201F000)
Read 2 bytes @ address 0x08000878 (Data = 0xF000)
Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x08000878 (Data = 0x0201F000)
Read 4 bytes @ address 0x080008D2 (Data = 0x0016BD70)
Reading 64 bytes @ address 0x00000000
GDB closed TCP/IP connection
从这里看出,你的j_link找到两个设备,一个是通过TCP/IP连接的,一个是硬件连接,127.0.0.1看看这个IP是什么,连接了什么东西

评分

参与人数 1蝴蝶豆 +2 收起 理由
STMCU + 2

查看全部评分

所属标签

相似问题

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新和工艺
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版