Failed downloading firmware file to the board.

Learn MoreFAQsTutorials

10 posts / 0 new
Last post
Margo Safaryan
Offline
Last seen: 4 days 10 hours ago
Joined: 2020-06-22 09:44
Failed downloading firmware file to the board.

Hi All,
I work with DA14531 Development Kit-USB. I use the Keil Development Tool and SmartSnippets Toolbox. 
I can't download an image file to the flash. I try to use Booter, SPI Flash Programmer, and EEPROM Programmer. I always get the same result:

[INFO     General            @20-07-19 20:23:04] Could not measure total IR len. TDO is constant high.
[INFO     General            @20-07-19 20:23:04] Could not measure total IR len. TDO is constant high.
[INFO     General            @20-07-19 20:23:04] Could not measure total IR len. TDO is constant high.
[INFO     General            @20-07-19 20:23:04] Could not measure total IR len. TDO is constant high.
[ERROR    General            @20-07-19 20:23:04] No known chip found while opening JLink connection. Terminating proccess...
[ERROR    SPI Flash          @20-07-19 20:23:04] Failed downloading firmware file to the board.

In Keil, I got this: "No Cortex-m SW Device found".

Before according to this problem I download the Firmware in SPI flash which set the device in deep sleep mode immediately after system initialization. I saw that the downloaded firmware works. The device wakes up from sleep mode every 10 seconds and goes to sleep again.  

My question is what can be the reason for image downloading failure and how can I fix this problem?

Thanks. 
 

 

 

 

 

 

Keywords: 
Device: 
PM_Dialog
Offline
Last seen: 2 days 5 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Margo Safaryan,

Hi Margo Safaryan,

Thanks for posting online! Please check out the arch_set_deep_sleep() API -  when the systems enters the deep sleep mode, the debugger is disabled. I suspect that you are trying to use the debug when it is disabled by the firmware.

Could you please set the DIP-switch properly in order to de-attach the flash and then try to program the board via Keil IDE? Additionally, you can try to program it through UART.

Another possible solution might be to reset the board, then it will not be in deep sleep mode for 10 sec, and then quickly try to connect over JTAG.

Thanks, PM_Dialog

Margo Safaryan
Offline
Last seen: 4 days 10 hours ago
Joined: 2020-06-22 09:44
Thanks for your quick reply.

Thanks for your quick reply. I change the DIP Switch configuration for using UART and it works ))))  

PM_Dialog
Offline
Last seen: 2 days 5 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Margo Safaryan, 

Hi Margo Safaryan, 

Glad that you got it working and thanks for the indication. If you have any other issue with the DA14531, please raise a new forum thread.

Thanks, PM_Dialog

Margo Safaryan
Offline
Last seen: 4 days 10 hours ago
Joined: 2020-06-22 09:44
Hi PM_Dialog, 

Hi PM_Dialog, 
I will raise a new forum thread if it will be needed. Thanks for support ))

Regards, Margo Safaryan

Margo Safaryan
Offline
Last seen: 4 days 10 hours ago
Joined: 2020-06-22 09:44
Hi PM_Dialog, 

Hi PM_Dialog, 

I have one more question according to this subject. 
I have the same problem. I can't download an image file to the flash.

I downloaded some Bluetooth software in OTP memory instead of the secondary_bootloader. 
I change the OTP header and put "Application Programmed Flag #1 -Yes" and "Application Programmed Flag #2 -Yes". Now the software downloaded in OTP memory is always running.

After all this, I have a problem with image downloading. I get errors in both cases UART and JTAG.

In JTAG case: 
      [INFO     General            @20-07-27 19:27:54] Could not measure total IR len. TDO is constant high.
      [ERROR    General            @20-07-27 19:27:54] No known chip found while opening JLink connection. Terminating proccess...
      [ERROR    OTP Header         @20-07-27 19:27:54] Failed downloading firmware file to the board.

In UART case: 
      [INFO     OTP Header         @20-07-27 19:30:59] Connection to COM16 port has successfully opened.
      [INFO     OTP Header         @20-07-27 19:30:59] Started download procedure...
      [ACTION   OTP Header         @20-07-27 19:31:00] Please press the hardware reset button on the board to start the download process.
      [ERROR    OTP Header         @20-07-27 19:31:07] Timeout: Reset signal not detected for more than 8000 msecs.
      [INFO     OTP Header         @20-07-27 19:31:07] Please try again. If problem persists refer to User Manual AN-B-072 (https://www.dialog-semiconductor.com/an-072-booting-from-serial-interface) and check jumper settings. For booting from 2-wire UART  (P0_0 and P0_1) see Figure 10. For booting from 1-wire UART P0_5 see Figure 6.
      [INFO     Booter             @20-07-27 19:31:07] Successfully disconnected from port COM16.
      [ERROR    OTP Header         @20-07-27 19:31:07] Failed downloading firmware file to the board.

How can I fix the firmware file downloading problem? 
   

Thanks, Margo Safaryan 

PM_Dialog
Offline
Last seen: 2 days 5 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Margo, 

Hi Margo, 

So, if I understood correctly, the OTP is programmed, and you cannot burnt the SPI flash? Could you please try to explain better the steps you have done, so that I can understand the root cause of this issue?

Thanks, PM_Dialog

Margo Safaryan
Offline
Last seen: 4 days 10 hours ago
Joined: 2020-06-22 09:44
Yes the OTP is programmed,

 

Hi PM_Dialog, 

Yes the OTP is programmed, and I cannot burn the SPI flash and SysRAM. In Keil, I got this: "No Cortex-m SW Device found".

I burn the OTP. I change the OTP header, put "Application Programmed Flag #1 -Yes" and "Application Programmed Flag #2 -Yes" and burn it too. After all this, I have a problem with image downloading. I started to get the mentioned errors. 

Thanks, Margo Safaryan

PM_Dialog
Offline
Last seen: 2 days 5 hours ago
Staff
Joined: 2018-02-08 11:03
Hi Margo Safaryan,

Hi Margo Safaryan,

Apologies for the delay. Are you trying to connect via JTAG or UART through the SmartSnippets Toolbox? Since you cannot program the Sys-RAM thought Keil, I would recommend first checking if the tool can detect the JTAG SN number (from the options for target window), Additionally, did you disable the JTAG from the OTP Header?

Thanks, PM_Dialog

Margo Safaryan
Offline
Last seen: 4 days 10 hours ago
Joined: 2020-06-22 09:44
Hi PM_Dialog,

Hi PM_Dialog,

I tried to connect via JTAG and UART, the connection fail in both cases. 
In Keil  JTAG SN number detected but I got "No Cortex-m SW Device found" error when tried to debug. 
I didn't disable JTAG from the OTP Header.

Thanks, Margo Safaryan