Python Link Script Trouble

⚠️
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.
6 posts / 0 new
Last post
jwpearce
Offline
Last seen:6 months 1 week ago
加入:2016-10-13 18:51
Python Link Script Trouble

I am trying to use the example file "Reading I2C Accelerometer BLE" with a DA14531 TINY Module.

//www.xmece.com/sites/default/files/da14531-da14585...

I am following the instructions on running the Python script here:

http://lpccs-docs.dialog-semiconductor.com/Software_Example_Setup/01_SW_Example_Setup/SW_Example_Setup.html#linking-the-project-environment-and-the-dialog-6-0-12-sdk

When I run the script I get the following:

D:\DiaSemi\DA14531-DA14585-586_Reading_I2C_Accelerometer_BLE\project_environment
>python dlg_make_keil5_env_v1.006.py -sdkpath "D:\DiaSemi\SDK_6.0.14.1114\DA145xx_SDK\6.0.14.1114"
KEIL PROJECT NAME :: D:\DiaSemi\DA14531-DA14585-586_Reading_I2C_Accelerometer_BLE\project_environment\ADXL345.uvprojx IS A VALID PROJECT DIRECTORY...

SDK LOCATION :: D:\DiaSemi\SDK_6.0.14.1114\DA145xx_SDK\6.0.14.1114 IS FOUND ...
Traceback (most recent call last):
File "dlg_make_keil5_env_v1.006.py", line 792, in
run_application(args["sdkpath"])
File "dlg_make_keil5_env_v1.006.py", line 780, in run_application
setup_keil5_project_environment()
File "dlg_make_keil5_env_v1.006.py", line 607, in setup_keil5_project_environment
update_scatter_file(XML_PATTERN_LDADS_SCATTERFILE)
File "dlg_make_keil5_env_v1.006.py", line 574, in update_scatter_file
with open(cur_scatter_file_path) as my_file:
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\DiaSemi\\SDK_6.0.14
.1114\\DA145xx_SDK\\6.0.14.1114\\sdk\\common_project_files\\scatterfiles\\scatte
rfile_common.sct'

的Python script is looking for scatterfile_common.sct but this file is not included in SDK6.0.14. The link for SDK 6.0.12 downloads 6.0.14.

我在哪里得到scatterfile_common.sct ?

Thank you.

PM_Dialog
Offline
Last seen:20 hours 7 min ago
Staff
加入:2018-02-08 11:03
Hi Jim,

Hi Jim,

Thanks for your question and pointing this out. I will ask the Team internally to update the pythons script, as this one was for SDK6.0.12. In order to figure this out, please try the steps below as a work around:

  1. Download theDA14585/DA14586 - DA14531 Multiperipheral Example
  2. Copy the DA14531- DA14585-586_Multiperipheral_Example\project_environment\dlg_make_keil5_env_v2.000.py and past it into da14531-da14585-586_reading_i2c_accelerometer_ble\project_environment
  3. 的execute the new python script :
> python dlg_make_keil5_env_v2.000.py -sdkpath “

For instance:

> python dlg_make_keil5_env_v2.000.py -sdkpath “C:\dev\6.0.12”

Please let me know if you can link the SW example with the SDK6.0.12 and run it correctly.

Thanks, PM_Dialog

jwpearce
Offline
Last seen:6 months 1 week ago
加入:2016-10-13 18:51
That worked. Thank you! -Jim

That worked. Thank you!

-Jim

PM_Dialog
Offline
Last seen:20 hours 7 min ago
Staff
加入:2018-02-08 11:03
Hi Jim,

Hi Jim,

Glad that you got it working and thanks for accepting my answer.

Thanks, PM_Dialog

OTLABS
Offline
Last seen:8 months 3 weeks ago
加入:2020-08-09 22:18
Is there any description of

Is there any description of the software archecture used in this example? How does it work? What does the Kernel do? etc.

Thanks

PM_Dialog
Offline
Last seen:20 hours 7 min ago
Staff
加入:2018-02-08 11:03
Hi OTLABS,

Hi OTLABS,

I would recommend first checking the Readme file which is within the SW Example. All our SW Example contain a Readme file. Regarding the SDK architecture, please refer to theUM-B-119: DA14585-DA14531 SW Platform Referenceuser manual.

Thanks, PM_Dialog