错误编译加速度计示例项目

Learn MoreFAQsTutorials

11 posts / 0 new
Last post
贾森
Offline
Last seen:1 year 8 months ago
加入:2019-01-23 10:26
错误编译加速度计示例项目

im trying to compile SW Example: Reading out an I2C accelerometer and sending notification data project .but it shows an error .\out_585\ADXL345_585.axf: error: L6031U: Could not open scatter description file .\..\src\config\copied_scatter.sct: No such file or directory. how can i fix thiss error?????????????????????????????

Device:
PM_Dialog
Offline
Last seen:1周18小时前
工作人员
加入:2018-02-08 11:03
嗨Jasu,

嗨Jasu,

I would suggest you to do again the steps described into theSW Example: DA1458x Example Setupto a clean SDK (latest version 6.0.10) workspace. Could you please try to link the SW example to a clean SDK root? This error means that the linker is not able to find the copied_scatter.sct scatter file. Also, from the Keil IDE, please go to the Project -> Options for target and then navigate to the linker tab. In the “Scatter File” section you should have .\..\src\config\copied_scatter.sct path and if you hit the “Edit” button you will have to open it.

谢谢,PM_Dialog

贾森
Offline
Last seen:1 year 8 months ago
加入:2019-01-23 10:26
when I try to run get this

when I try to run get this error
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”
用法:dlg_make_keil5_env_v1.002.py [-h] -sdkpath sdkpath
dlg_make_keil5_env_v1.002.py: error: the following arguments are required: -sdkpath/--sdkpath

PM_Dialog
Offline
Last seen:1周18小时前
工作人员
加入:2018-02-08 11:03
嗨Jasu,

嗨Jasu,

为混乱道歉 - 但是我复制/粘贴了一个错误的答案,这就是我删除我的上一篇文章的原因。您能否检查python脚本是否在project_environment文件夹中兴奋?此外,您能否在-sdkpath之后有一个“空间”吗?

谢谢,PM_Dialog

贾森
Offline
Last seen:1 year 8 months ago
加入:2019-01-23 10:26
i give “space” after the

我在-sdkpath后给出“空间”,但仍然得到相同的错误消息。

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"
用法:dlg_make_keil5_env_v1.002.py [-h] -sdkpath sdkpath
dlg_make_keil5_env_v1.002.py: error: the following arguments are required: -sdkpath/--sdkpath

如何解决此错误?

PM_Dialog
Offline
Last seen:1周18小时前
工作人员
加入:2018-02-08 11:03
嗨Jasu,

嗨Jasu,

  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 \ da1d14585_sdk_6.0.10.511_0 \ da1a585_sdk路径并将6.0.10.511文件夹复制到Workspace文件夹中
  5. 打开Windows PowerShell
  6. cd C:\Workspace\1wire_example\project_environment
  7. python dlg_make_keil5_env_v1.002.py -sdkpath“c:\ workspace \ 6.0.10.511”
  8. 1wire_example.uvprojx使用正确的SDK路径成功更新...

After the procedure above you should be able to link the SW example with the SDK. I tested from my side following the procedure that I described. Be aware that I am using in Python3.7 version.

谢谢,PM_Dialog

贾森
Offline
Last seen:1 year 8 months ago
加入:2019-01-23 10:26
this procedurehelp me to to

this procedurehelp me to to link the SW example with the SDK

谢谢,

JJ

PM_Dialog
Offline
Last seen:1周18小时前
工作人员
加入:2018-02-08 11:03
嗨Jasu,

嗨Jasu,

很高兴您能够运行SW示例并感谢您接受答案。

谢谢,PM_Dialog

ditterhung
Offline
Last seen:6 months 2 weeks ago
加入:2017-12-20 06:36
Hi Sir,

Hi Sir,

我想try the example code (i2c_accel_data_notifcation.zip.zip.),but I always getting the error message as below. Could you help to fix the error, Thanks a lot!

My procedure is as follows

1.在C盘下创建一个“工作区”文件夹。(C:\ Workspace)
2.再次下载SW示例并将其保存在C:\ Workspace位置和提取物下
3.Copy - 在工作区中的CYPER 585 SDK,然后提取DA14585_SDK_6.0.10.511_0.zip
4.Go into C:\Workspace\DA14585_SDK_6.0.10.511_0\DA14585_SDK path and copy the 6.0.10.511 folder into Workspace folder
5.打开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.
Traceback (most recent call last):
文件“dlg_make_keil5_env_v1.002.py”,第545行,<模块>
run_application(args["sdkpath"])
File "dlg_make_keil5_env_v1.002.py", line 532, in run_application
setup_keil5_project_environment()
File "dlg_make_keil5_env_v1.002.py", line 450, in setup_keil5_project_environment
build_uvoptx_element_debugopt(XML_PATTERN_TIFILE)
File "dlg_make_keil5_env_v1.002.py", line 126, in build_uvoptx_element_debugopt
tree = ET.parse(dlg_uvoptx_file)
File "C:\Program Files (x86)\Python36-32\lib\xml\etree\ElementTree.py", line 1196, in parse
tree.parse(source, parser)
File "C:\Program Files (x86)\Python36-32\lib\xml\etree\ElementTree.py", line 586, in parse
source = open(source, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'ADXL345.uvoptx'

附件:
PM_Dialog
Offline
Last seen:1周18小时前
工作人员
加入:2018-02-08 11:03
嗨,

嗨,

谢谢你让我们知道。我会在内部检查,我会尽快回复你。

谢谢,PM_Dialog

PM_Dialog
Offline
Last seen:1周18小时前
工作人员
加入:2018-02-08 11:03
嗨,

嗨,

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.

//www.wsdof.com/products/connectivity/bluetooth-low-energy/smartbond-da14585-and-da14586

谢谢,PM_Dialog