使用IDE - 智能代码段Studio配置问题

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
11个帖子/ 0新
最后一篇
oscar_choi.
离线
最后一次露面:1 year 6 months ago
加入:2017-02-15 05:59
使用IDE - 智能代码段Studio配置问题

亲爱的对话支持,

我对DA1468X SDK进行了新鲜感,我有一个关于克隆项目的问题。我的步骤如下:
首先,我创建一个文件(如“mm”)/ sdkroot / projects / demos /,然后在/ sdkroot / projects / demos / mm /下面创建一个名为my_test的项目文件,然后克隆一个项目-'ble_adv'下/ sdkroot / projects / demos / to / sdkroot / projects / demos / mm / my_test。
I have modified needed files reference to User_manual_Smart_Snippets_Stdio_1.5.3.pdf, but building my cloned project-my_test, it has some issues: cant find bsp_definition.h and other include files, because i added one directory-- 'mm' on /SDKROOT/projects/demos/, it cant find SDK path. To solve this problem, what other configuration do i modify.
期待你的答案,谢谢

Device:
oscar_choi.
离线
最后一次露面:1 year 6 months ago
加入:2017-02-15 05:59
不,我只使用他的帐户

不,我只使用他的帐户

mt_dialog.
离线
最后一次露面:1 month 2 weeks ago
职员
加入:2015-06-08 11:34
嗨oscar_choi,

嗨oscar_choi,

为了克隆一个项目,请按照以下步骤操作:

  • 转到您想要克隆的项目的目录,并用新名称制作项目的副本。
  • Go in the .project file of the new copied project and change the name between the tags to the project's name.
  • 在Eclipse和Build中导入新项目。

或者您只能在DK_Apps \ Demos目录中创建一个文件夹(例如BLE_ADV_2)并复制,从Eclipse IDE粘贴项目(当Eclipse为名称引出时,为新项目提供一个,并将其设置为空文件夹在您之前创建的Demos目录中)。

谢谢mt_dialog.

oscar_choi.
离线
最后一次露面:1 year 6 months ago
加入:2017-02-15 05:59
亲爱的mt_dialog,

亲爱的mt_dialog,

我知道你提供的这个程序,如果根据你的指南,克隆一个项目,那就可以了。
but now my procedure is different with that:
1)在/ dk_apps / demos中创建“my_test”文件夹
2)在''my_test'文件夹下创建'test01'文件夹,然后将“ble_adv”文件夹的连接器复制到“test01”文件夹,请参阅上面的指南以修改新的项目-test01,并构建,它将在下面有错误:
\dk_apps\demos\my_test\test01\config\custom_config_qspi.h:30:29: fatal error:
bsp_definitions.h:没有这样的文件或目录
#include "bsp_definitions.h"

This difference is my file directory is /dk_apps/demos/my_test/test01, and test01 folder is this new cloning project. For this situation, how to resolve inclusion issue above. The bsp_definitions.h is under /SDK/bsp/.
期待你的答案,非常感谢

mt_dialog.
离线
最后一次露面:1 month 2 weeks ago
职员
加入:2015-06-08 11:34
嗨oscar_choi,

嗨oscar_choi,

The way mentioned above is the recommended way of cloning a project, and for eclipse to maintain the directories as they should be in order not to mess with the allready set directories. If you insist on your method then you should start modifying the path settings in eclipse in order the code to compile. Changes that should be perform on my side when following the procedure that you have mentioned above.

  • Create a folder "test" in the demos folder and then inside the "test" folder an additional folder named "test01"
  • 从“BLE_ADV”项目中复制文件并更改.project文件中的名称
  • import the project in eclipse
  • open the properties of the project and go to "Resource" -> "Linked Resources" -> and change the SDKROOT directory to the proper directory in order to point to the parent folder that the sdk folder is located.
  • Go to the folder sdk/bsp_include (its should be empty) and check the properties of this folder, in the "Resource" option click the "Edit" button and set the proper directory in order to point to the sdk\bsp\include from the PROJECT_LOC.
  • 打开项目的属性以及“设置”选项中的“C / C ++构建”中的属性“Cross Arm C链接器” - >“Libraries”更改库搜索路径...... / SDK /接口/ BLE /堆栈// da14681-01到相应的目录。
  • 之后代码应该编译。

