error compiling accelerometer example project

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
11 posts / 0 new
Last post
Jasu
Offline
Last seen:1 year 12 months ago
加入:2019-01-23 10:26
error compiling accelerometer example project

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 day 23 hours ago
工作人员
加入: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.

Thanks, PM_Dialog

Jasu
Offline
Last seen:1 year 12 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"
usage: 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 day 23 hours ago
工作人员
加入:2018-02-08 11:03
嗨Jasu,

嗨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?

Thanks, PM_Dialog

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

i give “space” after the -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: error: the following arguments are required: -sdkpath/--sdkpath

how to fix this error ?

PM_Dialog
Offline
Last seen:1 day 23 hours ago
工作人员
加入: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. 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. Open the 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 IS SUCCESSFULLY UPDATED WITH PROPER SDK PATH ...

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.

Thanks, PM_Dialog

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

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

Thanks,

JJ

PM_Dialog
Offline
Last seen:1 day 23 hours ago
工作人员
加入:2018-02-08 11:03
嗨Jasu,

嗨Jasu,

Glad that you are able to run the SW example and thanks for accepting my answer.

Thanks, PM_Dialog

ditterhung
Offline
Last seen:10 months 1 day ago
加入:2017-12-20 06:36
Hi Sir,

Hi Sir,

我想try the example code (I2C_Accel_Data_Notifcation.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.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.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.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
Traceback (most recent call last):
File "dlg_make_keil5_env_v1.002.py", line 545, in
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
树= 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 day 23 hours ago
工作人员
加入:2018-02-08 11:03
Hi ditterhung,

Hi ditterhung,

Thanks for let us know. I will check it internally and I will respond you as soon as possible.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:1 day 23 hours ago
工作人员
加入:2018-02-08 11:03
Hi ditterhung,

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.

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

Thanks, PM_Dialog