关于DA14531和SmartSnippets Studio的初学者问题

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
10 posts / 0 new
最后一篇
字幕XYQ.
离线
Last seen:2 months 3 weeks ago
加入:2020-01-17 17:34
关于DA14531和SmartSnippets Studio的初学者问题

Hello. I am really interested in your DA14531, because it looks like perfect SoC for my project. I am beginner, I have never used any Dialog HW before; I have never heard of Dialog until like 2 weeks ago, respectively. But to questions.

1) I am going to use external SPI flash, SPI IMU sensor and 32kHz crystal. In this case I will need to remap MISO and SCK to another pins in OTP memory, right? For example MISO P0_2 and SCK P0_5 would be ok?

2) When using SPI flash - will I be able to use this SPI interface for both flash and IMU?

3)项目。我下载了SmartSnippets Studio,SDK读取指南......真的没有什么类似于“创建新的空项目”,但与设置的重要事项?我真的必须克隆一个示例项目并编辑它以创建自己的项目吗?我不太喜欢这种方法。至少如果只有简单的闪烁项目(GCC,不是Keil),那么我可以删除4行以具有空项目。我可以看到只有prox_reporter。

4)谈到Prox_Reporter,当我导入它时,Studio显示我:

无效的项目路径:找不到路径(c:\ mypath \ sdk \ platform \ driver \ spi_hci)。

This same project opened in Keil seems ok. I don't know if it is an error or just something not important. But just this one import.

5)当我将Prox_Reporter导入Studio时,单击“副本”,单击“粘贴”,我收到“内部错误:”NULL参数:'然后有我的新项目,但没有SDK目录......不知道如何描述它,看这里:https://i.imgur.com/koV457i.png。现在有像数百个错误,因为我在'c:\ path \ to \ workspace \ sdk \'中有我的sdk是很奇怪的,它显示了警告

Invalid project path: Include path not found (C:\path\sdk\app_modules\api).

-- there are missing two directories in that warning path.

我认为这就是我现在需要知道的只是我所需要的(我希望我没有忘记任何东西)。先感谢您!

设备:
PM_Dialog
离线
Last seen:1 day 8 hours ago
职员
加入:2018-02-08 11:03
Hi thespixxyq,

Hi thespixxyq,

感谢您在线的问题,很高兴您开始使用DA14531。您能否注明您是否有任何开发委员会?如果是的话,你有哪一个?

问题1:据我所知,您想使用DA14531 SoC设计定制板。如果我误解了它,请纠正我。可以在任何GPIO中重新映射SPI信号。请在数据表中查看表1。请记住,OTP表示一个时间可编程,因此您无法多次擦除并重新编写OTP。如果您指的是最终产品,则应刻录OTP。

问题2:你的意思是闪光灯和IMU的同样GPIO吗?共享有关项目要求的更多信息会非常有帮助。

问题3:SDK包含两个模板,用于启动您自己的应用程序,该应用程序位于6.0.12.1020 \ projects \ target_apps \模板SDK路径下。但是,只有PXP_Reporter包含基于GCC的项目,您应该将其带参考。

Question 4: How did you port the pxp_reporter project? As soon as the tool is opened, you should define the SDK path. Then you should open the Eclipse IDE and import the pxp_reporter project from the existing workspace. This should be run out of the box.

问题5:请阅读第4节导入Eclipse / GCC项目DA14585 IOT传感器参考应用与Eclipse GCC:AN-B-064文档。您应该按照相同的过程包含PXP_Reporter。

一般建议:

I would strongly recommend you to start with the following documents in order to understand the SDK architecture and how to use the DA14531.

http://lpccs-docs.dialog-semondile.com/um-b-119_da14585-da14531_sw_platform_reference/introduction/introduction.html.

http://lpccs-docs.dialog-seminiondiond.com/tutorial_sdk6/introduction.html.

谢谢,PM_Dialog

字幕XYQ.
离线
Last seen:2 months 3 weeks ago
加入:2020-01-17 17:34
谢谢您的答复。

