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.

Tip

Check that IAR_ARM_BASE environment variable exists and is set to contain the directory where IAR is installed. The conversion script uses this variable to find and execute IAR elftobin.exe utility. This is described in the section describing IAR tools installation.

...

See Setting up the IAR_ARM_BASE Environment Variable for details.


All

Include Page
_def_ocsdk
_def_ocsdk
 projects are pre-configured to run this utility as "Post-build" step. For example, in the configuration of the 00-hello sample application:

...