Unable to debug the code into device 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 at//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
Offline
Last seen:7 months 4 weeks ago
Joined:2018-11-19 15:43
Unable to debug the code into device DA14681-01

Hi!

我正在使用DA11681-01进行研究工作。我们已购买DA14681以创建原型。但是,在将代码加载到芯片时,我面临着问题。最初,我开始使用基本代码来闪烁D2 LED。但我收到以下错误。我试图在您的论坛上找到此错误,但无法获得任何答案。

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)

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

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OB-SAM3U128 V3 compiled Jan 7 2019 14:06:26
Hardware: V3.00
S/N: 483000924
Feature(s): RDI
Checking target voltage...
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)
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 = 0x07F000D4)
Received monitor command: regs
R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
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, 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)
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
ERROR: Could not detect CPU clock speed. Download of test code into RAM failed.
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)
Downloading 736 bytes @ address 0x08000000 - Verify failed
Downloading 32 bytes @ address 0x080002E0 - Verify failed
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
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
Received monitor command: reset
Resetting target
Received monitor command: halt
Halting target 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)
Received monitor command: regs
R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
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, 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...
ERROR: Can not read register 15 (R15) while CPU is running
Reading all registers
ERROR: Can not read register 0 (R0) while CPU is running
错误:无法读取寄存器1 (R1), CPU是running
ERROR: Can not read register 2 (R2) while CPU is running
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
ERROR: Can not read register 6 (R6) while CPU is running
ERROR: Can not read register 7 (R7) while CPU is running
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
ERROR: Can not read register 12 (R12) while CPU is running
ERROR: Can not read register 13 (R13) while CPU is running
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
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
ERROR: Can not read register 25 (BASEPRI) while CPU is running
错误:在CPU运行时无法读取寄存器26(故障扫描)
ERROR: Can not read register 27 (CONTROL) while CPU is running
WARNING: Failed to read memory @ address 0xDEADBEEE
Removing breakpoint @ address 0x08004108, Size = 2
WARNING: Failed to read memory @ address 0xDEADBEEE
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEEE
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEEE
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEF0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEF0
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEAA
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEAA
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEAC
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEAC
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBEAE
Reading 64 bytes @ address 0xDEADBE80
WARNING: Failed to read memory @ address 0xDEADBE80
WARNING: Failed to read memory @ address 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
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
WARNING: Failed to read memory @ address 0xDEADBECC
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 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
WARNING: Failed to read memory @ address 0xDEADBED0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBED0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBED2
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBED2
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBED4
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBED4
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBED6
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBED6
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBED8
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBED8
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEDA
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEDA
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEDC
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEDC
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEDE
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEDE
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEE0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEE0
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEE2
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEE2
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEE4
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEE4
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEE6
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEE6
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEE8
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEE8
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEEA
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEEA
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEEC
Reading 64 bytes @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEC0
WARNING: Failed to read memory @ address 0xDEADBEEC

Keywords:
Device:
PM_Dialog
Offline
Last seen:2 days 23 hours ago
Staff
Joined:2018-02-08 11:03
Hi Mohammedhusen,

Hi 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
Offline
Last seen:7 months 4 weeks ago
Joined:2018-11-19 15:43
does the following means

does the following means something... When I build the QSPI I get the following message...

14:02:24 **** Incremental Build of configuration DA14681-01-Release_QSPI for project freertos_retarget ****
make --silent pre-build main-build
Generate linker scripts.

Invoking: Cross ARM GNU Print Size
text data bss dec hex filename
24388 80 1196 25664 6440 freertos_retarget.elf
Finished building: freertos_retarget.siz

14:02:37 Build Finished (took 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
Last seen:2 days 23 hours ago
Staff
Joined:2018-02-08 11:03
Hi Mohammedhusen,

Hi 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