How to run DSPS in Snippets Studio

了解更多FAQsTutorials

19 posts / 0 new
Last post
埃斯托克
Offline
Last seen:1个月2周前
Joined:2020-10-07 09:36.
How to run DSPS in Snippets Studio

I am not good at developing dialog firmware, but I need to develop without external mcu.
我正试图将DSP从Keil移动到片段。
顺便说一下,DA14585 DSP(V6.150.4.50)中包含的SDK版本是v6.0.11.933。
我无法单独下载此SDK或获取任何信息。

  • 1. Are there any plans to offer DSPS using Snippets Studio in the near future?
  • 2. What should I pay attention to when porting DSPS (using SDK 6.0.11.933) to Snippets Studio?
关键词:
设备:
PM_Dialog
Offline
Last seen:1 hour 23 min ago
Staff
Joined:2018-02-08 11:03
Hi euiseok,

Hi euiseok,

Thanks for your question online. The DSPS contains only Keil IDE projects. Not sure if we have a plan to include SSS configuration as well, so let me check it internally and I’ll get back to you.

The latest SDK6 (v6.0.14) included an Eclipse based project namely prox_reporter. It can be found in projects\target_apps\ble_examples\prox_reporter\Eclipse SDK path and you could take it as a reference.

Thanks, PM_Dialog

埃斯托克
Offline
Last seen:1个月2周前
Joined:2020-10-07 09:36.
https://drive.google.com/file

https://drive.google.com/file/d/1wjbsg7yce3ib583x__6x30kme60fwnf1/view?usp=sharing.

我已经证实需求方在上面的链接中working properly.
(DA14585 DK-Basic is used)

但是,当我开始调试时,它有50%的机会关闭。
In the remaining 50% probability, I can read and write using ble.
我基于Prox_reporter项目工作,我无法理解为什么这发生了。

PM_Dialog
Offline
Last seen:1 hour 23 min ago
Staff
Joined:2018-02-08 11:03
Hi euiseok,

Hi euiseok,

Could you please clarify the below statement?

“But when I start to debug, there is a 50% chance it powers off.”

Do you mean that you are not able to detect the device over the air when running the pxp_reporter project?

Thanks, PM_Dialog

埃斯托克
Offline
Last seen:1个月2周前
Joined:2020-10-07 09:36.
I mean, there is no problem

I mean, there is no problem with the prox_reporter project's behavior.

Would you like to run the project I linked to?

PM_Dialog
Offline
Last seen:1 hour 23 min ago
Staff
Joined:2018-02-08 11:03
Hi euiseok,

Hi euiseok,

I am able to import the project directory into the SSS, but I am not able to open the dsps_porting in order to build it.

Thanks, PM_Dialog

埃斯托克
Offline
Last seen:1个月2周前
Joined:2020-10-07 09:36.
我在SSS v2中表现得像这样

I uploaded the file again.

https://drive.google.com/drive/folders/1qXlWPPlsllJe5jtKz5t1VRd7QNw32E4v?usp=sharing

我在SSS v2中表现得像这样.0.14.1748

1.将其提取到“DA14585_DSPS”文件夹中。

2. Launch SSS and specify the "DA14585_DSPS" folder as the workspace.

3. Import the "Eclipse" folder.

4.清洁和建造。

您能否详细地告诉我造成问题的详细信息?

PM_Dialog
Offline
Last seen:1 hour 23 min ago
Staff
Joined:2018-02-08 11:03
Hi euiseok,

Hi euiseok,

我能够编译项目,但我正在得到一些警告(见附件)。这在你身边是一样的吗?

你下载了RAM上的固件吗?我看到.launch文件丢失了。Prox_Reporter项目是使用6.0.14.1114 \ config路径的.launch的文件。

Thanks, PM_Dialog

埃斯托克
Offline
Last seen:1个月2周前
Joined:2020-10-07 09:36.
I know some warnings exist

我知道存在一些警告,但我不知道如何适当地改变它们。

And I don't think those warnings have anything to do with the power off I am experiencing right now.

I think this "power off" problem is related to sleep mode.

