Unable to debug the code into device DA14681-01

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
Mohammedhusen
离线
Last seen:8个月6天前
Joined:2018-11-19 15:43
Unable to debug the code into device DA14681-01

你好!

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.

请帮帮我,提前感谢。按照下面进行错误。

Segger J-Link GDB Server v6.42a命令行版本

jlinkarm.dll v6.42a(DLL编译2月1日2019年1月1日18:00:08)

Command line: -if swd -device DA14681 -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun -strict -timeout 0 -nogui
----- GDB服务器启动设置-----
gdbinit文件:无
GDB Server Listening port: 2331
SWO原始输出聆听端口:2332
终端I / O端口:2333
Accept remote connection: localhost only
生成logfile:关闭
Verify download: on
Init regs on start: on
静音模式:关闭
Single run mode: on
Target connection timeout: 0 ms
------J-Link related settings------
J-Link主机界面:USB
J-Link脚本:无
J-Link设置文件:无
------目标相关的设置------
Target device: DA14681
目标接口:SWD
Target interface speed: 1000kHz
Target endian: little

Connecting to J-Link...
j-link已连接。
固件:J-Link ob-Sam3u128 V3编译1月7日2019 14:06:26
Hardware: V3.00
S/N: 483000924
Feature(s): RDI
Checking target voltage...
目标电压:3.30 V
听TCP / IP端口2331
连接到目标...连接到目标
等待GDB连接...连接到127.0.0.1
阅读所有寄存器
阅读4个字节@地址0x00000000(Data = 0x07Fe0428)
Received monitor command: speed 1000
Target interface speed set to 1000 kHz
Received monitor command: clrbp
收到的Monitor命令:重置
Resetting target
收到的Monitor命令:停止
停止目标CPU ......
...Target halted (PC = 0x07F000D4)
收到的Monitor命令:Regs
R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
r4 = ffffffff,r5 = ffffffff,r6 = ffffffff,r7 = fffffffff
R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
R12= FFFFFFFF, R13= 07FE0428, MSP= 07FE0428, PSP= FFFFFFFC
R14(LR) = FFFFFFFF, R15(PC) = 07F000D4
XPSR C1000000,APSR C0000000,EPSR 01000000,IPSR 00000000
CFBP 00000000,控制00,FaultMask 00,BasePri 00,Primask 00
阅读所有寄存器
读取4个字节@地址0x07f000d4(Data = 0x47804804)
收到的Monitor命令:速度自动
选择自动目标接口速度(2000 kHz)
Received monitor command: flash breakpoints 1
Flash breakpoints enabled
Received monitor command: semihosting enable
Semi-hosting enabled (Handle on BKPT)
收到的Monitor命令:半主轴Ioclient 1
Semihosting I/O set to TELNET Client
收到的Monitor命令:Swo DisableTarget 0xFFFFFFFF
SWO已成功禁用。
收到的Monitor命令:Swo Enabletarget 0 0 0x1 0
ERROR: Could not detect CPU clock speed. Download of test code into RAM failed.
在CPU时钟频率检测后无法恢复原始RAM内容!

