Beginner questions regarding DA14531 and SmartSnippets Studio

⚠️
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.
10个帖子/ 0新
Last post
thespixxyq
Offline
最后一次露面:2个月3周前
加入:2020-01-17 17:34
Beginner questions regarding DA14531 and SmartSnippets Studio

你好。我对你的DA14531非常感兴趣,因为它看起来像我的项目的完美SoC。我初学者,我以前从未使用过任何对话的对话;直到2周前,我从未听说过对话。但要提出问题。

1)我将使用外部SPI Flash,SPI IMU传感器和32kHz水晶。在这种情况下,我需要将MISO和SCK重新映射到OTP内存中的另一个引脚,对吧?例如MISO P0_2和SCK P0_5会好吗?

2)使用SPI闪光灯 - 我是否能够为Flash和IMU使用此SPI接口?

3) Projects. I downloaded SmartSnippets Studio, SDK read guides and... there really is no anything like "create new empty project" but with the important things set? Do I really have to clone an example project and edit it to create my own project? I don't like this method so much. At least if there was just simple blink project (GCC, not Keil), where I can just delete like 4 lines to have empty project. I can see there only prox_reporter.

4) Speaking of prox_reporter, when I import it, Studio shows me:

Invalid project path: Include path not found (C:\mypath\sdk\platform\driver\spi_hci).

在Keil中开放的同一项目似乎很好。我不知道这是一个错误还是只是一个不重要的东西。但只是这个进口。

5) When I import prox_reporter to Studio, click copy, click paste, I get an 'internal error: null argument:' and then there is my new project but with no SDK directories... do not know how to describe it, look here:https://i.imgur.com/kov457i.png. Now there is like hundreds of errors and it is weird since I have my SDK in 'C:\path\to\workspace\sdk\' and it shows warnings like

项目路径无效:包含未找到的路径(c:\ path \ sdk \ app_modules \ api)。

- 警告路径中缺少两个目录。

I think this is all I need to know for now (I hope I did not forget anything). Thank you in advance!

Device:
PM_DIALOG.
Offline
最后一次露面:1天8小时前
Staff
加入:2018-02-08 11:03
嗨字幕,

嗨字幕,

Thanks for your question online and glad that you are started with DA14531. Can you please indicate if you have any of our Development Boards? If yes, which one do you have?

Questions 1: As far as I can understand you would like to use the DA14531 SoC to design a custom board. If I misunderstood it please correct me. The SPI signals can be remapped in any GPIO. Please check Table 1 in the datasheet. Keep in mind that OTP stands for One Time Programmable, thus you can’t erase and re-write the OTP multiple times. You should burn the OTP if you are referring to a final product.

Question 2: Do you mean same GPIOs for the Flash and the IMU? It would be very helpful to share more information about your project requirements.

Question 3: The SDK includes two templates for starting your own application which are located under 6.0.12.1020\projects\target_apps\template SDK path. However, only the pxp_reporter includes a GCC based project and you should take it a reference.

问题4:您是如何端口PXP_Reporter项目的?一旦工具打开,您应该定义SDK路径。然后,您应该打开Eclipse IDE并从现有工作区导入PXP_Reporter项目。这应该是开箱即用的。

Question 5: Please read section 4 Importing the Eclipse/GCC Project in theDA14585 IoT Sensors Reference Application with Eclipse GCC: AN-B-064document. You should follow the same procedure to include the pxp_reporter.

General suggestions:

我强烈建议您从以下文档开始,以了解SDK架构以及如何使用DA14531。

http://lpccs-docs.dialog-semiconductor.com/UM-B-119_DA14585-DA14531_SW_Platform_Reference/Introduction/Introduction.html

http://lpccs-docs.dialog-semiconductor.com/Tutorial_SDK6/introduction.html

谢谢,PM_DIALOG.

thespixxyq
Offline
最后一次露面:2个月3周前
加入:2020-01-17 17:34
谢谢您的答复。

