+ Reply to Thread
Results 1 to 1 of 1

Thread: iMOTION programming from the command line

  1. #1
    New Member New Member
    Infineon Employee
    Infineon Employee
    berbra is on a distinguished road
    Join Date
    May 2017

    iMOTION programming from the command line

    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:
    Click image for larger version

Name:	Virtual_COM.png
Views:	0
Size:	5.2 KB
ID:	5614

    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.

    Click image for larger version

Name:	iMotionCconfig_1.png
Views:	4
Size:	24.1 KB
ID:	5615

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

    Click image for larger version

Name:	iMotionCconfig_2.png
Views:	2
Size:	10.3 KB
ID:	5616

    - 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.

    Click image for larger version

Name:	iMotionCconfig_3.png
Views:	2
Size:	14.6 KB
ID:	5617

    - 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.
    Click image for larger version

Name:	sbsl_id_png.png
Views:	0
Size:	30.3 KB
ID:	5618

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

    Click image for larger version

Name:	iMotionCconfig_4.png
Views:	2
Size:	19.4 KB
ID:	5619

    - 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.

    Click image for larger version

Name:	iMotionCconfig_5.png
Views:	1
Size:	28.9 KB
ID:	5620

    - 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.

    Click image for larger version

Name:	iMotionCconfig_6.png
Views:	1
Size:	21.1 KB
ID:	5621

    - 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

    Last edited by berbra; Apr 8th, 2021 at 06:11 AM.
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

+ Reply to Thread

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.

Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.