⚠️
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.
19 posts / 0 new
Last post
DVIR.12L123
Offline
Last seen:1 month 4 weeks ago
加入:2020-04-18 12:13
Programming the device

亲爱的对话框,

我已经向DA14531女儿板写了一个程序,它可以正常工作。
我们使用DA14531 SmartBond微型模块进行了PCB,我们目前正在尝试弄清楚如何编程设备。
my question is, how to connect the DA14531 SmartBond TINY Module to the motherboard in order to pragram it or if there is a better alternative it would be great.

提前致谢,
DVIR.

PM_Dialog
Offline
Last seen:1天59分钟前
Staff
加入:2018-02-08 11:03
Hi Dvir,

Hi Dvir,

新年快乐,感谢在线发布。我建议检查以下教程:

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

请参阅18.2。DA14531 Pro开发套件。一些连接应在Pro-DK和您的定制板之间完成。之后,你可以使用Dialog Smartbond Flash Programmer for Windows OSto born the flash.

Thanks, PM_Dialog

DVIR.12L123
Offline
Last seen:1 month 4 weeks ago
加入:2020-04-18 12:13
亲爱的pm_dialog,

亲爱的pm_dialog,

非常感谢您的快速重播,祝您新年快乐!

我们已将我们的定制董事会连接到Pro-DK,如文件所示。

Now when we are trying to program the device with Dialog Smartbond Flash Programmer for Windows OS we get the following massage:

[ERROR General @21-01-05 15:36:03] No known chip found while opening JLink connection. Terminating proccess...

所有跳线和电线也根据文件连接。

We have tried to lower the clock frequency to 2MHz, 1MHz and we still receive the same error message.

我们还试图使用SmartSnippets工具以及我们收到:

[INFO General @21-01-05 15:29:36] Could not measure total IR len. TDO is constant high.
[Info General @ 21-01-05 15:29:37]无法衡量总IR Len。TDO是恒定的。
[Info General @ 21-01-05 15:29:37]无法衡量总IR Len。TDO是恒定的。

[Info General @ 21-01-05 15:29:37]无法衡量总IR Len。TDO是恒定的。
[errow alignal @ 21-01-05 15:29:37]在打开jlink连接时找不到已知的芯片。终止Proccess ...
[错误OTP图像@ 21-01-05 15:29:37]将固件文件下载到电路板上。

What can cause this problam and how can we fix it?

此致,

DVIR.

DVIR.12L123
Offline
Last seen:1 month 4 weeks ago
加入:2020-04-18 12:13
P.S.

P.S.

In the SmartSnippets Tool we tried SPI Flash as well and not only OTP

PM_Dialog
Offline
Last seen:1天59分钟前
Staff
加入:2018-02-08 11:03
Hi Dvir12L123,

Hi Dvir12L123,

In the Flash Programmer, are you able to detect the JTAG Serial Number? If not, would it be possible to share a photo with your connections? I would like to check which module’s pin you are using.

Thanks, PM_Dialog

DVIR.12L123
Offline
Last seen:1 month 4 weeks ago
加入:2020-04-18 12:13
亲爱的pm_dialog,

亲爱的pm_dialog,

是的,我可以检测到JTAG序列号。

目前,我们将母板的SWDIO(J1 PIN 23)连接到模块中的J9(P0_10 / SWDIO)在模块中的模块和SWCLK(J1引脚21)中的J10(J1 PIN 21),就像它一样在文件中。

我们还连接了VCC(3.3V)和GND,如文件所示,因为我们没有连接外部电源。

DVIR.12L123
Offline
Last seen:1 month 4 weeks ago
加入:2020-04-18 12:13
亲爱的pm_dialog,

亲爱的pm_dialog,

We are able to program the DA14531 Module Development Kit PRO using Dialog SmartBond Flash Programmer.

我们还试图将定制的电路板SWDIO和SWCLK连接到J2 P15和J2 P22,因为它们似乎连接到DA14531模块开发套件Pro SWDIO和SWCLK引脚。

We used this document to see how to connect the jumpers:http://lpccs-docs.dialog-seminiondiond.com/tutorial_sdk6/codeless.html.html.and we tried to pragram both devices simultaneously using Dialog SmartBond Flash Programmer.

它也没有工作,只有DA14531模块开发套件Pro被编程。

Hope it helps to understand the situation.

谢谢您的帮助!

PM_Dialog
Offline
Last seen:1天59分钟前
Staff
加入:2018-02-08 11:03
Hi Dvir,

Hi Dvir,

Could you please do a quick test with the Keil IDE? Are you able to attach the debugger?

另外,是否可以从闪存程序员共享屏幕截图?

In case of the SmartSnippets Toolbox, did you select the correct SPI pins from the “Board Setup” ?

Thanks, PM_Dialog

DVIR.12L123
Offline
Last seen:1 month 4 weeks ago
加入:2020-04-18 12:13
亲爱的Dialog_PM,

