How to upload a firmware to th DA14586 through JTAG?

⚠️
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.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
23 posts / 0 new
Last post
azimin
Offline
Last seen:7 months 2 weeks ago
加入:2018-12-12十二11
How to upload a firmware to th DA14586 through JTAG?

Hello,
Are there any way to upload firmware with J-Link? When I use dubugging mode it only upload firmware to RAM. But how I can upload firmware to internal flash?
Thanks

Keywords:
设备:
Qinjiny_Dialog
Offline
Last seen:1 month 2 weeks ago
工作人员
加入:2016-11-01 05:47
Hi azmin,

Hi azmin,

The SmartSnippet Toolbox is your friend for programming your code into the SoC.

https://support.dialog-semiconductor.com/resource/smartsnippets-toolbox-...

azimin
Offline
Last seen:7 months 2 weeks ago
加入:2018-12-12十二11
Yes, but tool box doesn't

Yes, but tool box doesn't work :
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...–-tools/smartsnippets-toolbox-v5062196-not-working

Qinjiny_Dialog
Offline
Last seen:1 month 2 weeks ago
工作人员
加入:2016-11-01 05:47
Noted. I can't replicate this

Noted. I can't replicate this error as I don't have a 14586 in hands. Let me ask my colleagues to verify this issue and come back to you later :)

azimin
Offline
Last seen:7 months 2 weeks ago
加入:2018-12-12十二11
You don't need da14586 to

You don't need da14586 to check this error. It's software issue.
We want to show our product at CES, but without uploaded firmware it's impossible

PM_Dialog
Offline
Last seen:14小时35分钟前
工作人员
加入:2018-02-08 11:03
Hi azmin,

Hi azmin,

Our recommendation is to use the Smart Snippets toolbox in order to burn the internal SPI flash of the DA14586. Could you please clarify if you have the same errors with the post that you have posted?

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-tools/smartsnippets-toolbox-v5062196-not-working

Thanks, PM_Dialog

azimin
Offline
Last seen:7 months 2 weeks ago
加入:2018-12-12十二11
I have the same error with

I have the same error with the Toolbox. Are there other way to solve it?
Can I burn Spi flash through jtag?

PM_Dialog
Offline
Last seen:14小时35分钟前
工作人员
加入:2018-02-08 11:03
Hi arpitthumar,

Hi arpitthumar,

When using Smart Snippets to burn the SPI Flash from the appropriate tab, you have two option to do that, through UART or through JTAG interface. Smart Snippets doesn't support any kind of flash by default, so when you hit the connect button in order to program the flash there is a small firmware that is downloaded into the 58x chip called flash_programmer.bin in case of UART or jtag_programmer.bin in case of JTAG. You can find the flash programmer project in the following path of the SDK: DA1458x_SDK\5.0.4\utilities\flash_programmer. Regarding the Java errors, I would like to let you know that the tools appear to work on both Win7 and Win10 in general, but there may be issues with the Java Runtime Libraries installed on your PC as it mentioned in the thread.

Thanks, PM_Dialog

azimin
Offline
Last seen:7 months 2 weeks ago
加入:2018-12-12十二11
Hi,

Hi,
And how I can write flash programmer firmware into the chip?
I tried to re-install Java, but without success

PM_Dialog
Offline
Last seen:14小时35分钟前
工作人员
加入:2018-02-08 11:03
Hi arpitthumar,

Hi arpitthumar,

You should not write the flash programmer firmware into chip. The output of the flash programmer either flash_programmer.bin or in case of UART or jtag_programmer.bin in case of JTAG is automatically downloaded int the chip since you hit the connect button from the toolbox. I suppose that you are using the latest version of Smart Snippets toolbox. Can you please completely delete the tool from you PC and try to re-install it?

Thanks, PM_Dialog

azimin
Offline
Last seen:7 months 2 weeks ago
加入:2018-12-12十二11
Yes, I'm using the latest

Yes, I'm using the latest version. And I also tried to reinstall the tool a few times

PM_Dialog
Offline
Last seen:14小时35分钟前
工作人员
加入:2018-02-08 11:03
Hi azimin,

Hi azimin,

Could you please let me know if you have a custom board or any of our development boards?

Thanks, PM_Dialog

