⚠️
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 https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
19 posts / 0 new
Last post
Dvir12L123
Offline
Last seen: 9 months 1 week ago
Joined: 2020-04-18 12:13
Programming the device

Dear Dialog,

I have written a program to the da14531 daughter board and it works fine.
We have made a PCB with your DA14531 SmartBond TINY Module and we are currently trying to figure out how to program the device.
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.

Thanks in advance,
Dvir

PM_Dialog
Offline
Last seen: 3 days 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Dvir,

Hi Dvir,

Happy new year and thanks for posting online. I would recommend checking the following tutorial :

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

Please see 18.2. DA14531 PRO Development Kit. Some connections should be done between the Pro-DK and your custom board. After that, you could use the Dialog Smartbond Flash Programmer for Windows OS to born the flash.

Thanks, PM_Dialog

Dvir12L123
Offline
Last seen: 9 months 1 week ago
Joined: 2020-04-18 12:13
Dear PM_Dialog,

Dear PM_Dialog,

 

Thank you very much for the fast replay, wish you a great new year as well!

 

We have connected our customed board to the Pro-DK as shown in the documents.

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...

 

All of the jumpers and wires are connected according to the documents as well.

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

We also tried to use SmartSnippets Tool and there we receive:

[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] No known chip found while opening JLink connection. Terminating proccess...
[ERROR    OTP Image          @21-01-05 15:29:37] Failed downloading firmware file to the board.

 

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

 

Best regards,

Dvir

Dvir12L123
Offline
Last seen: 9 months 1 week ago
Joined: 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: 3 days 23 hours ago
Staff
Joined: 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

Dvir12L123
Offline
Last seen: 9 months 1 week ago
Joined: 2020-04-18 12:13
Dear PM_Dialog,

Dear PM_Dialog,

 

Yes, I can detect the JTAG serial number.

Currently we have connected SWDIO (J1 pin 23) in the mother board to J9 (P0_10/SWDIO) in the module and SWCLK (J1 pin 21) in the mother board to J10 (P0_2/SWCLK) in the module, just like it says in the documents.

we have also connected the VCC (3.3V) and GND as shown in the documents since we did not connect external power source.

 

 

Dvir12L123
Offline
Last seen: 9 months 1 week ago
Joined: 2020-04-18 12:13
Dear PM_Dialog,

Dear PM_Dialog,

 

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

We also tried to connect our customed board SWDIO and SWCLK to J2 P15 and J2 P22 since they seem to be connected to DA14531 Module Development Kit PRO SWDIO and SWCLK pins.

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

It didnt work either, only the DA14531 Module Development Kit PRO got programmed.

Hope it helps to understand the situation.

Thanks for the help! 

PM_Dialog
Offline
Last seen: 3 days 23 hours ago
Staff
Joined: 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?

Additionally, would it be possible to share a screenshot from the Flash Programmer?

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

Thanks, PM_Dialog

Dvir12L123
Offline
Last seen: 9 months 1 week ago
Joined: 2020-04-18 12:13
Dear Dialog_PM,

Dear 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.

We assume we selected the correct SPI pins from the "Board Setup" since it worked with DA14531 Module DK Pro, but we might be wrong here.

PM_Dialog
Offline
Last seen: 3 days 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Dvir,

Hi Dvir,

Sorry but I am not able to replicate this with our DKs. Please see the attached image.

I am using 2 Pro-DK :

  • The left one is the programmer, so the motherboard is not plugged in.
  • The right one is acting as a Custom board.

The wiring I am using between the “Programmer ” and the “Custom board” are the following:

Programmer Pro-DK “Custom Board”

J1 : Pin 21 à J1 : Pin 22 (SWCLK – red)

J1 : Pin 23 à J1 : Pin 24 (SWDIO – green)

Common ground ( black )

Please verify if you are using the proper connections and also use short fly-wires.

Thanks, PM_Dialog

Attachment: 
Dvir12L123
Offline
Last seen: 9 months 1 week ago
Joined: 2020-04-18 12:13
Dear Dialog_PM,

Dear Dialog_PM,

 

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

 

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

Dvir12L123
Offline
Last seen: 9 months 1 week ago
Joined: 2020-04-18 12:13
Dear PM_Dialog,

Dear PM_Dialog,

 

We took another TINY Module, without the customed board, and connected SWDIO and SWCLK and it worked!

We mounted the TINY Module on the customed board and it worked as well, Both TINY Modules we checked before were probably bad.

 

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

 

Best regards.

 

PM_Dialog
Offline
Last seen: 3 days 23 hours ago
Staff
Joined: 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

Dvir12L123
Offline
Last seen: 9 months 1 week ago
Joined: 2020-04-18 12:13
Dear PM_Dialog,

Dear 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: 3 days 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Dvir12L123,,

Hi Dvir12L123,,

Glad that you figured this out and you are able to program the modules properly.

If you have any follow-up question, please do not hesitate to raise a new forum post!

Thanks, PM_Dialog

EricH
Offline
Last seen: 7 months 1 week ago
Joined: 2021-02-01 09:25
Hi,

Hi,

I'm having exactly the same problem. @Dvir12L123; you seem to have finally come to the conclusion that the first two Tiny modules (on your custom board) were "bad". Did you know the root case of this ? Any comment from Dialog ?

Cheers

Eric

EricH
Offline
Last seen: 7 months 1 week ago
Joined: 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...

By disconnecting the reset pin I got it to work.

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".

Eric

Dvir12L123
Offline
Last seen: 9 months 1 week ago
Joined: 2020-04-18 12:13
Hi,

Hi,

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

 

Best regards!

PM_Dialog
Offline
Last seen: 3 days 23 hours ago
Staff
Joined: 2018-02-08 11:03
Hi EricH,

Hi EricH,

Thanks for your comments and your feedback. Glad that you got it working and thanks for the suggestion.

Thanks, PM_Dialog