公告:魔扣目录网为广大站长提供免费收录网站服务,提交前请做好本站友链:【 网站目录:https://www.morko.net 】, 免友链快审服务(50元/站),

点击这里在线咨询客服
新站提交
  • 网站:51998
  • 待审:31
  • 小程序:12
  • 文章:1030137
  • 会员:747

本文介绍了在地址0xXXXXXX&QOOT;处中断,没有可用的调试信息,或在程序代码之外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

配置:

使用Ncore-L476RG。使用GNU arm Eclipse。我已经从STM32CubeMX生成了一个极简主义代码。我已在板载ST-Link中刷新了J-Link驱动程序。

我一直试图为我的代码运行调试器,但我的程序计数器没有设置为main()。相反,它无法读取某个内存地址。错误”在地址”0xXXXXXXXX”中断,没有可用的调试信息,或者在程序代码之外。”出现。

我已经包括了屏幕截图和调试器日志,我们可以在其中看到错误。

请帮助

图片:
https://ibb.co/bBRHxnhttps://ibb.co/mGDKA7https://ibb.co/mE4gOShttps://ibb.co/fh5AHnhttps://ibb.co/jNFMOShttps://ibb.co/gpJaiShttps://ibb.co/jgaMOS

日志:

SEGGER J-Link GDB Server V6.30f Command Line Version



JLinkARM.dll V6.30f (DLL compiled Mar  2 2018 17:29:18)



Command line: -if swd -device STM32L476RG -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun -strict -timeout 0 -nogui


-----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:            on  
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:                 STM32L476RG  
Target interface:              SWD  
Target interface speed:        1000kHz  
Target endian:                 little  

Connecting to J-Link...  
J-Link is connected.  
Firmware: J-Link STLink V21 compiled Jun 26 2017 10:35:16  
Hardware: V1.00  
S/N: 770526094  
Checking target voltage...  
Target voltage: 3.30 V  
Listening on TCP/IP port 2331  
Connecting to target...  
WARNING: T-bit of XPSR is 0 but should be 1. Changed to 1.  
Connected to target  
Waiting for GDB connection...Connected to 127.0.0.1  
Reading all registers  
Read 4 bytes @ address 0x00000000 (Data = 0x4C05B510)  
Read 2 bytes @ address 0x00000000 (Data = 0xB510)  
Received monitor command: speed 1000  
Target interface speed set to 1000 kHz  
Received monitor command: clrbp  
Received monitor command: reset  
Resetting target  
Received monitor command: halt  
Halting target CPU...  
...Target halted (PC = 0xB9337822)  
Received monitor command: regs  
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000  
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000  
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000  
R12= 00000000, R13= 4C05B510, MSP= 4C05B510, PSP= 00000000  
R14(LR) = FFFFFFFF, R15(PC) = B9337822  
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000  
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00  
Reading all registers  
Received monitor command: speed auto  
Select auto target interface speed (2000 kHz)  
Received monitor command: flash breakpoints 1  
Flash breakpoints enabled  
Received monitor command: semihosting enable  
Semi-hosting enabled (Handle on BKPT)  
Received monitor command: semihosting IOClient 1  
Semihosting I/O set to TELNET Client  
Received monitor command: SWO DisableTarget 0xFFFFFFFF  
SWO disabled successfully.  
Received monitor command: SWO EnableTarget 0 0 0x1 0  
SWO enabled successfully.  
Read 4 bytes @ address 0xB9337822 (Data = 0x00000000)  
Read 2 bytes @ address 0xB9337822 (Data = 0x0000)  
Downloading 88 bytes @ address 0x08000000 - Verified OK  
Downloading 8 bytes @ address 0x08000058 - Verified OK  
Downloading 8 bytes @ address 0x08000060 - Verified OK  
Comparing flash   [....................] Done.  
Verifying flash   [....................] Done.  
Writing register (PC = 0x08000000)  
Read 4 bytes @ address 0x08000000 (Data = 0x4C05B510)  
Read 2 bytes @ address 0x08000000 (Data = 0xB510)  
Received monitor command: clrbp  
Received monitor command: reset  
Resetting target  
Received monitor command: halt  
Halting target CPU...  
...Target halted (PC = 0xB9337822)  
Received monitor command: regs  
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000  
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000  
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000  
R12= 00000000, R13= 4C05B510, MSP= 4C05B510, PSP= 00000000  
R14(LR) = FFFFFFFF, R15(PC) = B9337822  
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000  
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00  
Reading all registers  
Starting target CPU...  
WARNING: T-bit of XPSR is 0 but should be 1. Changed to 1.  
...Target halted (DBGRQ, PC = 0xF3AF4804)  
Reading all registers  
WARNING: Failed to read memory @ address 0xF3AF4804  
WARNING: Failed to read memory @ address 0x4C05B50C  
Reading 64 bytes @ address 0x4C05B500  
WARNING: Failed to read memory @ address 0x4C05B500  
WARNING: Failed to read memory @ address 0x4C05B508  
Reading 64 bytes @ address 0x4C05B500  
WARNING: Failed to read memory @ address 0x4C05B500  
WARNING: Failed to read memory @ address 0x4C05B508  
Reading 64 bytes @ address 0xF3AF4800  
WARNING: Failed to read memory @ address 0xF3AF4800  
WARNING: Failed to read memory @ address 0xF3AF4804  
Reading 64 bytes @ address 0xF3AF4800  
WARNING: Failed to read memory @ address 0xF3AF4800  
WARNING: Failed to read memory @ address 0xF3AF4804  
Reading 64 bytes @ address 0xF3AF4800  
WARNING: Failed to read memory @ address 0xF3AF4800  
WARNING: Failed to read memory @ address 0xF3AF4806  

推荐答案

您的问题可能是由于缺少启动文件所致。在编译控制台中查看此消息:警告:找不到条目符号Reset_Handler&Quot;。如果您找到了,请参考另一个答案:https://stackoverflow.com/a/68381702/3567351。

这篇关于在地址0xXXXXXX&QOOT;处中断,没有可用的调试信息,或在程序代码之外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,

分享到:
标签:amp 中断 信息 可用 地址 程序代码 调试
用户无头像

网友整理

注册时间:

网站:5 个   小程序:0 个  文章:12 篇

  • 51998

    网站

  • 12

    小程序

  • 1030137

    文章

  • 747

    会员

赶快注册账号,推广您的网站吧!
最新入驻小程序

数独大挑战2018-06-03

数独一种数学游戏,玩家需要根据9

答题星2018-06-03

您可以通过答题星轻松地创建试卷

全阶人生考试2018-06-03

各种考试题,题库,初中,高中,大学四六

运动步数有氧达人2018-06-03

记录运动步数,积累氧气值。还可偷

每日养生app2018-06-03

每日养生,天天健康

体育训练成绩评定2018-06-03

通用课目体育训练成绩评定