我试图编译SW示例:读出一个I2C加速度计和发送通知数据项目。但它显示了错误。\ out_585 \ adxl345_585.axf:错误:l6031u:无法打开散点图文件。\ .. \ src \ config \copied_scatter.sct:没有这样的文件或目录。如何解决这个问题错误?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
Device:
嗨jasu,
我建议你再次这样做的步骤示例:DA1458X示例设置到一个干净的SDK(最新版本6.0.10)工作区。您可以尝试将SW示例链接到干净的SDK根目录吗?此错误意味着链接器无法找到copied_scatter.sct scatter文件。此外,从Keil IDE,请转到Project - >目标选项,然后导航到“链接器”选项卡。在“分散文件”部分中,您应该拥有。\ .. \ src \ config \ copied_scatter.sct路径,如果您点击“编辑”按钮,则必须打开它。
谢谢,PM_DIALOG.
当我尝试运行时收到此错误
C:\Users\bbroy\Downloads\i2c_accel_data_notiifcation\project_environment> python dlg_make_keil5_env_v1.002.py -sdkpath"D:DA14585_SDK_6.0.10.511_0"
usage: dlg_make_keil5_env_v1.002.py [-h] -sdkpath SDKPATH
dlg_make_keil5_env_v1.002.py:错误:需要以下参数:-sdkpath / - sdkpath
嗨jasu,
Apologies for the confusion -but I copied/pasted a wrong answer , that’s why I deleted my last post. Could you please check if the python script is excited in the project_environment folder? Also, could you please have a “space” after the -sdkpath?
谢谢,PM_DIALOG.
我之后给出“空间”-sdkpath but still getting tht same error msg .
C:\ users \ bbroy \ 1wire_example(1)\ project_environment> python。\ dlg_make_keil5_env_v1.002.py -sdkpath“c:\ users \ trek02 \ da14585_sdk \ 6.0.10.511”
usage: dlg_make_keil5_env_v1.002.py [-h] -sdkpath SDKPATH
dlg_make_keil5_env_v1.002.py:错误:需要以下参数:-sdkpath / - sdkpath
how to fix this error ?
嗨jasu,
在上面的过程之后,您应该能够将SW示例与SDK链接。我在我描述的程序后从我的侧面测试过。请注意,我在python3.7版中使用。
谢谢,PM_DIALOG.
此过程提示我将SW示例与SDK联系起来
Thanks,
JJ.
嗨jasu,
Glad that you are able to run the SW example and thanks for accepting my answer.
谢谢,PM_DIALOG.
你好,先生,
我想尝试示例代码(I2C_Accel_Data_Notifcation.zip),但我总是如下收到错误消息。你可以帮助解决错误,谢谢!
我的程序如下
1.Create a “Workspace” folder under C disk. (C:\Workspace)
2.Download again the SW example and save it under C:\Workspace location and the extract it
3.Copy-past a clean 585 SDK in the Workspace and then extract the DA14585_SDK_6.0.10.511_0.zip
4.进入C:\ Workspace \ Da1a585_sdk_6.0.10.511_0 \ da1a585_sdk路径并将6.0.10.511文件夹复制到Workspace文件夹中
5.Open the Windows PowerShell
6.CD C:\ Workspace \ i2c_accel_data_notifcation \ project_environment \
7.python dlg_make_keil5_env_v1.002.py -sdkpath "C:\Workspace\6.0.10.511"
-----------------------------------------------------------------------------------------------
......
C:\ Workspace\6.0.10.511\\sdk\app_modules\api\app_api.h
C:\ Workspace \ 6.0.10.511 \\ SDK \ App_Modules \ API \ App_Callback.h
C:\ Workspace\6.0.10.511\\sdk\app_modules\api\app_default_handlers.h
C:\ Workspace\6.0.10.511\\sdk\app_modules\api\app_easy_gap.h
C:\ Workspace \ 6.0.10.511 \\ SDK \ App_Modules \ API \ App_easy_msg_utils.h
C:\ Workspace \ 6.0.10.511 \\ SDK \ App_Modules \ API \ App_easy_Security.h
C:\ Workspace\6.0.10.511\\sdk\app_modules\api\app_easy_timer.h
C:\ Workspace\6.0.10.511\\sdk\app_modules\api\app_entry_point.h
C:\ Workspace\6.0.10.511\\sdk\app_modules\api\app_mid.h
C:\ Workspace\6.0.10.511\\sdk\app_modules\api\app_msg_utils.h
C:\ Workspace\6.0.10.511\\sdk\app_modules\api\app_security.h
C:\ Workspace\6.0.10.511\\sdk\app_modules\api\app_task.h
C:\ Workspace\6.0.10.511\\sdk\app_modules\api\app_user_config.h
C:\ Workspace \ 6.0.10.511 \\ SDK \ Platform \ Arch \ Arch_api.h
C:\ Workspace \ 6.0.10.511 \\ SDK \ Platform \ Arch \ Main \ Arch_Wdg.h
C:\ Workspace\6.0.10.511\\sdk\platform\core_modules\arch_console\arch_console.h
. . \ src \ config \ da1458x_config_advanced.h
。。\src\config\da1458x_config_basic.h
.. \ src \ config \ user_callback_config.h
。。\src\config\user_config.h
.. \ src \ config \ user_modules_config.h
。。\src\config\user_periph_setup.h
.. \ src \ config \ user_profiles_config.h
.. \ src \ custom_profile \ user_custs_config.c
.. \ src \ custom_profile \ user_custs1_def.c
.. \ src \ platform \ user_periph_setup.c
。。\src\user_app\user_accelerometer.c
.. \ src \ user_drivers \ user_adxl345.c
。。\src\user_drivers\user_i2c.c
回溯(最后最新呼叫):
File "dlg_make_keil5_env_v1.002.py", line 545, in
run_application(args [sdkpath“])
文件“dlg_make_keil5_env_v1.002.py”,第532行,在run_application中
setup_keil5_project_environment()
文件“dlg_make_keil5_env_v1.002.py”,第450行,setup_keil5_project_environment
build_uvoptx_element_debugopt(xml_pattern_tifile)
file“dlg_make_keil5_env_v1.002.py”,第126行,在build_uvoptx_element_debugopt中
tree = ET.parse(dlg_uvoptx_file)
文件“c:\ program files(x86)\ python36-32 \ lib \ xml \ etree \ follettree.py”,第1196行,在parse中
树.parse(Source,Parser)
文件“c:\ program files(x86)\ python36-32 \ lib \ xml \ etree \ follettree.py”,第586行,在parse中
source =打开(源,“rb”)
filenotfounderror:[errno 2]没有这样的文件或目录:'adxl345.uvoptx'
Hi ditterhung,
Thanks for let us know. I will check it internally and I will respond you as soon as possible.
谢谢,PM_DIALOG.
Hi ditterhung,
I would suggest you to visit the DA14585/6 support site and re-download the I2C software example. Apologies, but the .uvprojx file was missing.
https://www.dialog-seminile.com/produ亚博电竞菠菜cts/connectivity/bluetooth-low-energy/smartbond-da14585-and-da14586.
谢谢,PM_DIALOG.