1. Overview¶
This page shows how to use the Python script to:
- Link the Dialog 6.0.12 SDK and the downloaded SW (SoftWare) example.
- Clean the SW example project environment: removes absolute paths.
要运行这些软件示例,用户需求:
- DA14531/DA14585/DA14586 hardware.
- Keil µvision.
- DialogSDK 6.0.12available
- The example itself, which contains this Python script.
Note
It is highly recommended user created files are added in thesrc
folder of the SW example. The Python script does not process user files located in other folders.
2. Linking the project environment and the Dialog 6.0.12 SDK¶
Note
Linking the SW example project environment and Dialog 6.0.12 SDK adds absolute file paths to files in your SW example project environment path containing information about your system’s folder structure. The Python script also supports cleaning these absolute file paths. See “Cleaning the project environment”.
Below are the steps to link the SW example project environment to the 6.0.12 SDK.
1. Python 2.7 or higher is required to run the small example environment generation script.
Python can be downloaded fromPython.org.
2. Download the SW example from the Dialog support portal:
DA14585 & DA14586 software examples can be found here://www.xmece.com/product/da14585
DA14531 software examples can be found here://www.xmece.com/product/da14531
3. Extract the zip file.
4. Open a terminal and run:
> cd /project_environment
> python dlg_make_keil5_env_v1.006.py -sdkpath “”
For instance:
> python dlg_make_keil5_env_v1.006.py -sdkpath “C:\dev\6.0.12”
5. The script should indicate successful execution.Figure 1shows an example.
3. Cleaning the project environment¶
Linking the project adds absolute paths to the project files, pointing them to the 6.0.12 SDK. The clean functionality removes these absolute paths.
Since absolute paths contain intermediate directory names, the clean command makes sure these intermediate directories are not shared with internal and external application users.
Example:After linking,
C:\Users\Your_name\Upcoming_project\Keil_5
reveals the user’s name and the name of the project the user is working on.
Below are the steps to clean the SW example project environment.
1. Python 2.7 or higher is required to run the small example environment generation script.
Python can be downloaded fromPython.org.
2. Download the SW example from the Dialog support portal:
DA14585 & DA14586 software examples can be found here://www.xmece.com/product/da14585
DA14531 software examples can be found here://www.xmece.com/product/da14531
3. Extract the zip file.
4. Open a terminal and run:
> cd /project_environment
> python dlg_make_keil5_env_v1.006.py -sdkpath “clean”
5. The script should indicate successful execution.Figure 2shows an example.