![Performance Motion Devices CME N Series User Manual Download Page 44](http://html.mh-extra.com/html/performance-motion-devices/cme-n-series/cme-n-series_user-manual_1529623044.webp)
44
ION/CME N-Series Digital Drive Developer Kit User Manual
2
2.5.4.1
Code Compilation, Downloading & Execution
The C-Motion Engine Development Tools Manual provides detailed step by step information on how to the edit,
compile, and link source application code. The C-Motion Engine development environment uses the ‘Programmer’s
Notepad’ text editor and the GNU Compiler Collection (GCC) compiler and linker.
Once a .bin file has been generated it can be transferred and stored in the N-Series ION’s CME using Pro-Motion.
After the user code has been loaded into the N-Series ION unit it is ready to be executed. If the auto-execution flag
has been set then the simplest way to begin executing the code is to re-power the N-Series ION. After initialization
the user code will execute automatically.
If code execution is set to manual, with the N-Series ION powered on the code can be started using Pro-Motion via
the C-Motion Engine Window. Once the code executes you should begin to see any printf statements that you have
embedded in the code displayed in the console channel. During initial code development this is a convenient method
to confirm that the code loaded correctly and is executing.
2.5.4.2
Sample “Hello World” Code Development Sequence
To exercise and become familiar with the C-Motion Development tools you may find it helpful to compile, link, and
download a sample “hello world” application included in the SDK, using the steps detailed in the
C-Motion Engine
Development Tools Manual
.
When executed, this simple “hello world” code sends a “hello world” message to the console. As a next step you can
edit the source code file, for example changing the output message slightly, and then re-compile, download, and
execute this modified .bin code image.
If you have trouble during any of the steps above contact your PMD representative for assistance.
Congratulations! You are now ready to begin developing your C-Motion Engine-based application code. For a general
introduction to the N-Series ION’s C-Motion Engine refer to
ION/CME N-Series Digital Drive User Manual
. For
detailed information on C-Motion commands refer to the
C-Motion/PRP II Programming Reference
. For more
information on the tools provided for code development refer to the
C-Motion Engine Development Tools Manual
.
Summary of Contents for CME N Series
Page 6: ...vi ION CME N Series Digital Drive Developer Kit User Manual ...
Page 8: ...viii ION CME N Series Digital Drive Developer Kit User Manual ...
Page 30: ...30 ION CME N Series Digital Drive Developer Kit User Manual 1 ...
Page 58: ...58 ION CME N Series Digital Drive Developer Kit User Manual 3 7 6 7 6 PP LQFK ...
Page 69: ...ION CME N Series Digital Drive Developer Kit User Manual 69 4 ...
Page 70: ...70 ION CME N Series Digital Drive Developer Kit User Manual 4 ...