azimin
Offline
Last seen:7 months 2 weeks ago
加入:2018-12-12十二11
Custom board only

Custom board only

PM_Dialog
Offline
Last seen:14小时35分钟前
工作人员
加入:2018-02-08 11:03
Hi azimin,

Hi azimin,

In fact that you have a custom board, could you please have a look at the FAQs, in the Development kits & reference designs section, there is a question "How to program a custom board using a development kit (basic or pro)"?

https://support.dialog-semiconductor.com/guide/faq-dev-kits-ref-designs

Do you try to program the SPI Flash by using any of our DKs? Or you have the JTAG into your custom board? Also, nan you please let me know if you able to download firmware into the SPI Flash through UART?

Thanks, PM_Dialog

azimin
Offline
Last seen:7 months 2 weeks ago
加入:2018-12-12十二11
I don't have any DK board. I

I don't have any DK board. I have my own pcb with DA14586 and J-Link is connected.

The problem still in that the toolbox doesn't start at all. I tried with 5 computers and no success. How can I flash anything without it?

PM_Dialog
Offline
Last seen:14小时35分钟前
工作人员
加入:2018-02-08 11:03
Hi azimin,

Hi azimin,

Could you please let me know about the version of the tool that you are using? You mentioned that doesn’t start at all. Do you mean that the GUI can not be opened? Can you please check if you get any error?

Thanks, PM_Dialog

azimin
Offline
Last seen:7 months 2 weeks ago
加入:2018-12-12十二11
I'm using SmartSnippets

I'm using SmartSnippets Toolbox v5.0.6.2196 and have the same issue as in the topic:https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...

PM_Dialog
Offline
Last seen:14小时35分钟前
工作人员
加入:2018-02-08 11:03
Hi azmin,

Hi azmin,

We are working on this issue and we will get back to you as soon as possible.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:14小时35分钟前
工作人员
加入:2018-02-08 11:03
Hi azmin,

Hi azmin,

Apologies for the delay. Please follow the link below in order to find a possible workaround on this issue.

https://support.dialog-semiconductor.com/forums/post/announcements-and-updates/toolbox-start-issues

Thanks, PM_Dialog

Reshma
Offline
Last seen:1 year 8 months ago
加入:2019-06-15 12:08
Could anyone help me to flash

Could anyone help me to flash a code to DA14580 chip through JTAG using smartsnippet tool, because im not getting a option(command) to do system reset before burning the code to EEPROM.

PM_Dialog
Offline
Last seen:14小时35分钟前
工作人员
加入:2018-02-08 11:03
Hi Reshma,

Hi Reshma,

Thanks for your question online. Since this thread is old, if you have any follow up questions, can you please create a new forum thread with your issue?

Do you have a custom board, or you are using any of our development boards?

Firstly, I would recommend you to read theUM-B-083 SmartSnippets Toolbox User Manual (HTML)document.

When opening the SmartSnippets toolbox, there are two options available to connect, either through UART or JTAG. If you connect over UART, reset is required. In case of JTAG, reset is not needed.

Refer to Section 7 Board Setup of the UM-B-083 document and make sure that you have the correct SPI Flash pin configuration. The configuration should be according to the use_periph_setup.h of your application.

After that, read section 13 SPI Flash Programmer. If you are connected through UART, you should reset your device. In case of JTAG, as mentioned before, reset is not needed, so you should be able to connect, read and burn the SPI flash.

Thanks, PM_Dialog

ajay98
Offline
Last seen:3 months 4 weeks ago
加入:2018-07-10 12:12
Thanks PM_Dialog,

Thanks PM_Dialog,

Information was very usefull,

But development kit(UGMZ2AA00A77B2)is working fine in Active mode , Extended Sleep mode and Deep Sleep mode. ButUGMZ265A4module is working fine only in Active mode , in both the sleep modes device is disconnecting automatically after it connects (approximately after 2 sec).

Please help us to fix this bug.

PM_Dialog
Offline
Last seen:14小时35分钟前
工作人员
加入:2018-02-08 11:03
Hi ajay98,

Hi ajay98,

Can you please run it in with the internal RCX20 clock? Just define CFG_LP_CLK macro to LP_CLK_RCX20. Does the issue exist?

Thanks, PM_Dialog