无法将代码调试到设备DA14681-01中

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads athttps://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
4个帖子/ 0新
最后一篇
穆罕默德霍森
Offline
最后一次露面:8个月21小时前
加入:2018-11-19 15:43
无法将代码调试到设备DA14681-01中

Hi!

I am using device DA14681-01 for my research work. we have purchased DA14681 for creating a prototype. However, I am facing a problem while loading the code into the chip. Initially, I started with the basic code to blink the D2 led. but I am getting the following error. I have tried to find this error on your forum but could not get any answers.

Please help me out, Thanks in advance. Follow below for the error.

SEGGER J-Link GDB Server V6.42a Command Line Version

JLinkARM.dll V6.42a (DLL编译后的2019年2月1日18:00:08)

命令行: - 如果swd -device da14681-endian little -speed -speed 1000 - port 2331 -swoport 2332 -telnetport 2333 -vd -l -localhostonly 1 -singlerun -strict -timeout 0 -nogui
-----GDB Server start settings-----
GDBInit file: none
GDB服务器侦听端口:2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
接受远程连接:仅限LocalHost
Generate logfile: off
验证下载:上
init regs开始:上
Silent mode: off
单次运行模式:ON
目标连接超时:0毫秒
------ J-LINK相关设置------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
目标设备:DA14681
Target interface: SWD
目标接口速度:1000kHz
目标endian:很少

连接到J-Link ...
J-Link is connected.
Firmware: J-Link OB-SAM3U128 V3 compiled Jan 7 2019 14:06:26
硬件:v3.00.
S / N:483000924
功能:RDI
检查目标电压......
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00000000 (Data = 0x07FE0428)
收到的Monitor命令:速度1000
目标接口速度设置为1000 kHz
收到监视器命令:clrbp
Received monitor command: reset
重置目标
Received monitor command: halt
Halting target CPU...
...目标停止(PC = 0x07F000D4)
Received monitor command: regs
r0 = ffffffff,r1 = ffffffff,r2 = ffffffff,r3 = fffffffff
R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
r8 = ffffffff,r9 = ffffffff,r10 = ffffffff,r11 = fffffffff
R12= FFFFFFFF, R13= 07FE0428, MSP= 07FE0428, PSP= FFFFFFFC
R14(LR)= FFFFFFFF,R15(PC)= 07F000D4
XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x07F000D4 (Data = 0x47804804)
Received monitor command: speed auto
Select auto target interface speed (2000 kHz)
收到的Monitor命令:闪存断点1
闪存断点已启用
收到监视器命令:半主轴启用
启用半托管(手柄BKPT)
Received monitor command: semihosting IOClient 1
Semihosting I / O设置为Telnet客户端
Received monitor command: SWO DisableTarget 0xFFFFFFFF
SWO disabled successfully.
Received monitor command: SWO EnableTarget 0 0 0x1 0
错误:无法检测到CPU时钟速度。将测试代码下载到RAM失败。
Failed to restore original RAM content after CPU clock frequency detection!