谢谢mt_dialog.

oscar_choi.
离线
最后一次露面:1 year 6 months ago
加入:2017-02-15 05:59
Hi MT_dialog,

Hi MT_dialog,

根据上面的指南,我在“设置”选项“Cross Arm C链接器” - >“Libraries”中配置“资源 - >链接资源”和“C / C ++构建”,然后构建此项目,编译成功,但出现链接器错误:

Building target: /my_test/test_01.elf
调用:交叉臂C链接器
D:/ DiaSemi / SmartsnippetsStudio / GCC / 4_9-2015Q3 / BIN /../ LIB / GCC / ARM-NOR-EABI / 4.9.3 /../../../../ ARM-None-EABI /bin / ld.exe:无法打开地图文件
D:/diasemi/smartsnippetsstudio/tools/mingw64_targeting32/msys/1.0/my_test/test_01.map:没有这样的文件或目录
collect2.exe: error: ld returned 1 exit status
使:*** [/ my_test/test_01.ETRER 1

我修改了库搜索路径,并在库搜索路径中添加了“\ SDK \ BSP \ MISC”路径。此外,在构建我的项目后,在main.c文件中,某些函数,例如静态void system_init(),cy_sys_cli_init(),cm_apb_set_clock_divider,cm_ahb_set_clock_divider有Codan错误。我对此感到困惑。
请帮帮我,非常感谢。

FYI,我复制的项目是BLE_ADV

oscar_choi.
离线
最后一次露面:1 year 6 months ago
加入:2017-02-15 05:59
亲爱的mt_dialog,

亲爱的mt_dialog,

Now, I modified my .project file again, compiling and linking my project seem successful, because in console tab, it shows building is finished and in DA14681-01-Release_QSPI file, it has generated .bin, .elf, .map files. But in problem tab, it shows some errors, the errors is static void system_init() function: cy_sys_cli_init(), cm_apb_set_clock_divider(), cm_ahb_set_clock_divider() can not be resolved. In addition, in my project workplace, the sys_clock_mgr.c under /sdk/cpm has so many cardon errors. It seems that the system clock has issue, but what does result in it. I am confused.

Looking forward to your reply,
Thanks

mt_dialog.
离线
最后一次露面:1 month 2 weeks ago
职员
加入:2015-06-08 11:34
嗨oscar_choi,

嗨oscar_choi,

通过上述过程(如果完成正确,路径是正确的)应该编译并链接复制的项目(在我的身边测试而没有任何问题或错误),如果您获得提及的错误,那么我可以假设的是路径未设置,因为它们应该以指向您的复制项目。Parcher在工具所在目录中搜索的事实是,我认为指向我以前的假设。test_01.map应该位于项目位置,我认为它位于demos / my_test / test_01 / da14681-01-sefault_qspi或debug目录中,而不是在工具所在的目录中。

Regarding the additional errors that you get during compilation, this is an eclipse issue, if the console returns with a success in compiling the project but the IDE still holds with some un-explained errors then your project should be ok. Most probably if you delete the project from the workspace and re-import, those errors will disappear.

谢谢mt_dialog.

oscar_choi.
离线
最后一次露面:1 year 6 months ago
加入:2017-02-15 05:59
亲爱的mt_dialog,

亲爱的mt_dialog,

你上面的假设是正确的,非常感谢!!!

ramesh.96421
离线
最后一次露面:3 years 6 months ago
加入:2017-07-24 09:50
hi dialog_support.

hi dialog_support.

在这里,我正在使用DA14681女儿板和母板。我下载SDK和测试LED闪烁示例与Freertos_Retarget模板中的项目在其工作罚款中。
SDK是集成了免费的操作系统,但我想要的to create a sample project with low level APIs (example: cm_sys_clk_set(sysclk_XTAL16M); ) with out use of freertos
support. i do not want to use free rtos.
帮助我如何做到这一点
provide me any documents or resources regarding that

谢谢
ramesh.

mt_dialog.
离线
最后一次露面:1 month 2 weeks ago
职员
加入:2015-06-08 11:34
Hi ramesh96421,

Hi ramesh96421,

Please check the answer in your other posthttps://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...

谢谢mt_dialog.