⚠️
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

亲爱的Dialog,

我已经写了一个程序的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天2小时前
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\U Dialog,

尊敬的PM\U 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] Could not measure total IR len. TDO is constant high.
[INFO General @21-01-05 15:29:37] Could not measure total IR len. TDO is constant high.

[INFO General @21-01-05 15:29:37] Could not measure total IR len. TDO is constant high.
[ERROR General@21-01-05 15:29:37]打开JLink连接时未找到已知芯片。正在终止进程。。。
[错误OTP Image@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
附笔。

附笔。

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

PM_Dialog
Offline
Last seen:1天2小时前
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\U Dialog,

尊敬的PM\U Dialog,

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

目前,我们已将主板中的SWDIO(J1引脚23)连接到模块中的J9(P0\ U 10/SWDIO),并将主板中的SWCLK(J1引脚21)连接到模块中的J10(P0\ U 2/SWCLK),正如文档中所述。

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

Dvir公司12L123
Offline
Last seen:1 month 4 weeks ago
加入:2020-04-18 12:13
尊敬的PM\U Dialog,

尊敬的PM\U 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-semiconductor.com/Tutorial_SDK6/codeless.htmland 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天2小时前
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?

另外,有没有可能分享一个Flash程序员的截图?

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\u PM:,

尊敬的Dialog\u 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一起工作,但这里我们可能错了。

Attachment:
PM_Dialog
Offline
Last seen:1天2小时前
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\u PM:,

尊敬的Dialog\u 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\U Dialog,

尊敬的PM\U Dialog,

我们拿了另一个小模块,没有定制板,连接了SWDIO和SWCLK,它成功了!

我们在定制的电路板上安装了这个小模块,它也工作得很好,我们之前检查过的两个小模块可能都坏了。

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

致以最诚挚的问候。

PM_Dialog
Offline
Last seen:1天2小时前
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\U Dialog,

尊敬的PM\U 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天2小时前
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型;您似乎最终得出结论,前两个小模块(在您的定制板上)是“坏的”。你知道这件事的根源吗?Dialog有什么评论吗?

干杯

埃里克

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

Hi again,

Quickly resolved !

If found this thread:https://support.dialog-semiconductor.com/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天2小时前
Staff
加入:2018-02-08 11:03
Hi EricH,

Hi EricH,

感谢您的评论和反馈。很高兴你成功了,谢谢你的建议。

Thanks, PM_Dialog