How to run DSPS in Snippets Studio

Learn MoreFAQsTutorials

19 posts / 0 new
Last post
euiseok
Offline
Last seen:1 month 5 days ago
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.
I'm trying to move DSPS from keil to snippets.
By the way, the version of SDK included in da14585 DSPS (v6.150.4.50) is v6.0.11.933.
I cannot download this SDK separately or get any information.

  • 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?
Keywords:
Device:
PM_Dialog
Offline
Last seen:6 hours 37 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

euiseok
Offline
Last seen:1 month 5 days ago
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)

But when I start to debug, there is a 50% chance it powers off.
In the remaining 50% probability, I can read and write using ble.
I worked based on the prox_reporter project and I can't understand why this is happening.

PM_Dialog
Offline
Last seen:6 hours 37 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

euiseok
Offline
Last seen:1 month 5 days ago
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:6 hours 37 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

euiseok
Offline
Last seen:1 month 5 days ago
Joined:2020-10-07 09:36
I behaved like this in SSS v2

I uploaded the file again.

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

I behaved like this in SSS v2.0.14.1748

1. Extract it to the "DA14585_DSPS" folder.

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

3. Import the "Eclipse" folder.

4. Clean and build.

请你告诉我详细的造成是什么the problem?

PM_Dialog
Offline
Last seen:6 hours 37 min ago
Staff
Joined:2018-02-08 11:03
Hi euiseok,

Hi euiseok,

I am able to compile the project but I am getting some warnings ( see attached). Is that the same in your side?

Did you download the firmware on the RAM? I saw that the .launch files are missing. The prox_reporter project is the files using the .launch from the 6.0.14.1114\config path.

Thanks, PM_Dialog

euiseok
Offline
Last seen:1 month 5 days ago
Joined:2020-10-07 09:36
I know some warnings exist

I know some warnings exist but I don't know how to change them appropriately.

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?

euiseok
Offline
Last seen:1 month 5 days ago
Joined:2020-10-07 09:36
Hi PM_Dialog,

Hi 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:6 hours 37 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

euiseok
Offline
Last seen:1 month 5 days ago
Joined:2020-10-07 09:36
I have already checked the

I have already checked the normal communication with the android app.

Please tell me if my project file is not working properly (except for power off problem).

PM_Dialog
Offline
Last seen:6 hours 37 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.

You could also try to send some data to the Android app and vice versa.

Thanks, PM_Dialog

euiseok
Offline
Last seen:1 month 5 days ago
Joined:2020-10-07 09:36
I am having a power off

I am having apower off problemwhen running this source code several times.
I would like to know if you have tried running this source code.

euiseok
Offline
Last seen:1 month 5 days ago
Joined:2020-10-07 09:36
Hi PM_Dialog,

Hi PM_Dialog,

When the sleep mode is set to ON, the first run runs without problems and the next second runturns offas soon as it starts.

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.

Please let me know what to check regarding sleep mode.

PM_Dialog
Offline
Last seen:6 hours 37 min ago
Staff
Joined:2018-02-08 11:03
Hi euiseok,

Hi euiseok,

>>>When the sleep mode is set to ON, the first run runs without problems and the next second run turns off as soon as it starts.

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?

I would also recommend to run it with the debugger attached. Can you please check if the code is running correctly, or it freezes into an assertion, WDOG etc.?

Thanks, PM_DIalog

euiseok
Offline
Last seen:1 month 5 days ago
Joined:2020-10-07 09:36
Hi PM_Dialog,

Hi PM_Dialog,

“the next second run turns off as soon as it starts”

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

There is a DK board on one side of BLE. And on the other side is Tera Term (USB to 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:6 hours 37 min ago
Staff
Joined:2018-02-08 11:03
Hi euiseok,

Hi euiseok,

Can you replicate this behavior with the Keil version of the DSPS and as provided by Dialog?

Thanks, PM_Dialog

euiseok
Offline
Last seen:1 month 5 days ago
Joined:2020-10-07 09:36
If I run DSPS using keil, the

If I run DSPS using keil, the problem does not occur in sleep mode.