谢谢您的答复。I do not have dev board nor the SoC yet and I am planning to get just the SoC and experiment just with it.

1,2)是的,我计划制作定制董事会。我将有SPI Flash,SPI IMU,也许是SPI ......还有其他东西,我找不到了我可以将那些其他组件连接到SPI接口,这将闪光连接到。我是否需要在OTP中定义一个SPI接口,只需为闪存和其他组件代码中的其他SPI接口?- 我是否需要喜欢miso_flash,miso_others,mosi_flash,mosi_others等?或者我会将所有内容连接到单个接口?同样在SDK驱动程序中,我看到有“spi”和“spi_flash”所以它让我感到困惑。
也是有多个接口吗?
我花了一些时间阅读文档,但这些是我找不到或刚错过的东西。(编辑:实际上是数据表,也许这就是为什么我找不到它)

3)我明白了。我希望只有像空模板一样的东西,什么都不做(或眨眼)。

4)我像Docs所说的那样导入它。但是'SDK / platform / driver / spi_hci'不存在,所以我认为这个包括不应该在那里?在SDK文档中也没有提到“SPI_HCI”所以我认为包括不应该在那里。但项目是正确的,只是这个

5)我已经看过另一个对话框的文件,称我应该在进口后“克隆”项目,因此我将保留预先实现的例子完好无损。但克隆后,它显示了数百个错误。那么我应该克隆它吗?

I am going to look at those documents now. Thank you!

顺便提一句。我希望这个论坛有一个警报“你真的想离开这个网站吗?”或者默认情况下至少在新标签中打开的链接。我点击了链接,我的邮件因其而消失:D

PM_Dialog
离线
Last seen:1 day 8 hours ago
职员
加入:2018-02-08 11:03
Hi thespixxyq,

Hi thespixxyq,

我的推荐将是从我们的任何开发板开始,运行教程和SDK示例,然后开始开发自定义板。此外,在DA14531产品页面中,我建议您阅读AN-B-075:DA14531硬件指南提供硬件设计指南的文档。您能否描述您所关注的过程,以便打开PXP_Reporter?

谢谢,PM_Dialog

Joachimkr.
离线
Last seen:2 months 3 weeks ago
加入:2018-07-06 08:58
你好,Dialog Staff !

你好,Dialog Staff !
我不想打开另一个初学者的部分,因为这个已经包含了有用的细节。
所以这是我的设置:
I have a DA15431 Pro Development kit and used the Keil IDE to start. I selected the template projects\target_apps\template\empty_peripheral_template.
The DA14531 application was started and I was able to communicate with the GATT services, so that was fine.
Now, here come my questions:
1.)我想知道,如果有可能,使用Eclipse环境做同样的事情。Keil IDE限制为32千字节,并根据地图文件
C:\Users\\Dialog-Semiconductor\SDK\6.0.12.1020.2\projects\target_apps\template\empty_peripheral_template\Keil_5\out_DA14531\Listings
此代码消耗大约16k字节。添加我自己的应用程序代码,在另一个CPU上创建,可能会破坏Keil限制。该调试图像具有20 k字节。
我已经使用了DA14695的Eclipse(Smart Scippets Studio)环境并识别,该一个是M33,这个一个M0核心。
我发现了Eclipse环境更好,没有预算购买Keil IDE - 我觉得这太贵了。
2.)重新安装:我仍然没有发现,我的应用程序大小可以是最大的,使用RAM进行全面调试。我对DA14531的极限是多少?
Note: my RAM requirements are very low. Neglectable, apart from library requirements.
3.) Can I make use of the capability of the SoC to run from SPI Flash ROM and still use one SPI I/O peripheral, with the SoC ? I intend to use the larger housing.
密切相关:我可以使用DA14531 Pro开发套件使用SPI Flash ROM吗?

4.) Added question: What I have seen on the DA14695 is the FreeRTOS is in the samples and my code is based on FreeRTOS. So, is FreeRTOS part of your examples for the
DA14531.?

对不起这一大一大问题。但我需要这些非常基本的指示。
此致,
Joachim

