你好。我对你的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!
嗨字幕,
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.
谢谢您的答复。我没有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
嗨字幕,
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.
你好,对话人员! \ Dialogionary \ 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.
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 \
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.
Hi joachimkr,
谢谢你的问题。
谢谢,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同样包括帕特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?
嗨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.
Hello,
The steps you provided worked.
Thanks,
David
嗨dsteury,
很高兴你识上你的问题。
谢谢,PM_DIALOG.