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) 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)谈到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) 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。现在有像数百个错误,因为我在'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.
我认为这就是我现在需要知道的只是我所需要的(我希望我没有忘记任何东西)。先感谢您!
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
Thank you for your response. 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) 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)我明白了。我希望只有像空模板一样的东西,什么都不做(或眨眼)。
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 am going to look at those documents now. Thank you!
顺便说一句。我希望这个论坛有一个警告“哟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
Hi thespixxyq,
我的推荐将是从我们的任何开发板开始,运行教程和SDK示例,然后开始开发自定义板。此外,在DA14531产品页面中,我建议您阅读AN-B-075:DA14531硬件指南document which provides hardware design guidelines. Can you please describe the procedure you are following in order to open the pxp_reporter?
谢谢,PM_Dialog
Hello, Dialog Staff !\Dialog-Semiconductor\SDK\6.0.12.1020.2\projects\target_apps\template\empty_peripheral_template\Keil_5\out_DA14531\Listings
I do not want to open another beginner's section, because this one already contains useful details.
所以这是我的设置:
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\
此代码消耗大约16k字节。添加我自己的应用程序代码,在另一个CPU上创建,可能会破坏Keil限制。该调试图像具有20 k字节。
I used the eclipse (smart snippets studio) environment for the DA14695 already and recognise, that one is a M33, this one a M0 core.
我发现了Eclipse环境更好,没有预算购买Keil IDE - 我觉得这太贵了。
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 ?
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.
And closely related: Can I make use of the SPI Flash ROM with the DA14531 Pro Development kit?
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
嗨joachimkr,
Thanks for your questions.
谢谢,PM_Dialog
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时,我得到的相同,包括Path警告为点4(参见Point_4屏幕截图)。
I made new directory:
projects\target_apps\ble_examples\prox_reporter2\Eclipse
我将src目录从prox_reporter复制到prox_reporter2目录中。
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?
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
Hello,
您提供的步骤工作。
谢谢,
大卫
Hi dsteury,
Glad that you figured your issue out.
谢谢,PM_Dialog