Failed to enable SWO. Could not measure target CPU frequency.
Read 4 bytes @ address 0x07F000D4 (Data = 0x47804804)
下载736字节@地址0x08000000 - 验证失败
下载32个字节@地址0x080002E0 - 验证失败
Downloading 32 bytes @ address 0x08000300 - Verify failed
Downloading 4096 bytes @ address 0x08000320 - Verify failed
Downloading 4096 bytes @ address 0x08001320 - Verify failed
Downloading 4096 bytes @ address 0x08002320 - Verify failed
Downloading 4096 bytes @ address 0x08003320 - Verify failed
Downloading 844 bytes @ address 0x08004320 - Verify failed
下载8字节@地址0x0800466C - 验证失败
下载16个字节@地址0x08004680 - 验证失败
下载4096字节@地址0x08004690 - 验证失败
下载2320字节@地址0x08005690 - 验证失败
写寄存器(PC = 0x 8000134)
阅读4个字节@地址0x08000134(数据= 0xFFFFFFFF)
阅读2个字节@地址0x0800410A(Data = 0xFFFF)
阅读2字节@地址0x08004108(数据= 0xFFFF)
收到监视器命令:clrbp
Received monitor command: reset
重置目标
Received monitor command: halt
Halting target CPU...
...目标停止(PC = 0x07F000D4)
阅读2个字节@地址0x0800410A(Data = 0xFFFF)
阅读2个字节@地址0x0800410A(Data = 0xFFFF)
阅读2字节@地址0x08004108(数据= 0xFFFF)
Received monitor command: regs
r0 = ffffffff,r1 = ffffffff,r2 = ffffffff,r3 = fffffffff
R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
r8 = ffffffff,r9 = ffffffff,r10 = ffffffff,r11 = fffffffff
R12= FFFFFFFF, R13= 07FE0428, MSP= 07FE0428, PSP= FFFFFFFC
R14(LR)= FFFFFFFF,R15(PC)= 07F000D4
XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x07F000D4 (Data = 0x47804804)
Setting breakpoint @ address 0x08004108, Size = 2, BPHandle = 0x0001
Starting target CPU...
错误:在CPU运行时无法读取寄存器15(R15)
Reading all registers
错误:CPU运行时无法读取寄存器0(R0)
错误:CPU运行时无法读取寄存器1(R1)
ERROR: Can not read register 2 (R2) while CPU is running
错误:CPU运行时无法读取寄存器3(R3)
错误:CPU运行时无法读取寄存器4(R4)
错误:CPU运行时无法读取寄存器5(R5)
ERROR: Can not read register 6 (R6) while CPU is running
ERROR: Can not read register 7 (R7) while CPU is running
错误:CPU运行时无法读取寄存器8(R8)
错误:CPU运行时无法读取寄存器9(R9)
错误:CPU运行时无法读取寄存器10(R10)
错误:CPU运行时无法读取寄存器11(R11)
ERROR: Can not read register 12 (R12) while CPU is running
ERROR: Can not read register 13 (R13) while CPU is running
错误:在CPU运行时无法读取寄存器14(R14)
错误:在CPU运行时无法读取寄存器15(R15)
错误:CPU运行时无法读取寄存器16(XPSR)
ERROR: Can not read register 17 (MSP) while CPU is running
ERROR: Can not read register 18 (PSP) while CPU is running
ERROR: Can not read register 24 (PRIMASK) while CPU is running
错误:在CPU运行时无法读取寄存器25(basepri)
错误:无法读取寄存器(FAULTMASK 26日)CPU is running
错误:CPU运行时无法读取寄存器27(控制)
WARNING: Failed to read memory @ address 0xDEADBEEE
删除断点@地址0x08004108,size = 2
WARNING: Failed to read memory @ address 0xDEADBEEE
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEEE
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEEE
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEF0
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEF0
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
警告:无法读取内存@地址0xdeadbeaa
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
警告:无法读取内存@地址0xdeadbeaa
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
警告:无法读取内存@地址0xdeadbeac
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
警告:无法读取内存@地址0xdeadbeac
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
警告:无法读取内存@地址0xdeadbeae
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
警告:无法读取内存@地址0xdeadbeae
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEB0
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEB0
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEB2
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEB2
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEB4
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEB4
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEB6
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEB6
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEB8
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEB8
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEBA
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEBA
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEBC
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEBC
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEBE
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEBE
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbec0
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbec0
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbec2
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbec2
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbec4
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbec4
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbec6
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbec6
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbec8
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbec8
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbeca
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbeca
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBECC
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBECC
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbece
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
警告:无法读取内存@地址0xdeadbece
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBED0
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBED0
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBED2
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBED2
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBED4
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBED4
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBED6
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBED6
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBED8
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBED8
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEDA
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEDA
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEDC
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEDC
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEDE
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEDE
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEE0
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEE0
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEE2
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEE2
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEE4
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEE4
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEE6
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEE6
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEE8
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEE8
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEEA
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEEA
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEEC
阅读64字节@地址0xDeadbec0
警告:无法读取内存@地址0xdeadbec0
WARNING: Failed to read memory @ address 0xDEADBEEC

Keywords:
设备:
PM_DIALOG.
Offline
最后一次露面:21 hours 4 min ago
职员
加入:2018-02-08 11:03
Hi Mohammedhusen,

Hi Mohammedhusen,

α您能够与JLinkGDBSERVER建立连接?您是否尝试通过Program_Qspi_jtag_win脚本使用SmartSnippets IDE编程您的固件?如果没有,请尝试通过SmartSnippet IDE下载固件,以确保您的自定义PCB功能完全正常。

谢谢,PM_DIALOG.

穆罕默德霍森
Offline
最后一次露面:8个月21小时前
加入:2018-11-19 15:43
以下方式

以下方式something... When I build the QSPI I get the following message...

14:02:24 ****配置配置DA14681-01-REDELED_QSPI for Project freertos_retarget ****
make -silent预构建主要构建
Generate linker scripts.

调用:交叉臂GNU打印尺寸
text data bss dec hex filename
24388 80 1196 25664 6440 freertos_retarget.elf
完成建筑:freertos_retarget.siz

14:02:37 Build完成(拿到12s.743ms)

I have followed the exact step from your user manual UM-B-047.
The problem is when start debugging in QSPI mode, I got the error as mentioned in my first message..

PM_DIALOG.
Offline
最后一次露面:21 hours 4 min ago
职员
加入:2018-02-08 11:03
Hi Mohammedhusen,

Hi Mohammedhusen,

让我问你一些问题,以便试图了解出错了什么。哪种版本的SDK正在使用哪个版本的QSPI闪存到您的定制板?您有最新版本的SmartSnippets(版本2.0.6)吗?请在工具的清洁安装中再次尝试,并使用清洁的工作区(未执行其他构建)。然后在SmartSnippetsStudio Go Windows - >首选项 - > C / C ++ - > Build,必须取消选中构建项目配置窗格中的复选框。您是否尝试过UART下载固件?

谢谢,PM_DIALOG.