谢谢您的答复。我没有Dev Board,也没有SoC,我打算只有SoC和实验。

1, 2) Yes, I am planning to make custom board. I will have SPI flash, SPI IMU, maybe SPI... something else and I could not find out if I can connect those other components to the SPI interface which will flash be connected to. Will I need to have one SPI interface defined in OTP just for the flash and the other SPI interface in code for other components? - will I need like MISO_flash, MISO_others, MOSI_flash, MOSI_others etc.? Or I will connect everything to single interface? Also in SDK drivers I see there is "spi" and "spi_flash" so it confuses me a little.
Also is it even possible to have multiple interfaces?
I have spent some time reading docs but these are the things I could not find or just missed. (edit: it was datasheet actually, maybe that's why I couldn't find it)

3) I see. I wish there was just something like empty template doing nothing (or blink).

4) I imported it like docs says. But 'sdk/platform/driver/spi_hci' does not exist, so I assume this include should not be there? Also there is no mention about 'spi_hci' in SDK docs so I think that include should not be there. But the project is imported correctly, just this one

5) I have seen another Dialog's document which said I should "clone" the project after importing so I will keep pre-made example intact. But after cloning it shows hundreds of errors. So should I clone it or not?

我现在要看那些文件。谢谢!

顺便说一句。我希望这个论坛有一个警告“哟u really want to leave this site?" or at least links opened in new tab by default. I clicked on link and my message disappeared because of it :D

PM_DIALOG.
Offline
最后一次露面:1天8小时前
Staff
加入:2018-02-08 11:03
嗨字幕,

嗨字幕,

My recommendation would be to start with any of our Development Boards, run the tutorials and SDK example, and then start developing a custom board. In addition, in the DA14531 product page I would suggest you to readAN-B-075: DA14531 Hardware Guidelinesdocument which provides hardware design guidelines. Can you please describe the procedure you are following in order to open the pxp_reporter?

谢谢,PM_DIALOG.

joachimkr
Offline
最后一次露面:2个月3周前
加入:2018-07-06 08:58
你好,对话人员!

你好,对话人员!
I do not want to open another beginner's section, because this one already contains useful details.
So here is my setup:
我有一个DA15431 Pro开发套件,并使用Keil IDE开始。我选择了模板项目\ target_apps \ template \ empty_peripheral_template。
DA14531应用程序已启动,我能够与GATT服务进行通信,因此这很好。
现在,这里来我的问题:
1.) I wonder, if it is possible, to use the eclipse environment to do the same. The Keil IDE is limited to 32 KBytes and according to the map file
C:\ Users \ \ Dialogionary \ SDK \ 6.0.12.1020.2 \ Projects \ target_apps \ template \ empty_peripheral_template \ keil_5 \ out_da14531 \ listings
this code consumes roughly 16K bytes. Adding my own application code, created on another CPU, might break the Keil limit. The debug image for that has 20 K bytes.
I used the eclipse (smart snippets studio) environment for the DA14695 already and recognise, that one is a M33, this one a M0 core.
I found the eclipse environment much better and have no budget to buy a Keil IDE - I feel that is much too expensive.
2.) Releated: I still did not find out, what my application size can be as maximum, using the RAM for full debugging. What is my limit with DA14531 ?
注意:我的RAM要求非常低。疏忽,除了图书馆要求。
3.)我可以利用SOC的能力从SPI Flash ROM运行,仍然使用一个SPI I / O外设,SOC?我打算使用较大的住房。
And closely related: Can I make use of the SPI Flash ROM with the DA14531 Pro Development kit?

4.)添加了问题:我在DA14695上看到的是Freertos在样本中,我的代码基于Freertos。所以,是freertos的一部分你的例子
da14531?

Sorry for this large set of questions. But I need these very basic instructions.
Best Regards,
joachim

PM_DIALOG.
Offline
最后一次露面:1天8小时前
Staff
加入:2018-02-08 11:03
Hi joachimkr,

Hi joachimkr,

