programming external device with the eval kit

⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
10 posts / 0 new
Last post
lionel_Avnet
Offline
Last seen:4 months 2 weeks ago
Joined:2016-11-14 10:22
programming external device with the eval kit

Hello

Are they some restriction to use the eval kit to programm external DA14531 device (our prototype board, connected to the SW interface of the kit).

我们有连接SWDIO_Jtag SWLCK_Jtag,属下(reset pin) to the eval board, but we can't programm our DA14531-0000FX2 device.

bests regards

Lionel

Device:
PM_Dialog
Offline
Last seen:1 day 5 hours ago
Staff
Joined:2018-02-08 11:03
Hi lionel_Avnet,

Hi lionel_Avnet,

Please try to connect your custom board like this :

J1.21 (SWCLK) - > SW_CLK销定制。

J1.23 (SWDIO) > SWDIO pin of custom board.

Of course you will need to have common ground

Thanks, PM_Dialog

lionel_Avnet
Offline
Last seen:4 months 2 weeks ago
Joined:2016-11-14 10:22
Hello

Hello

yes, theses connection have been ckecked ; RST signal is also connected (and the board is supplied with the 3.3 V, ID of the Jtag is recognised using Dialog SmartBond Flash programmer), but we still can't programm the external SPI flash of our custom board.

bests regards

PM_Dialog
Offline
Last seen:1 day 5 hours ago
Staff
Joined:2018-02-08 11:03
Hi lionel_Avnet,

Hi lionel_Avnet,

Could you please try to download fw into System-RAM thought Keil IDE? Is that working? Are you able to detect the JTAG SN?

Please try to program the flash using the Flash Programmer from the SmartSnippets Toolbox. Are you able to connect or you are getting errors?

Thanks, PM_Dialog

lionel_Avnet
Offline
Last seen:4 months 2 weeks ago
Joined:2016-11-14 10:22
Hello

Hello

Yes we succeed to programm the RAM, that's working. We are able to detect Jtag.

What we did'nt suceed is to program the external SPI flash (same flash, same connexion as the eval kit)

bests regards

Lionel

PM_Dialog
Offline
Last seen:1 day 5 hours ago
Staff
Joined:2018-02-08 11:03
Hi lionel_Avnet,

Hi lionel_Avnet,

Please try to use the Flash Programmer from the SmartSnippets Toolbox - you should also check if you have selected the right SPI pins in the “Board Setup” . See section 9 and 15 from the user manual – link is provided below:

http://lpccs-docs.dialog-semiconductor.com/UM-B-083/index.html

Can you connect to the SPI flash or you are getting errors in the Log window?

Thanks, PM_Dialog

lionel_Avnet
Offline
Last seen:4 months 2 weeks ago
Joined:2016-11-14 10:22
We have done a test with an

We have done a test with an DA14531MOD (so module), connected on J1:

bellow are the error message : you can note that the SPI flahs is recognised, but Operation like Erase return error, Even the content of the flash seem to be well erased.

so we can connect to the DA14531MOD, but can't programm it with reliability.:

In advance many thanks

Lionel