亲爱的Dialog_PM,

What do you mean by saying attach the debugger?

We are able to debbug the program when using DA14531 Module DK Pro but not with our customed board if this is what you are asking.

I have attached screen shots from both SmartSnippent and SmartBond, two screen shots show how it works with DA14531 Module DK Pro and the other 2 show what we get with out customed board.

我们假设我们从“板设置”中选择了正确的SPI引脚,因为它与DA14531模块DK Pro合作,但在此处可能是错误的。

PM_Dialog
Offline
Last seen:1天59分钟前
Staff
加入:2018-02-08 11:03
Hi Dvir,

Hi Dvir,

对不起,我不能复制with our DKs. Please see the attached image.

我正在使用2 pro-dk:

  • 左侧是程序员,因此主板未插入。
  • The right one is acting as a Custom board.

我在“程序员”和“自定义板”之间使用的接线是以下内容:

Programmer Pro-DK “Custom Board”

J1:引脚21àJ1:引脚22(SWCLK - 红色)

J1:引脚23àJ1:引脚24(SWDIO - 绿色)

共同的地面(黑色)

请验证您是否使用了正确的连接,也使用短蝇线。

Thanks, PM_Dialog

Attachment:
DVIR.12L123
Offline
Last seen:1 month 4 weeks ago
加入:2020-04-18 12:13
亲爱的Dialog_PM,

亲爱的Dialog_PM,

非常感谢你的帮助,我们都非常感激!

We have connected it correctly and tried what you did and it worked with DA14531 Module DK Pro.

We connected the DA14531 Module DK Pro to the motherboard and disconnected SWDIO and SWCLK jumpers and connected the DA14531 Module DK Pro SWDIO and SWCLK directly as if it was a customed board (just like you did but with only one motherboard) and it worked perfectly.

We thought that the Tiny Module it self, the one we mounted on our customed board is not working properly so we decided to replace it with a new one, unfortunately it did not work either.

Are we suppose to do some kind of first Initialization to the Tiny Module before programming it?

Best regards and thanks in advance

DVIR.12L123
Offline
Last seen:1 month 4 weeks ago
加入:2020-04-18 12:13
亲爱的pm_dialog,

亲爱的pm_dialog,

我们拍了另一个小模块,没有定制的董事会,并连接了SWDIO和SWCLK,它的工作!

我们安装在定制板上的微小模块,它也工作,我们之前检查过的微小模块可能很糟糕。

Thank you very much for your kind help, we really appreciate it!

此致。

PM_Dialog
Offline
Last seen:1天59分钟前
Staff
加入:2018-02-08 11:03
Hi Dvir12L123,

Hi Dvir12L123,

>>Are we suppose to do some kind of first Initialization to the Tiny Module before programming it?

No – you should be able to program it via JTAG.

Does your custom board have its own power source, or you are powering it via the Pro-DK? Do you have a common ground? Additionally, can you please indicate if any peripheral component is connected to module’s SWD and SPI pins?

Thanks, PM_Dialog

DVIR.12L123
Offline
Last seen:1 month 4 weeks ago
加入:2020-04-18 12:13
亲爱的pm_dialog,

亲爱的pm_dialog,

The problem was fixed, both modules we tested were bad but the third worked fine.

Sorry for the trouble and thank you very much for everything.

PM_Dialog
Offline
Last seen:1天59分钟前
Staff
加入:2018-02-08 11:03
Hi Dvir12L123,,

Hi Dvir12L123,,

很高兴您认为这件事,您可以正确地编程模块。

如果您有任何后续问题,请随时致力于提高新的论坛帖子!

Thanks, PM_Dialog

埃里希
Offline
Last seen:2个月2天前
加入:2021-02-01 09:25
Hi,

Hi,

我有完全相同的问题。@ dvir12l123;你似乎终于得出结论,前两个微小的模块(在您的定制板上)是“坏”。你知道这个的根本案吗?对话中的任何评论?

干杯

埃里克

埃里希
Offline
Last seen:2个月2天前
加入:2021-02-01 09:25
Hi again,

Hi again,

Quickly resolved !

If found this thread:https://support.dialog-semicondiondiondum/forums/post/dialog-smartbond-bl ...

通过断开复位引脚,我将其工作。

Dialog; In the thread above you say that " the RESET is not required". I would rather put it as "the RESET must NOT be connected".

埃里克

DVIR.12L123
Offline
Last seen:1 month 4 weeks ago
加入:2020-04-18 12:13
Hi,

Hi,

Im happy to hear you resolved the problem and thank you for the advice!

此致!

PM_Dialog
Offline
Last seen:1天59分钟前
Staff
加入:2018-02-08 11:03
Hi EricH,

Hi EricH,

感谢您的评论和您的反馈。很高兴你让它工作,谢谢你的建议。

Thanks, PM_Dialog