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个月1周前
Joined:2016-11-14 10:22
programming external device with the eval kit

你好

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,UTX(RESET PIN)连接到eval板,但我们无法编程我们的DA14531-0000FX2设备。

祝贺你

Lionel

设备:
PM_Dialog
Offline
Last seen:10小时前1天
Staff
Joined:2018-02-08 11:03
嗨Lionel_avnet,

嗨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个月1周前
Joined:2016-11-14 10:22
你好

你好

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.

祝贺你

PM_Dialog
Offline
Last seen:10小时前1天
Staff
Joined:2018-02-08 11:03
嗨Lionel_avnet,

嗨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?

请尝试使用SmartSnippets Toolbox的Flash Programmer编程Flash。你能连接还是收到错误?

Thanks, PM_Dialog

Lionel_avnet.
Offline
Last seen:4个月1周前
Joined:2016-11-14 10:22
你好

你好

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)

祝贺你

Lionel

PM_Dialog
Offline
Last seen:10小时前1天
Staff
Joined:2018-02-08 11:03
嗨Lionel_avnet,

嗨Lionel_avnet,

请尝试使用SmartSnippets Toolbox中的Flash Programmer - 您还应检查您是否在“板设置”中选择了正确的SPI引脚。请参见“用户手册”第9和15节 - 链接提供如下:

http://lpccs-docs.dialog-seminiondiond.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个月1周前
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:

波纹管是错误消息:您可以注意到SPI Flahs被识别,但操作如擦除返回错误,甚至闪光的内容似乎都很好地擦除。

所以我们可以连接到DA14531Mod,但无法以可靠性编程.:

In advance many thanks

Lionel

[信息通用@ 20-08-28 09:57:09]找到了带ID 0x0bc11477的SW-DP
(正O General @20-08-28 09:57:09] No AP preselected. Assuming that AP[0] is the AHB-AP
[信息概述@ 20-08-28 09:57:09] AP-IDR:0x04770031,类型:AHB-AP
(正O General @20-08-28 09:57:09] AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table)
[信息概述@ 20-08-28 09:57:09]发现Cortex-M0 R0P1,Little Endian。
[信息常规@ 20-08-28 09:57:09] FpUnit:4代码(BP)插槽和0个字幕插槽
(正O General @20-08-28 09:57:09] CoreSight components:
(正O General @20-08-28 09:57:09] ROMTbl[0] @ E00FF000
[信息常规@ 20-08-28 09:57:09] romtbl [0] [0]:e000000,cid:b105e00d,pid:000bb008 scs
[信息概述@ 20-08-28 09:57:09] romtbl [0] [1]:e0001000,cid:b105e00d,pid:000bb00a dwt
[信息概述@ 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.
(正O SPI Flash @20-08-28 09:57:35] Found 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.
[信息SPI Flash @ 20-08-28 09:57:35] FpUnit:4代码(BP)插槽和0个字幕插槽
[信息SPI Flash @ 20-08-28 09:57:35] Coresight组件:
(正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
[信息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.
[信息SPI Flash @ 20-08-28 09:57:35]成功配置了SPI闪存端口和引脚。
[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
[信息SPI Flash @ 20-08-28 09:58:05]阅读已完成。阅读32768字节。
[信息SPI Flash @ 20-08-28 09:59:30]复制文件:C:\ Users \ G-Keep \ Downloads \ DA14531 \ DA145X_SDK \ 6.0.14.1114 \ Projects \ target_apps \ ble_examples \ ble_app_peripheral \ keil_5 \ out_da14531 \对象\ ble_app_peripherall_531.hex到c:\ users \ g-lement \ appdata \ local \ temp \\ input1.hex。
[信息SPI Flash @ 20-08-28 09:59:30]将文件Input1.hex转换为bin。
(正O SPI Flash @20-08-28 09:59:30] Read 17268 bytes from file input1.bin.
[信息SPI Flash @ 20-08-28 09:59:42]找到了带ID 0x0BC11477的SW-DP
[信息SPI Flash @ 20-08-28 09:59:42]使用预配置的AP [0]作为AHB-AP与核心通信
(正O SPI Flash @20-08-28 09:59:42] AP-IDR: 0x04770031, Type: AHB-AP
[信息SPI Flash @ 20-08-28 09:59:42] AHB-AP ROM:0xE00FF000(基础Addr。第一rom表)
[信息SPI Flash @ 20-08-28 09:59:42]找到了Cortex-M0 R0P1,Little Endian。
(正O SPI Flash @20-08-28 09:59:42] FPUnit: 4 code (BP) slots and 0 literal slots
[信息SPI Flash @ 20-08-28 09:59:42] Coresight组件:
[信息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
[信息SPI Flash @ 20-08-28 09:59:42]固件文件c:\ program files(x86)\ smartsnippetstoolbox \ smartsnippetstoolbox5.0.10 \ common_resources \ supportpackages \ da1453x \ toolbox_resources / common / jtag_programmer.bin已被选中下载。
(警告SPI Flash @20-08-28 09:59:43] T-bit XPSR is 0 but should be 1. Changed to 1.
[信息SPI Flash @ 20-08-28 09:59:43]成功下载了固件文件到电路板。
[信息SPI Flash @ 20-08-28 09:59:43]成功配置了SPI闪存端口和引脚。
[信息SPI Flash @ 20-08-28 10:00:05]从0x00到0x4FFF开始删除(5个扇区)
[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...
[信息SPI Flash @ 20-08-28 10:00:06]从偏移0x00中读取16384字节
[信息SPI Flash @ 20-08-28 10:00:06]从偏移0x4000读取884字节
[信息SPI Flash @ 20-08-28 10:00:06]内存空。烧伤了。
(正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.
[信息SPI Flash @ 20-08-28 10:00:55]从偏移0x00中读取16384字节
(正O SPI Flash @20-08-28 10:00:56] Read 16384 bytes from offset 0x4000
[信息SPI Flash @ 20-08-28 10:00:56]阅读已完成。阅读32768字节。

PM_Dialog
Offline
Last seen:10小时前1天
Staff
Joined:2018-02-08 11:03
嗨Lionel_avnet.

嗨Lionel_avnet.

您能否请结账以下论坛票吗?

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

用户提到了他如何使用Pro-DK的JTAG来编程DA14531Mod自定义板。是否有可能在您的董事会中尝试同样?

Thanks, PM_Dialog

pe
Offline
Last seen:2 months 1 day ago
Joined:2020-10-12 09:58
我也有同样的问题。Did

我也有同样的问题。你对这个回复了吗?从我怀疑的是,不可能仅使用JTAG / SWD引脚,但您还必须使用SPI-PIN或UART无论工具。如果我在Pro DK上断开MOSI,则FW负载失败。

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

干杯

P.

PM_Dialog
Offline
Last seen:10小时前1天
Staff
Joined:2018-02-08 11:03
嗨,佩吉,

嗨,佩吉,

谢谢你的评论。你能澄清你想要完成的事情吗?您是否需要通过JTAG对您进行自定义,并使用Pro-DK?如果我理解正确,请检查以下文件:

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

如果您有任何后续问题,请培养新的论坛线程,因为这是旧的和关闭。

Thanks, PM_Dialog