谢谢你的问题。

  1. The SDK6.0.12 incudes a project which is based on Eclipse. This project is the proximity reporter and it is located under projects\target_apps\ble_examples\prox_reporter\Eclipse SDK path. You can use the proximity reporter project as a reference. In addition, you can use the SmartSnippets Studio which is provided by Dialog in order to build, debug and download firmware into System-RAM. Please visit the DA14531 product page and download the latest version of the tool. If you load the proximity reporter project, you should build it as it as provided be the SDK. All the other projects are based on Keil IDE.
  2. 你能澄清一个问题#2吗?DA14531具有可以保留的三(3)个RAM细胞。如果在da1458x_config_advanced.h文件中,CFG_Custom_scatter_file标志未定义,则系统知道要基于默认SDK分散文件保留哪个块。始终保留RAM3块,因为它包含ROM数据。例如,如果应用程序代码可以适合RAM1,则将关闭RAM2块。您是否意味着什么可能是可以加载到系统RAM中的最大二进制图像?
  3. 你的意思是,同样的GPIO应该是SPI闪光和另一个SPI外围的分享吗?是的,您可以使用DA14531 Pro开发套件中的SPI Flash。请检查AN-B-072: DA14531 Booting Optionsapplication note.
  4. DA1469X和DA1469X产品系列基于实时抢占式操作系统,即具有多任务功能的FreErtos。所有我们的DA145xx(xx:80/81/83/85/86/31)基于一个简单的雷电竞官网登录事件驱动的内核,不提供多任务功能。内核的核心是在应用程序主循环中运行的调度程序。调度程序检查事件是否已设置并通过调用相应的处理程序设置挂起的事件。该事件可以是BLE或TIMER事件,两个任务之间的消息。请检查第2.3节。实时内核UM-B-119: DA14585-DA14531 SW Platform Reference有关更多信息的用户手册。

谢谢,PM_DIALOG.

达特雷古斯
Offline
最后一次露面:9个月4周前
加入:2016-09-28 16:05
Hello,

Hello,

I hope it's ok if I add to this also because I have the same problem as points 4 and 5 in the original post.

我正在尝试将prox_reporter复制到prox_reporter2。

当我导入prox_reporter同样包括帕特h warning as point 4 (see point_4 screenshot).

我制作了新目录:

Projects \ target_apps \ ble_examples \ prox_reporter2 \ Eclipse

and I copied the src directory from prox_reporter into prox_reporter2 directory.

When I copy project into projects\target_apps\ble_examples\prox_reporter2\Eclipse, I get an error Copy Problems, Internal error: null argument: (see point_5 screenshot)

I also see an issue with an invalid location for linked api folder in prox_reporter Properties -> Resource -> Linked Resources -> Linked Resources. It's looking for location C:\Bluetooth\dev_code\bitbucket\531\sdk_585\sdk\app_modules\api, which I don't have (see screenshot_6).

Can I delete the linked api folder and include path to spi_hci?

Attachment:
PM_DIALOG.
Offline
最后一次露面:1天8小时前
Staff
加入:2018-02-08 11:03
嗨dsteury,

嗨dsteury,

The Eclipse based edition of prox_reporter reporter project should be run out-of-the box and as provided by the SDK6.0.12. Not sure about the procedure you followed in order to clone the prox_reporter project, but I would strongly recommend to follow the steps below in a clean SDK directory.

您不应该复制spi_hci文件夹。只需遵循上面的步骤以克隆该项目。在没有.metadata文件夹的情况下直接拥有一个新的SDK工作空间很重要。

谢谢,PM_DIALOG.

达特雷古斯
Offline
最后一次露面:9个月4周前
加入:2016-09-28 16:05
Hello,

Hello,

The steps you provided worked.

Thanks,

David

PM_DIALOG.
Offline
最后一次露面:1天8小时前
Staff
加入:2018-02-08 11:03
嗨dsteury,

嗨dsteury,

很高兴你识上你的问题。

谢谢,PM_DIALOG.