将固件文件下载到电路板上失败。

学到更多常见问题解答教程

11个帖子/ 0新
最后一篇
Margo Safaryan.
离线
最后一次露面:6个月2周前
加入:2020-06-22 09:44
将固件文件下载到电路板上失败。

大家好,
I work with DA14531 Development Kit-USB. I use the Keil Development Tool and SmartSnippets Toolbox.
我无法将图像文件下载到闪存。I try to use Booter, SPI Flash Programmer, and EEPROM Programmer. I always get the same result:

[信息概述@ 20-07-19 20:23:04]无法衡量总IR LEN。TDO是恒定的。
[信息概述@ 20-07-19 20:23:04]无法衡量总IR LEN。TDO是恒定的。
[信息概述@ 20-07-19 20:23:04]无法衡量总IR LEN。TDO是恒定的。
[信息概述@ 20-07-19 20:23:04]无法衡量总IR LEN。TDO是恒定的。
[error alignal @ 20-07-19 20:23:04]在打开jlink连接时找不到已知的芯片。终止Proccess ...
[错误SPI Flash @ 20-07-19 20:23:04]将固件文件下载到电路板上失败。

在Keil,我得到了这个:“找不到Cortex-M个SW设备”。

在根据此问题之前,我将在SPI闪光灯中下载固件,在系统初始化后立即将设备设置为Deep Sleep模式。我看到下载的固件有效。设备每10秒从睡眠模式唤醒,再次睡觉。

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

Thanks.

关键词:
设备:
PM_DIALOG.
离线
最后一次露面:17小时57分钟前
职员
加入:2018-02-08 11:03
嗨Margo Safaryan,

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

请正确设置DIP-Switch,以便通过Keil IDE尝试编程电路板吗?此外,您可以尝试通过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.

谢谢,PM_DIALOG.

Margo Safaryan.
离线
最后一次露面:6个月2周前
加入:2020-06-22 09:44
感谢您的快速回复。

感谢您的快速回复。我使用UART更改DIP开关配置,它有效)))))

PM_DIALOG.
离线
最后一次露面:17小时57分钟前
职员
加入:2018-02-08 11:03
嗨Margo Safaryan,

嗨Margo Safaryan,

很高兴你让它工作并感谢征兆。如果您对DA14531有任何其他问题,请培养一个新的论坛线程。

谢谢,PM_DIALOG.

Margo Safaryan.
离线
最后一次露面:6个月2周前
加入:2020-06-22 09:44
嗨pm_dialog,

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

问候,Margo Safaryan

Margo Safaryan.
离线
最后一次露面:6个月2周前
加入:2020-06-22 09:44
嗨pm_dialog,

嗨pm_dialog,

根据这个主题,我还有一个问题。
我也有同样的问题。我无法将图像文件下载到闪存。

I downloaded some Bluetooth software in OTP memory instead of the secondary_bootloader.
我更改了OTP标题并将“应用程序编程标记#1 - 以及”应用程序编程标记#2 -YES“。现在,在OTP内存中下载的软件始终运行。

毕竟,我有图像下载问题。我在uart和JTAG都会出现错误。

在JTAG案例中:
[信息概述@ 20-07-27 19:27:54]无法衡量总IR Len。TDO是恒定的。
[errow alignal @ 20-07-27 19:27:54]在打开jlink连接时没有发现已知的芯片。终止Proccess ...
[错误OTP标题@ 20-07-27 19:27:54]将固件文件下载到电路板上。

在UART案例中:
[信息OTP标题@ 20-07-27 19:30:59]与COM16端口的连接已成功打开。
[信息OTP标题@ 20-07-27 19:30:59]开始下载程序...
[动作OTP标题@ 20-07-27 19:31:00]请按电路板上的硬件重置按钮开始下载过程。
[错误OTP标题@ 20-07-27 19:31:07]超时:重置信号未检测到超过8000毫秒。
[信息OTP标题@ 20-07-27 19:31:07]请再试一次。如果问题仍然存在,请参阅用户手册AN-B-072(https://www.dialog-semicondiondiond.com/an-072-booting-from-serial-interface.))并检查跳线设置。为了从2线UART启动(P0_0和P0_1),请参见图10.为了从1-Wire UART P0_5引导,请参见图6。
[Info Booter @ 20-07-27 19:31:07]成功断开了COM16端口。
[错误OTP标题@ 20-07-27 19:31:07]将固件文件下载到电路板上。

如何修复固件文件下载问题?

谢谢,Margo Safaryan

PM_DIALOG.
离线
最后一次露面:17小时57分钟前
职员
加入:2018-02-08 11:03
嗨margo,

嗨margo,

所以,如果我理解正确,OTP被编程,你不能烧掉SPI闪光灯?您能否尝试更好地解释您所做的步骤,以便我能理解这个问题的根本原因?

谢谢,PM_DIALOG.

Margo Safaryan.
离线
最后一次露面:6个月2周前
加入:2020-06-22 09:44
Yes the OTP is programmed,

嗨pm_dialog,

是的,OTP被编程,我无法刻录SPI Flash和Sysram。在Keil,我得到了这个:“找不到Cortex-M个SW设备”。

我烧掉了OTP。我更改了OTP标题,将“应用程序编程标志#1 -YES”放置“应用程序编程标志#2 - ”并也刻录。毕竟,我有图像下载问题。我开始得到提到的错误。

谢谢,Margo Safaryan

PM_DIALOG.
离线
最后一次露面:17小时57分钟前
职员
加入:2018-02-08 11:03
嗨Margo Safaryan,

嗨Margo Safaryan,

延迟道歉。你想连接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?

谢谢,PM_DIALOG.

Margo Safaryan.
离线
最后一次露面:6个月2周前
加入:2020-06-22 09:44
嗨pm_dialog,

嗨pm_dialog,

I tried to connect via JTAG and UART, the connection fail in both cases.
在检测到的Keil JTAG SN号中,但我在试图调试时获得“未找到Cortex-M个SW设备”错误。
我没有从OTP标题禁用JTAG。

谢谢,Margo Safaryan

KB_Dialog
离线
最后一次露面:17小时49分钟前
职员
加入:2020-01-20 09:45
嗨margo,

嗨margo,

一旦编程OTP并且应用程序标志(1&2)通过传递ROM引导序列来设置Booter,检查SPI / UART等的应用程序。
在此应用笔记中可以找到更多详细信息https://www.dialog-seminile.com/sites/default/files/an-b-072-da1453 ...

BR,

KB_Dialog