问题下载代码与DA14531开发套件USB

⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
14个帖子/ 0新
Last post
tamram
Offline
Last seen:9 months 1 week ago
Joined:2020-06-23 09:41
问题下载代码与DA14531开发套件USB

Hi all,

I recently got started with the DA14531-00FXDEVKT-U (Development Kit-USB) but I am unable to download code to it using Keil uVision. I'm using the examples that came with the SDK (tried blinky and UART).

我一直按照指示http://lpccs-docs.dialog-semiconductor.com/UM-B-117-DA14531-Getting-Star...而“目标”对话框窗口的“选项”将正确设置。

Although debugging works (to an extent - I do not get UART printouts in my terminal emulator) with these; when I build the files and then press the 'Download' button (F8) I get the following error (no other output):

--- Error: failed to execute ' '

So I suppose my question is twofold:

1.为什么我在终端仿真器中没有得到UART打印输出(已根据根据的http://lpccs-docs.dialog-semiconductor.com/UM-B-117-DA14531-Getting-Star...)

2.How do I go about tracing where the--- Error: failed to execute ' 'error comes from and find a solution?

Thanks in advance for any help!

Device:
PM_Dialog
Offline
Last seen:3 days 13 hours ago
Staff
Joined:2018-02-08 11:03
Hi talamram,

Hi talamram,

I would recommend first checking theGetting Started with SDK6 (HTML).

Please see section 2 / Fig. 3 and ensure that you have the same configuration:

http://lpccs-docs.dialog-semicondiond.com/tutorial_sdk6/preparing.html.

10节中,你会发现如何使用步骤UART for printing debugging information.

Thanks, PM_Dialog

tamram
Offline
Last seen:9 months 1 week ago
Joined:2020-06-23 09:41
谢谢回复。

谢谢回复。

I can confirm that the configuration of my board is according to section 2 / Fig. 3

Currently, I am trying the example as layed out inhttp://lpccs-docs.dialog-seminiondiond.com/tutoriond_sdk6/bd_name.html#bl ...

However, it seems to me that this tutorial mentions files that don't exist in the sdk sample projects, namely:

user_peripheral_template.h.
user_peripheral_template.c.

This project does contain:

user_empty_peripheral_template.h
user_empty_peripheral_template.c

Thanks for any clarification on this. I am using SDK 6.0.14.1114

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

Hi talamram,

Thanks for your finding! Could you please double check if you are following the proper steps?

If I am not mistaken, you are unable to perform step 6.1. Can you please run it in debug mode and add a BKPT in memcpy() ? Is the new device name mem-copied correctly?

Thanks , PM_Dialog

tamram
Offline
Last seen:9 months 1 week ago
Joined:2020-06-23 09:41
Yes I have double checked

是的,我已经用干净的SDK进行了双重检查,并遵循了正确的步骤。

我建议你检查一下SDK_6.0.14.1114\DA145xx_SDK\6.0.14.1114\projects\target_apps\templatevs the instructions in the tutorial. Also, is there a reason the tutorial does not state the enclosing folder of the files it mentions?

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

Hi talamram,

I have followed steps 5 and 6. Can you please clarify again what is the problem? Is this one in your initial post?

可以在Keil IDE中的项目树下找到文件。但是,我会问我们是否也可以添加文件夹。

Thanks, PM_Dialog

tamram
Offline
Last seen:9 months 1 week ago
Joined:2020-06-23 09:41
The problem is that I can't

The problem is that I can't download a program to the target ;) I am trying out these tutorials, but I'm getting stuck at a pretty early stage.

Please see my screenshots of the file tree from Keil attached (all the user folders), the filesuser_peripheral_template.h.user_peripheral_template.c.文件树中不存在。

Attachment:
PM_Dialog
Offline
Last seen:3 days 13 hours ago
Staff
Joined:2018-02-08 11:03
Hi talamram,

Hi talamram,

请使用user_empty_peripheral_template.h / .c而不是user_peripheral_template.h / .c

Are you trying through the Keil IDE to download FW onto target? Are you getting any error?

Thanks, PM_Dialog

tamram
Offline
Last seen:9 months 1 week ago
Joined:2020-06-23 09:41
好的,我将使用user_empty

好的,我将使用user_empty_peripheral_template.h / .c instead of user_peripheral_template.h / .c

Regarding downloading to the target; I am using KEIL IDE. And yes, I am getting an error, like I mentioned in my first post:

Although debugging works (to an extent - I do not get UART printouts in my terminal emulator) with these; when I build the files and then press the 'Download' button (F8) I get the following error (no other output):

--- Error: failed to execute ' '

Any idea what I am doing wrong here?

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

Hi talamram,

Please share screenshots showing the steps and the error. I'd like to replicate it.

Thanks, PM_Dialog

tamram
Offline
Last seen:9 months 1 week ago
Joined:2020-06-23 09:41
Thanks for the swift

谢谢你的迅速回应。不幸的是,我将无法进入明天的发展套件。我将在大约24小时内张贴谢谢你!

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

Hi talamram,

OK - please share the screeonshots tomorrow!

Thanks, PM_Dialog

tamram
Offline
Last seen:9 months 1 week ago
Joined:2020-06-23 09:41
Hi PM_Dialog,

Hi PM_Dialog,

So, using user_empty_peripheral_template.h / .c instead of user_peripheral_template.h / .c worked and I have been able to successfully go through all steps in section 6.

Perhaps I'm getting ahead of myself, but when I click the Download button (highlighted in red), I get the error--- Error: failed to execute ' '

Attachment:
PM_Dialog
Offline
Last seen:3 days 13 hours ago
Staff
Joined:2018-02-08 11:03
Hi tamram,

Hi tamram,

Yes this is the expected behavior, as the Keil IDE is not used for downloading the FW into flash, If you hover on this button, you will see that this button is for loading the code into flash memory. In case you need to burn the SPI flash you should you the SmartSnippets toolsbox.

从Keil IDE,您可以将代码下载到System-RAM。请按两次开始/停止调试会话按钮,并且应用程序代码将自动加载到System-RAM,并且芯片将从那里启动。请参阅随附的捕获。

Thanks, PM_Dialog

Attachment: