亲爱的对话支持,
我对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,
为了克隆一个项目,请按照以下步骤操作:
或者您只能在DK_Apps \ Demos目录中创建一个文件夹(例如BLE_ADV_2)并复制,从Eclipse IDE粘贴项目(当Eclipse为名称引出时,为新项目提供一个,并将其设置为空文件夹在您之前创建的Demos目录中)。
谢谢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/.
期待你的答案,非常感谢
嗨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.
谢谢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
亲爱的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
嗨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.
亲爱的mt_dialog,
你上面的假设是正确的,非常感谢!!!
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.
Hi ramesh96421,
Please check the answer in your other posthttps://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...
谢谢mt_dialog.