Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Python is a popular programming language. Because it is interpreted, you need to install Python on your computer to run Python programs.

...

If you already have Python 2.7.x installed, skip to the next step: Required Hardware.   To check if you have Python installed and in the right place, open a command prompt (DOS window) and type:

 

No Format
C:\Python27\python.exe --version

 

It should print out something like:

 

No Format
Python 2.7.8
Note
If you installed Python using Anaconda, Python will be in a different location. See the note below.

 

The IAR toolchain generates a file compliant with the "Executable and Linkable Format" (ELF). An additional step is to convert this ELF file to a binary file you can load into your device. Part of that conversion involves calculating a signature and writing that at the beginning of the binary file. This operation is done by the dustElfToBin.py Python utility, present in the 

Include Page
_def_ocsdk_dir_tools
_def_ocsdk_dir_tools
 directory.

...

Info

In the command above, $TARGET_PATH$ is replaced by the name of the ELF file by IAR.

Note
titleNote on using Anaconda
For this step to run, the Python executable needs to be present at C:\Python27\python.exe.  If you are using Anaconda, python is in a different location and you will need to create a C:

...

\Python27\ folder and create a symlink to the location of the python executable using the mklink DOS command.

Installation Instructions

...