(正O General @20-08-28 09:57:09] Found SW-DP with ID 0x0BC11477
(正O General @20-08-28 09:57:09] No AP preselected. Assuming that AP[0] is the AHB-AP
(正O General @20-08-28 09:57:09] AP-IDR: 0x04770031, Type: AHB-AP
(正O General @20-08-28 09:57:09] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
(正O General @20-08-28 09:57:09] Found Cortex-M0 r0p1, Little endian.
(正O General @20-08-28 09:57:09] FPUnit: 4 code (BP) slots and 0 literal slots
(正O General @20-08-28 09:57:09] CoreSight components:
(正O General @20-08-28 09:57:09] ROMTbl[0] @ E00FF000
(正O General @20-08-28 09:57:09] ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
(正O General @20-08-28 09:57:09] ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
(正O General @20-08-28 09:57:09] ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
(正O General @20-08-28 09:57:09] BTLE device selected.
(信息SPI Flash @20-08-28 09:57:35]发现SW-DP with ID 0x0BC11477
(正O SPI Flash @20-08-28 09:57:35] Using pre-configured AP[0] as AHB-AP to communicate with core
(正O SPI Flash @20-08-28 09:57:35] AP-IDR: 0x04770031, Type: AHB-AP
(正O SPI Flash @20-08-28 09:57:35] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
(正O SPI Flash @20-08-28 09:57:35] Found Cortex-M0 r0p1, Little endian.
(正O SPI Flash @20-08-28 09:57:35] FPUnit: 4 code (BP) slots and 0 literal slots
(正O SPI Flash @20-08-28 09:57:35] CoreSight components:
(正O SPI Flash @20-08-28 09:57:35] ROMTbl[0] @ E00FF000
(正O SPI Flash @20-08-28 09:57:35] ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
(正O SPI Flash @20-08-28 09:57:35] ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
(正O SPI Flash @20-08-28 09:57:35] ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
(正O SPI Flash @20-08-28 09:57:35] Firmware File C:\Program Files (x86)\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.10\common_resources\SupportPackages\DA1453x\toolbox_resources/common/jtag_programmer.bin has been selected for downloading.
(正O SPI Flash @20-08-28 09:57:35] Successfully downloaded firmware file to the board.
(正O SPI Flash @20-08-28 09:57:35] Successfully configured SPI Flash ports and pins.
[ERROR SPI Flash @20-08-28 09:57:43] Failed reading memory at address 0x7FC3C08.
[ERROR SPI Flash @20-08-28 09:57:43] SPI Memory erasing failed.
(正O SPI Flash @20-08-28 09:58:04] Started reading 32768 bytes from memory.
(正O SPI Flash @20-08-28 09:58:04] Read 16384 bytes from offset 0x00
(正O SPI Flash @20-08-28 09:58:04] Read 16384 bytes from offset 0x4000
(正O SPI Flash @20-08-28 09:58:05] Reading has finished. Read 32768 bytes.
(正O SPI Flash @20-08-28 09:59:30] Copying file: C:\Users\g-keep\Downloads\DA14531\DA145xx_SDK\6.0.14.1114\projects\target_apps\ble_examples\ble_app_peripheral\Keil_5\out_DA14531\Objects\ble_app_peripheral_531.hex to C:\Users\g-keep\AppData\Local\Temp\\input1.hex.
(正O SPI Flash @20-08-28 09:59:30] Converting file input1.hex to bin.
(正O SPI Flash @20-08-28 09:59:30] Read 17268 bytes from file input1.bin.
(正O SPI Flash @20-08-28 09:59:42] Found SW-DP with ID 0x0BC11477
(正O SPI Flash @20-08-28 09:59:42] Using pre-configured AP[0] as AHB-AP to communicate with core
(正O SPI Flash @20-08-28 09:59:42] AP-IDR: 0x04770031, Type: AHB-AP
(正O SPI Flash @20-08-28 09:59:42] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
(正O SPI Flash @20-08-28 09:59:42] Found Cortex-M0 r0p1, Little endian.
(正O SPI Flash @20-08-28 09:59:42] FPUnit: 4 code (BP) slots and 0 literal slots
(正O SPI Flash @20-08-28 09:59:42] CoreSight components:
(正O SPI Flash @20-08-28 09:59:42] ROMTbl[0] @ E00FF000
(正O SPI Flash @20-08-28 09:59:42] ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
(正O SPI Flash @20-08-28 09:59:42] ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
(正O SPI Flash @20-08-28 09:59:42] ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
(正O SPI Flash @20-08-28 09:59:42] Firmware File C:\Program Files (x86)\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.10\common_resources\SupportPackages\DA1453x\toolbox_resources/common/jtag_programmer.bin has been selected for downloading.
[WARNING SPI Flash @20-08-28 09:59:43] T-bit of XPSR is 0 but should be 1. Changed to 1.
(正O SPI Flash @20-08-28 09:59:43] Successfully downloaded firmware file to the board.
(正O SPI Flash @20-08-28 09:59:43] Successfully configured SPI Flash ports and pins.
(正O SPI Flash @20-08-28 10:00:05] Started erasing from 0x00 to 0x4FFF (5 sectors)
[ERROR SPI Flash @20-08-28 10:00:05] Failed reading memory at address 0x7FC3C08.
[ERROR SPI Flash @20-08-28 10:00:05] SPI Memory erasing failed.
(正O SPI Flash @20-08-28 10:00:05] Check if memory empty...
(正O SPI Flash @20-08-28 10:00:06] Read 16384 bytes from offset 0x00
(正O SPI Flash @20-08-28 10:00:06] Read 884 bytes from offset 0x4000
(正O SPI Flash @20-08-28 10:00:06] Memory empty. Procceed with burn.
(正O SPI Flash @20-08-28 10:00:06] Started burning memory with 17268 bytes of data at address 0x00.
[ERROR SPI Flash @20-08-28 10:00:06] Failed reading memory at address 0x7FC3C08.
[ERROR SPI Flash @20-08-28 10:00:06] Fail write 16384 bytes at offset 0x00
(正O SPI Flash @20-08-28 10:00:55] Started reading 32768 bytes from memory.
(正O SPI Flash @20-08-28 10:00:55] Read 16384 bytes from offset 0x00
(正O SPI Flash @20-08-28 10:00:56] Read 16384 bytes from offset 0x4000
(正O SPI Flash @20-08-28 10:00:56] Reading has finished. Read 32768 bytes.

PM_Dialog
Offline
Last seen:1 day 5 hours ago
Staff
Joined:2018-02-08 11:03
Hi lionel_Avnet

Hi lionel_Avnet

Could you please checkout the following forum ticket ?

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-hardware-device-reference-designs/programming-5

That user mentioned how he is able to program a DA14531MOD custom board using the JTAG of the Pro-DK. Would it be possible to try the same in you board?

Thanks, PM_Dialog

pege
Offline
Last seen:2 months 1 week ago
Joined:2020-10-12 09:58
I have the same problem. Did

I have the same problem. Did you get any response to this? From what I suspect is that it is NOT possible to use only JTAG/SWD pins, but you must also use SPI-pin or UART no matter the tools. If I disconnect MOSI on the PRO DK, the FW-loading fails.

Is there any workaround to use SWD? My current work-around is to use single-wire serial on the target.

Cheers

\P

PM_Dialog
Offline
Last seen:1 day 5 hours ago
Staff
Joined:2018-02-08 11:03
Hi pege,

Hi pege,

Thanks for your comment. Could you please clarify what you are trying to accomplish ? Do you need to program you custom board via JTAG and using the Pro-DK? If I understood correctly, please check the following document :

http://lpccs-docs.dialog-semiconductor.com/Tutorial_SDK6/debug_probe.html

If you have any follow up question, please raise a new forum threads as this one is old and closed.

Thanks, PM_Dialog