无法启用SWO。无法衡量目标CPU频率。
读取4个字节@地址0x07f000d4(Data = 0x47804804)
Downloading 736 bytes @ address 0x08000000 - Verify failed
Downloading 32 bytes @ address 0x080002E0 - Verify failed
下载32个字节@地址0x08000300 - 验证失败
下载4096字节@地址0x08000320 - 验证失败
下载4096字节@地址0x08001320 - 验证失败
下载4096字节@地址0x08002320 - 验证失败
下载4096字节@地址0x08003320 - 验证失败
下载844字节@地址0x08004320 - 验证失败
Downloading 8 bytes @ address 0x0800466C - Verify failed
Downloading 16 bytes @ address 0x08004680 - Verify failed
Downloading 4096 bytes @ address 0x08004690 - Verify failed
Downloading 2320 bytes @ address 0x08005690 - Verify failed
Writing register (PC = 0x 8000134)
Read 4 bytes @ address 0x08000134 (Data = 0xFFFFFFFF)
Read 2 bytes @ address 0x0800410A (Data = 0xFFFF)
Read 2 bytes @ address 0x08004108 (Data = 0xFFFF)
Received monitor command: clrbp
收到的Monitor命令:重置
Resetting target
收到的Monitor命令:停止
停止目标CPU ......
...Target halted (PC = 0x07F000D4)
Read 2 bytes @ address 0x0800410A (Data = 0xFFFF)
Read 2 bytes @ address 0x0800410A (Data = 0xFFFF)
Read 2 bytes @ address 0x08004108 (Data = 0xFFFF)
收到的Monitor命令:Regs
R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
r4 = ffffffff,r5 = ffffffff,r6 = ffffffff,r7 = fffffffff
R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
R12= FFFFFFFF, R13= 07FE0428, MSP= 07FE0428, PSP= FFFFFFFC
R14(LR) = FFFFFFFF, R15(PC) = 07F000D4
XPSR C1000000,APSR C0000000,EPSR 01000000,IPSR 00000000
CFBP 00000000,控制00,FaultMask 00,BasePri 00,Primask 00
阅读所有寄存器
读取4个字节@地址0x07f000d4(Data = 0x47804804)
设置断点@地址0x08004108,size = 2,bphandle = 0x0001
启动目标CPU ...
ERROR: Can not read register 15 (R15) while CPU is running
阅读所有寄存器
ERROR: Can not read register 0 (R0) while CPU is running
错误:无法读取寄存器1 (R1), CPU是running
错误:CPU运行时无法读取寄存器2(R2)
ERROR: Can not read register 3 (R3) while CPU is running
ERROR: Can not read register 4 (R4) while CPU is running
ERROR: Can not read register 5 (R5) while CPU is running
错误:CPU运行时无法读取寄存器6(R6)
错误:CPU运行时无法读取寄存器7(R7)
ERROR: Can not read register 8 (R8) while CPU is running
ERROR: Can not read register 9 (R9) while CPU is running
ERROR: Can not read register 10 (R10) while CPU is running
ERROR: Can not read register 11 (R11) while CPU is running
错误:CPU运行时无法读取寄存器12(R12)
错误:CPU运行时无法读取寄存器13(R13)
ERROR: Can not read register 14 (R14) while CPU is running
ERROR: Can not read register 15 (R15) while CPU is running
ERROR: Can not read register 16 (XPSR) while CPU is running
错误:在CPU运行时无法读取寄存器17(MSP)
错误:CPU运行时无法读取寄存器18(PSP)
错误:在CPU运行时无法读取寄存器24(PREMASK)
ERROR: Can not read register 25 (BASEPRI) while CPU is running
ERROR: Can not read register 26 (FAULTMASK) while CPU is running
ERROR: Can not read register 27 (CONTROL) while CPU is running
警告:无法读取内存@地址0xdeadbeee
Removing breakpoint @ address 0x08004108, Size = 2
警告:无法读取内存@地址0xdeadbeee
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbeee
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbeee
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xDeadBef0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xDeadBef0
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
WARNING: Failed to read memory @ address 0xDEADBEAA
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
WARNING: Failed to read memory @ address 0xDEADBEAA
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
WARNING: Failed to read memory @ address 0xDEADBEAC
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
WARNING: Failed to read memory @ address 0xDEADBEAC
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
WARNING: Failed to read memory @ address 0xDEADBEAE
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
WARNING: Failed to read memory @ address 0xDEADBEAE
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbeb0
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbeb0
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbeB2
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbeB2
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbeb4
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbeb4
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbeB6
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbeB6
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbeb8
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbeb8
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbeba
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbeba
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbebc
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbebc
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbebe
阅读64字节@地址0xDeadbe80
警告:无法读取内存@地址0xDeadbe80
警告:无法读取内存@地址0xdeadbebe
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC2
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC2
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC4
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC4
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC6
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC6
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC8
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC8
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBECA
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBECA
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbecc
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbecc
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBECE
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBECE
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbed0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbed0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbed2
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbed2
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbed4
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbed4
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xDeadbed6
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xDeadbed6
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xDeadbed8
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xDeadbed8
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbeda
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbeda
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbedc
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbedc
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbede
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbede
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbee0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbee0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbee2
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbee2
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbee4
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbee4
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbee6
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbee6
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbee8
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbee8
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbeea
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbeea
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbeec
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
警告:无法读取内存@地址0xdeadbeec

关键词:
Attachment:
Device:
PM_Dialog
离线
Last seen:1天8小时前
Staff
Joined:2018-02-08 11:03
嗨Mohammedhusen,

嗨Mohammedhusen,

Αre you able to establish a connection with the JLinkGDBServer? Have you tried to program your firmware using the SmartSnippets IDE via the program_qspi_jtag_win script? If not, please try to download firmware through SmartSnippets IDE in order to make sure that your custom PCB is fully functional.

Thanks, PM_Dialog

Mohammedhusen
离线
Last seen:8个月6天前
Joined:2018-11-19 15:43
does the following means

以下是否意味着什么......当我构建QSPI时,我收到以下消息......

14:02:24 **** Incremental Build of configuration DA14681-01-Release_QSPI for project freertos_retarget ****
make --silent pre-build main-build
生成链接脚本。

Invoking: Cross ARM GNU Print Size
文本数据BSS DEC十六进制文件名
24388 80 1196 25664 6440 freertos_retarget.elf
Finished building: freertos_retarget.siz

14:02:37 Build Finished (took 12s.743ms)

我从用户手册UM-B-047遵循了完整的步骤。
问题是在QSPI模式下开始调试时,我收到了我的第一个消息中提到的错误..

PM_Dialog
离线
Last seen:1天8小时前
Staff
Joined:2018-02-08 11:03
嗨Mohammedhusen,

嗨Mohammedhusen,

Let me ask you some questions in order to try to understand what is getting wrong. Which version of SDK are using and which QSPI Flash you have into your custom board? Do you have the latest version of SmartSnippets (version 2.0.6)? Please try it again in a clean install of the tool and with a clean workspace (no other builds have been performed). Then in SmartSnippetsStudio go Windows -> Preferences -> C/C++ -> Build, the checkbox in Building project configuration pane must be UNCHECKED. Have you tried to download firmware through UART?

Thanks, PM_Dialog