iMOTION programming from the command line

Announcements

From sunburn to sun earn – we’ve got the power! Watch our #poweringgreen videos now.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User13282
Level 3
Level 3
25 replies posted 10 replies posted 5 replies posted
iMOTION programming from the command line

The iMOTION pc tools offer a small command line tool – iMOTIONconfig - that can be used to verify, erase and program all iMOTION devices. The following gives some insights into the tool and examples of its use.


Note: iMOTIONconfig has been designed as an engineering tool for bench and lab use. It must not be used for any productive purpose, e.g. in end-of-line programming.



iMOTIONconfig is part of the MCEWizard installation and resides in the subdirectory \compiler of the installation directory. With the default installation path this would be C:\Program Files(x86)\Infineon\iMOTION2.0\MCEWizard_V2.3.0.1\Compiler.

During installation, the system variable %MCEScript21% is defined that represents the path given above. For ease of use, the following examples use this variable instead of the complete path. Note that due to spaces in the path the variable requires the use of quotation marks.

The following examples use the kit iMOTION2go. This is a starter kit complete with inverter, motor, on-board debugger and USB connector. The motor controller is an IMC101T-T038.

The virtual COM that Windows assigns on plugging in the board can be found in the device manger:
5065.attach

In the examples below, iMOTIONconfig is called from the directory that holds the firmware, parameter and script files used. If these are in other directories, the full path must be used instead. The files used are available on the iMOTION2go and product (IMC101T-t038) pages.

1) Calling with the argument ‘?’ prints a short usage description.

5066.attach

2) Information on the connected device is printed with ‘info’

5067.attach

- Boot Mode is the current state of the device, as given in the AppNote “iMOTION™ Device Programming”. Device is in Application Mode ‘0xAD’, i.e. MCE and parameter set are programmed, motor is spinning.
- CHIP ID is found in the respective data sheet, here: IMC101T-T038.
- Param Sets shows the parameter sets programmed, here only one set is programmed.

3) The command ‘ldmode’ changes to bootloader mode, erasing the flash.

5068.attach

- The following get-info shows the device being in loader mode ‘0x5D’.
The SBSL ID shown can be found in the IMC100 series data sheet.
5069.attach

4) A new firmware can be programmed via the ‘prog’ command

5070.attach

- Since there not yet a valid parameter set available the device goes into Configuration Mode ‘0xCD’.

5) Now a parameter set as well as a script can be programmed.

5072.attach

- With a valid parameter set the device will now move into Application Mode ‘0xAD’ and the motor will start spinning. (The programmed script changes the motor speed periodically.)

6) With the ‘prog’ command also a combined file (firmware plus parameters) can be programmed.

5073.attach

- Param Sets shows that four parameter sets have been programmed which can be selected via the resp. methods (UART command, analog or digital input pins).
- Again, the device goes into Application Mode ‘0xAD’ after programming with the motor spinning.

Further details can be found in the resp. iMOTION documentation, namely
- iMOTION™ 2.0 Device Programming, AppNote
- iMOTION™ Motion Control Engine, Software Reference Manual and
- the product data sheets

www.infineon.com/iMOTION
0 Likes
0 Replies