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

eclipse使用JLink调试下载STM32G0失败

[复制链接]
huahuahnu 提问时间:2023-11-27 10:17 / 已解决
使用的eclipse版本是eclipse-embedcpp-2023-06-R-win32-x86_64,Jlink是6.84版本

工程是编译成功的,调试信息如下,PC = 0xFFFFFFFE错误,有小伙伴成功使用jlink调试的经验吗?求指导


  1. SEGGER J-Link GDB Server V6.84 Command Line Version

  2. JLinkARM.dll V6.84 (DLL compiled Sep  4 2020 16:12:50)

  3. Command line: -if swd -device STM32G070RB -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun -strict -timeout 0 -nogui
  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:            on
  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:                 STM32G070RB
  22. Target interface:              SWD
  23. Target interface speed:        1000kHz
  24. Target endian:                 little

  25. Connecting to J-Link...
  26. J-Link is connected.
  27. Firmware: J-Link V9 compiled May  7 2021 16:26:12
  28. Hardware: V9.20
  29. S/N: 59800899
  30. Feature(s): RDI, GDB, FlashDL, FlashBP, JFlash
  31. Checking target voltage...
  32. Target voltage: 3.28 V
  33. Listening on TCP/IP port 2331
  34. Connecting to target...
  35. Connected to target
  36. Waiting for GDB connection...Connected to 127.0.0.1
  37. Reading all registers
  38. Read 4 bytes @ address 0x00000000 (Data = 0x20000408)
  39. Read 2 bytes @ address 0x00000000 (Data = 0x0408)
  40. Received monitor command: speed 1000
  41. Target interface speed set to 1000 kHz
  42. Received monitor command: clrbp
  43. Received monitor command: reset
  44. Resetting target
  45. Received monitor command: halt
  46. Halting target CPU...
  47. ...Target halted (PC = 0x080000D0)
  48. Received monitor command: regs
  49. R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
  50. R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
  51. R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
  52. R12= FFFFFFFF, R13= 20000408, MSP= 20000408, PSP= FFFFFFFC
  53. R14(LR) = FFFFFFFF, R15(PC) = 080000D0
  54. XPSR F1000000, APSR F0000000, EPSR 01000000, IPSR 00000000
  55. CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
  56. Reading all registers
  57. Received monitor command: speed auto
  58. Select auto target interface speed (2000 kHz)
  59. Received monitor command: flash breakpoints 1
  60. Flash breakpoints enabled
  61. Downloading 184 bytes @ address 0x08000000 - Verified OK
  62. Downloading 1992 bytes @ address 0x080000B8 - Verified OK
  63. Downloading 4 bytes @ address 0x08000880 - Verified OK
  64. Downloading 4 bytes @ address 0x08000884 - Verified OK
  65. Downloading 4 bytes @ address 0x08000888 - Verified OK
  66. Comparing flash   [....................] Done.
  67. Erasing flash     [....................] Done.
  68. Programming flash [....................] Done.
  69. Writing register (PC = 0x 8000218)
  70. Read 4 bytes @ address 0x08000218 (Data = 0x4685480D)
  71. Read 2 bytes @ address 0x08000218 (Data = 0x480D)
  72. Reading 64 bytes @ address 0x08000400
  73. Read 2 bytes @ address 0x08000416 (Data = 0x2001)
  74. Read 2 bytes @ address 0x0800043A (Data = 0x20FA)
  75. Received monitor command: clrbp
  76. Received monitor command: reset
  77. Resetting target
  78. Received monitor command: halt
  79. Halting target CPU...
  80. ...Target halted (PC = 0x08000218)
  81. Read 2 bytes @ address 0x08000416 (Data = 0x2001)
  82. Received monitor command: regs
  83. R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
  84. R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
  85. R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
  86. R12= FFFFFFFF, R13= 20010000, MSP= 20010000, PSP= FFFFFFFC
  87. R14(LR) = FFFFFFFF, R15(PC) = 08000218
  88. XPSR F1000000, APSR F0000000, EPSR 01000000, IPSR 00000000
  89. CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
  90. Reading all registers
  91. Setting breakpoint @ address 0x08000416, Size = 2, BPHandle = 0x0001
  92. Setting breakpoint @ address 0x0800043A, Size = 2, BPHandle = 0x0002
  93. Starting target CPU...
  94. ...Target halted (DBGRQ, PC = 0xFFFFFFFE)
  95. Reading all registers
  96. Removing breakpoint @ address 0x08000416, Size = 2
  97. Removing breakpoint @ address 0x0800043A, Size = 2
  98. WARNING: Failed to read memory @ address 0xFFFFFFFE
  99. WARNING: Failed to read memory @ address 0x2000FFFC
  100. Reading 64 bytes @ address 0x2000FFC0
  101. WARNING: Failed to read memory @ address 0x2000FFC0
  102. WARNING: Failed to read memory @ address 0x2000FFF8
  103. Reading 64 bytes @ address 0x2000FFC0
  104. WARNING: Failed to read memory @ address 0x2000FFC0
  105. WARNING: Failed to read memory @ address 0x2000FFF8
复制代码


参照The SEGGER J-Link debugging plug-in | Eclipse Embedded CDT (C/C++ Development Tools)™ (eclipse-embed-cdt.github.io) 配置了调试环境

具体配置如图片所示







err1.png
1.png
2.png
3.png
4.png
5.png
6.png
7.png
收藏 评论2 发布时间:2023-11-27 10:17

举报

2个回答
huahuahnu 回答时间:2023-11-30 09:26:28

链接脚本的问题,已解决

xmshao 回答时间:2023-12-27 11:56:04

OK

谢谢反馈~!

所属标签

相似问题

官网相关资源

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32Cube扩展软件包
意法半导体边缘AI套件
ST - 理想汽车豪华SUV案例
ST意法半导体智能家居案例
STM32 ARM Cortex 32位微控制器
关注我们
st-img 微信公众号
st-img 手机版