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
Device:
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 theDialog Smartbond Flash Programmer for Windows OSto born the flash.
Thanks, 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.
(信息一般@21-01-05 15:29:37)不可能的措施e total IR len. TDO is constant high.
(信息一般@21-01-05 15:29:37)不可能的措施e total IR len. TDO is constant high.
(信息一般@21-01-05 15:29:37)不可能的措施e 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
P.S.
In the SmartSnippets Tool we tried SPI Flash as well and not only OTP
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
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.
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.htmland 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!
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
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.
Hi Dvir,
对不起,我不能复制with our DKs. Please see the attached image.
I am using 2 Pro-DK :
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
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
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.
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
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.
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
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
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
Hi,
Im happy to hear you resolved the problem and thank you for the advice!
Best regards!
Hi EricH,
Thanks for your comments and your feedback. Glad that you got it working and thanks for the suggestion.
Thanks, PM_Dialog