5 posts / 0 new
Last post
jacky xing
Offline
Last seen: 5 years 2 weeks ago
Joined: 2016-11-10 03:13
Can not run ble_adv example on Dialog 14681-pro kit

Hi,
I met below issue when run ble_adv example
Hardware:
DA14681 Development Kit - Pro
Software:
SmartSnippets Studio v1.2.3.588
DA1468x_SDK_BTLE_v_1.0.6.968
SmartSnippets Toolbox v4.4.3.1420

steps:
1. import ble_adv project from DA1468x_SDK_BTLE_v_1.0.6.968\projects\dk_apps\demos\ble_adv
2. build for DA14681-01-Debug_QSPI
3. run->Debug Configurations ->SmartBond "SmartSnippets DA1468x SDK" via J-Link GDB Server ->QSPI

download ble_adv.bin via SmartSnippets:
[INFO General @16-11-16 19:18:22] Could not measure total IR len. TDO is constant high.
[INFO General @16-11-16 19:18:22] Could not measure total IR len. TDO is constant high.
[INFO General @16-11-16 19:18:22] Found SWD-DP with ID 0x0BB11477
[INFO General @16-11-16 19:18:22] FPUnit: 4 code (BP) slots and 0 literal slots
[INFO General @16-11-16 19:18:22] Found Cortex-M0 r0p0, Little endian.
[INFO General @16-11-16 19:18:22] BTLE device selected.
[INFO Booter @16-11-16 19:18:50] Firmware File H:\dialog\DA1468x_SDK_BTLE_v_1.0.6.968\DA1468x_SDK_BTLE_v_1.0.6.968\projects\dk_apps\demos\ble_adv\DA14681-01-Debug_QSPI\ble_adv.bin has been selected for downloading.
[INFO Booter @16-11-16 19:18:50] Successfully downloaded firmware file to the board.

then met below error and failed, could anyone help check what's wrong?
Thanks.
SEGGER J-Link GDB Server V5.12e Command Line Version

JLinkARM.dll V5.12e (DLL compiled Apr 29 2016 15:03:58)

WARNING: Unknown command line parameter singlerun found.
-----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: on
Verify download: on
Init regs on start: on
Silent mode: off
Single run mode: off
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: Cortex-M0
Target interface: SWD
Target interface speed: auto
Target endian: little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OB-SAM3U128 V3 compiled Mar 29 2016 18:49:25
Hardware: V3.00
S/N: 483000891
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)
Target interface speed set to 30 kHz
Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Halting target CPU...
...Target halted (PC = 0x07F000D4)
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)
Select auto target interface speed (2000 kHz)
Flash breakpoints disabled
Writing 0x00000001 @ address 0x400C3050
Sleep 1000ms
Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Read 4 bytes @ address 0x07F000D4 (Data = 0x47804804)
Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Halting target CPU...
...Target halted (PC = 0x07F000D4)
Read 2 bytes @ address 0x0800E600 (Data = 0xFFFF)
Read 2 bytes @ address 0x0800E600 (Data = 0xFFFF)
Read 2 bytes @ address 0x0800E5FC (Data = 0xFFFF)
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 0x0800E5FC, 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
ERROR: Can not read register 1 (R1) while CPU is 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
ERROR: Can not read register 26 (FAULTMASK) while CPU is running
ERROR: Can not read register 27 (CONTROL) while CPU is running
WARNING: Failed to read memory @ address 0x00000000
Removing breakpoint @ address 0x0800E5FC, Size = 2
WARNING: Failed to read memory @ address 0x00000000

Device: 
rachamadugujitesh
Offline
Last seen: 5 years 9 months ago
Joined: 2016-11-24 06:42
Hi.

Hi.
I am using DA14681-00 EVK & getting below error while trying to flash the QSPI.
We are trying to load the program "freertos_retarget.elf" file to QSPI.

====================================================
SEGGER J-Link GDB Server V5.12e Command Line Version

JLinkARM.dll V5.12e (DLL compiled Apr 29 2016 15:03:58)

WARNING: Unknown command line parameter singlerun found.
-----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: on
Verify download: on
Init regs on start: on
Silent mode: off
Single run mode: off
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: Cortex-M0
Target interface: SWD
Target interface speed: auto
Target endian: little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OB-SAM3U128 V3 compiled Mar 29 2016 18:49:25
Hardware: V3.00
S/N: 483021270
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)
Target interface speed set to 30 kHz
Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Halting target CPU...
...Target halted (PC = 0x07F000D4)
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)
Select auto target interface speed (2000 kHz)
Flash breakpoints disabled
Writing 0x00000001 @ address 0x400C3050
Sleep 1000ms
Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Read 4 bytes @ address 0x07F000D4 (Data = 0x47804804)
Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Halting target CPU...
...Target halted (PC = 0x07F000D4)
Read 2 bytes @ address 0x08003EFE (Data = 0xFFFF)
Read 2 bytes @ address 0x08003EFE (Data = 0xFFFF)
Read 2 bytes @ address 0x08003EFC (Data = 0xFFFF)
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 0x08003EFC, 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
ERROR: Can not read register 1 (R1) while CPU is 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
ERROR: Can not read register 26 (FAULTMASK) while CPU is running
ERROR: Can not read register 27 (CONTROL) while CPU is running
WARNING: Failed to read memory @ address 0x00000000
Removing breakpoint @ address 0x08003EFC, Size = 2
WARNING: Failed to read memory @ address 0x00000000
======================================================