I tried again by importing the .launch file and confirmed that the problem did not change.

Have you run this project 2 or more times to see the problem I'm having?

埃斯托克
Offline
Last seen:1个月2周前
Joined:2020-10-07 09:36.
嗨pm_dialog,

嗨pm_dialog,

I would like to know if you have checked the problem I was talking about.

In case it is impossible to solve this problem please let me know.

And could you please tell me how to turn off sleep mode in DSPS?

PM_Dialog
Offline
Last seen:1 hour 23 min ago
Staff
Joined:2018-02-08 11:03
Hi euiseok,

Hi euiseok,

In order to change the sleep mode, the app_default_sleep_mode in user_config.h file should be set to ARCH_SLEEP_OFF. But why do you want to disable the sleep mode?

Are you able to download firmware and boot from System-RAM? If yes, can you detect the device over the air?

Thanks, PM_Dialog

埃斯托克
Offline
Last seen:1个月2周前
Joined:2020-10-07 09:36.
我已经检查过了

我已经检查了与Android应用程序的正常通信。

请告诉我我的项目文件是否无法正常工作(断电问题除外)。

PM_Dialog
Offline
Last seen:1 hour 23 min ago
Staff
Joined:2018-02-08 11:03
Hi euiseok,

Hi euiseok,

If the device starts advertising and if you are able to connect with a peer device, I guess that it’s working correct.

您也可以尝试向Android应用程序发送一些数据,反之亦然。

Thanks, PM_Dialog

埃斯托克
Offline
Last seen:1个月2周前
Joined:2020-10-07 09:36.
I am having a power off

I am having apower off problem运行此源代码多次。
I would like to know if you have tried running this source code.

埃斯托克
Offline
Last seen:1个月2周前
Joined:2020-10-07 09:36.
嗨pm_dialog,

嗨pm_dialog,

When the sleep mode is set to ON, the first run runs without problems and the next second runturns off一开始就开始。

When the sleep mode is set to OFF, it operates without problems, so it is presumed that the source related to the sleep mode is damaged.

请让我知道如何检查睡眠模式。

PM_Dialog
Offline
Last seen:1 hour 23 min ago
Staff
Joined:2018-02-08 11:03
Hi euiseok,

Hi euiseok,

>>>当睡眠模式设置为ON时,第一个运行运行而不出现问题,并且在它开始后立即关闭下一秒钟。

Could you please clarify this statement? When the extended sleep mode is enabled, are you able to advertise/connect? What do you mean that “the next second run turns off as soon as it starts”? Do you mean that it stops advertises?

>>>When the sleep mode is set to OFF, it operates without problems, so it is presumed that the source related to the sleep mode is damaged.

The DSPS is using extended sleep mode and HW Flow Control (RTS/CTS) for the UART.

Given that is working perfectly when the extended sleep mode is disabled, this sounds like a UART flow control problem. Can you please check if you are using HW Flow control on your board? Are you using a custom board or any of our DKs?

我还建议用附加的调试器运行它。您能否检查代码是否正确运行,或者将其冻结到断言,WDOG等中?

Thanks, PM_DIalog

埃斯托克
Offline
Last seen:1个月2周前
Joined:2020-10-07 09:36.
嗨pm_dialog,

嗨pm_dialog,

“下一个第二次跑步后立即开始”

What this means is that the DK board is powered off, stopping all operations including debugging and advertising.

一侧有一个DK板。另一方面是TERA术语(USB到UART)
Of course, Tera Term has set up RTS/CTS.

When the sleep mode is set to ON, the code runs without problems, as seen by the debugger on the first run.
On the second run, everything is turned off, including the debugger.

PM_Dialog
Offline
Last seen:1 hour 23 min ago
Staff
Joined:2018-02-08 11:03
Hi euiseok,

Hi euiseok,

您是否可以使用DSP的Keil版本和按照对话框进行复制此行为?

Thanks, PM_Dialog

埃斯托克
Offline
Last seen:1个月2周前
Joined:2020-10-07 09:36.
如果我使用keil运行dsps,

如果我使用keil运行DSP,则睡眠模式下不会出现问题。