PM_Dialog
离线
Last seen:1 day 8 hours ago
职员
加入:2018-02-08 11:03
嗨joachimkr,

嗨joachimkr,

Thanks for your questions.

  1. SDK6.0.12创建了一个基于Eclipse的项目。该项目是邻近记者,它位于Projects \ target_apps \ ble_examples \ prox_reporter \ eclipse sdk路径下。您可以使用Proximity Reporter项目作为参考。此外,您还可以使用对话框提供的SmartSnippetS Studio,以便构建,调试和下载固件到系统RAM。请访问DA14531产品页面并下载最新版本的工具。如果加载Proximity Reporter项目,则应将其作为SDK构建它。所有其他项目都基于Keil IDE。
  2. Can you please clarify the question #2? DA14531 has three (3) RAM cells that can be retained. If in da1458x_config_advanced.h file, the CFG_CUSTOM_SCATTER_FILE flag is undefined, then the system knows which blocks to retain based on the default SDK scatter file. The RAM3 block is always retained, since it contains the ROM data. For example, if the application code can fit into RAM1, then RAM2 block will be closed. Do you mean what could be the maximum binary image that can be loaded into System-RAM?
  3. Do you mean that same GPIO should be share for SPI Flash and another SPI peripheral ? Yes, you can use the SPI Flash that is in our DA14531 Pro Development kit. Please checkAN-B-072:DA14531启动选项应用笔记。
  4. DA1469x and DA1469x product family are based on a real-time preemptive Operating System namely FreeRTOS which has multitasking capabilities. All our DA145xx (xx : 80/81/83/85/86/31) products based on a simple event driven kernel which doesn’t provide multi-tasking capabilities. The core of the kernel is a scheduler running in the main loop of the application. The scheduler checks if an event is set and services the pending events by calling the corresponding handler. The event may be a BLE or timer event, a message between two tasks. Please check section 2.3. Real Time Kernel inUM-B-119:DA14585-DA14531 SW平台参考user manual for more information.

谢谢,PM_Dialog

dsteury
离线
Last seen:9 months 4 weeks ago
加入:2016-09-28 16:05
你好,

你好,

如果我补充一点,我也希望它还可以,因为我在原始帖子中具有与点4和5的问题相同。

我试图复制prox_reporter prox_reporter2。

When I import prox_reporter I get same include path warning as point 4 (see point_4 screenshot).

I made new directory:

Projects \ target_apps \ ble_examples \ prox_reporter2 \ Eclipse

我将src目录从prox_reporter复制到prox_reporter2目录中。

将项目复制到项目\ target_apps \ ble_examples \ prox_reporter2 \ eclipse时,我收到错误复制问题,内部错误:null参数:(参见point_5屏幕截图)

我还看到了一个问题,其中prox_reporter属性中链接的API文件夹的无效位置 - >资源 - >链接资源 - >链接资源。它正在寻找位置C:\蓝牙\ dev_code \ bitbucket \ 531 \ sdk_585 \ sdk \ app_modules \ api,我没有(请参阅screenshot_6)。

我可以删除链接的API文件夹,并将路径包含到SPI_HCI吗?

附件:
PM_Dialog
离线
Last seen:1 day 8 hours ago
职员
加入:2018-02-08 11:03
Hi dsteury,

Hi dsteury,

基于Eclipse的Prox_reporter Reporter项目版本应运行框中,并按SDK6.0.12提供。不确定您遵循的过程,以便克隆Prox_Reporter项目,但我强烈建议在干净的SDK目录中遵循以下步骤。

You should not copy the spi_hci folder. Just follow the steps above in order to clone the project. It’s important to have a new SDK workspace directly without the .metadata folder.

谢谢,PM_Dialog

dsteury
离线
Last seen:9 months 4 weeks ago
加入:2016-09-28 16:05
你好,

你好,

您提供的步骤工作。

谢谢,

大卫

PM_Dialog
离线
Last seen:1 day 8 hours ago
职员
加入:2018-02-08 11:03
Hi dsteury,

Hi dsteury,

Glad that you figured your issue out.

谢谢,PM_Dialog