Awaiting for your early reply to this issue.
Thanks
Sushant

rachamadugujitesh
Offline
Last seen: 5 years 9 months ago
Joined: 2016-11-24 06:42
Hi.

Hi.
I got the SDK version DA1468x_SDK_BTLE_v_1.0.6.968 from the SDK tab. I am not sure if this is latest. Please let me know how to get the latest SDK.

Thanks
Sushant

rachamadugujitesh
Offline
Last seen: 5 years 9 months ago
Joined: 2016-11-24 06:42
Hi Dialog.

Hi Dialog.
I also tried to execute the RAM only image. I am getting below error. Please suggest what is the issue.
I am using SDK version DA1468x_SDK_BTLE_v_1.0.6.968

==================
SEGGER J-Link GDB Server V5.12e Command Line Version

JLinkARM.dll V5.12e (DLL compiled Apr 29 2016 15:03:58)

-----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: on
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: Cortex-M0
Target interface: SWD
Target interface speed: auto
Target endian: little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OB-SAM3U128 V3 compiled Mar 29 2016 18:49:25
Hardware: V3.00
S/N: 483021270
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)
Target interface speed set to 30 kHz
Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Halting target CPU...
...Target halted (PC = 0x07F000D4)
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)
Select auto target interface speed (2000 kHz)
Flash breakpoints enabled
Semi-hosting enabled (Handle on BKPT)
Semihosting I/O set to TELNET and GDB Client
Writing 0x00000001 @ address 0x400C3050
Sleep 1000ms
Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Writing 0x00AB @ address 0x50000012
Reading from address 0x50000012 (Data = 0x00AB)
Read 4 bytes @ address 0x07F000D4 (Data = 0x47804804)
Downloading 4096 bytes @ address 0x07FC0000 - Verified OK
Downloading 4096 bytes @ address 0x07FC1000 - Verified OK
Downloading 4096 bytes @ address 0x07FC2000 - Verified OK
Downloading 4096 bytes @ address 0x07FC3000 - Verified OK
Downloading 3888 bytes @ address 0x07FC4000 - Verified OK
Downloading 8 bytes @ address 0x07FC4F30 - Verified OK
Downloading 24 bytes @ address 0x07FC4F38 - Verified OK
Downloading 24 bytes @ address 0x07FC4F50 - Verified OK
Downloading 104 bytes @ address 0x07FC4F68 - Verified OK
Downloading 760 bytes @ address 0x07FC4FD0 - Verified OK
Writing register (PC = 0x07fc02c4)
Read 4 bytes @ address 0x07FC02C4 (Data = 0xCC0F4C22)
Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Halting target CPU...
...Target halted (PC = 0x07FC02C4)
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= 07FD7800, MSP= 07FD7800, PSP= FFFFFFFC
R14(LR) = FFFFFFFF, R15(PC) = 07FC02C4
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 0x07FC02C4 (Data = 0xCC0F4C22)
Starting target CPU...

==================

thanks
Sushant

Jelphi
Offline
Last seen: 1 year 10 months ago
Staff
Joined: 2015-09-10 12:07
Hi sir,

Hi sir,

before you download, put you need to click the folder where your .Bin file locates, then run program_qspi_jtag_win to use jtag download ,before you download,you need to import scripts project

.......................................................................................................................
..
.. QSPI PROGRAMMING
..
.......................................................................................................................

JlinkGDBServer path used: "C:\Program Files (x86)\SEGGER\JLink_V512f"
cli_programmer 1.23
Copyright (c) 2016 Dialog Semiconductor

Configuration saved to C:\Users\yozhang\AppData\Local\Temp\cfg_2280.ini file.

E:\workspace_test\DA1468x_SDK_BTLE_v_1.0.8_rc4.1041\utilities\scripts\qspi>"..\..\..\binaries\cli_programmer.exe" --cfg "C:\Users\yozhang\AppData\Local\Temp\cfg_2280.ini" --prod-id DA14681-01  gdbserver write_qspi_exec "E:\workspace_test\DA1468x_SDK_BTLE_v_1.0.8_rc4.1041\projects\dk_apps\demos\ble_adv\DA14681-01-Debug_QSPI\ble_adv.bin" 
cli_programmer 1.23
Copyright (c) 2016 Dialog Semiconductor

bootloader file not specified, using internal uartboot.bin

Writing to address: 0x00000000 offset: 0x00000000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x00002000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x00004000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x00006000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x00008000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x0000a000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x0000c000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x0000e000 chunk size: 0x00002000
Writing to address: 0x00000000 offset: 0x00010000 chunk size: 0x000011f8
Writing to address: 0x00000000 offset: 0x00000000 chunk size: 0x00000002
done.

.......................................................................................................................
..
.. FINISHED
..
.......................................................................................................................