This is a minimal starter application template for XMC™ MCU devices.
- ModusToolbox™ software v3.0
- SEGGER J-Link software
- Programming language: C
- Associated parts: All XMC™ MCU parts
- GNU Arm® embedded compiler v10.3.1 (
GCC_ARM
) - Default value ofTOOLCHAIN
- Arm® compiler v6.16 (
ARM
) - IAR C/C++ compiler v9.30.1 (
IAR
)
- XMC1100 boot kit (
KIT_XMC11_BOOT_001
) - XMC1200 boot kit (
KIT_XMC12_BOOT_001
) - XMC1300 boot kit (
KIT_XMC13_BOOT_001
) - XMC1400 Boot Kit (
KIT_XMC14_BOOT_001
) - Default value ofTARGET
- XMC4200 Platform2GO XTREME kit (
KIT_XMC_PLT2GO_XMC4200
) - XMC4300 relax EtherCAT kit (
KIT_XMC43_RELAX_ECAT_V1
) - XMC4400 Platform2GO XTREME kit (
KIT_XMC_PLT2GO_XMC4400
) - XMC4500 relax kit (
KIT_XMC45_RELAX_V1
) - XMC4700 relax kit (
KIT_XMC47_RELAX_V1
) - XMC4800 relax EtherCAT kit (
KIT_XMC48_RELAX_ECAT_V1
)
This example uses the board's default configuration. See the kit user guide to ensure that the board is configured correctly.
This example requires no additional software or tools.
Create the project and open it using one of the following:
In Eclipse IDE for ModusToolbox™ software
-
Click the New Application link in the Quick Panel (or, use File > New > ModusToolbox™ Application). This launches the Project Creator tool.
-
Pick a kit supported by the code example from the list shown in the Project Creator - Choose Board Support Package (BSP) dialog.
When you select a supported kit, the example is reconfigured automatically to work with the kit. To work with a different supported kit later, use the Library Manager to choose the BSP for the supported kit. You can use the Library Manager to select or update the BSP and firmware libraries used in this application. To access the Library Manager, click the link from the Quick Panel.
You can also just start the application creation process again and select a different kit.
If you want to use the application for a kit not listed here, you may need to update the source files. If the kit does not have the required resources, the application may not work.
-
In the Project Creator - Select Application dialog, choose the example by enabling the checkbox.
-
(Optionally) change the suggested New Application Name.
-
Enter the local path in the Application(s) Root Path field to indicate where the application needs to be created.
Applications that can share libraries can be placed in the same root path.
-
Click Create to complete the application creation process.
For more details, see the Eclipse IDE for ModusToolbox™ software user guide (locally available at {ModusToolbox™ software install directory}/ide_{version}/docs/mtb_ide_user_guide.pdf).
In command-line interface (CLI)
ModusToolbox™ software provides the Project Creator as both a GUI tool and the command line tool, "project-creator-cli". The CLI tool can be used to create applications from a CLI terminal or from within batch files or shell scripts. This tool is available in the {ModusToolbox™ software install directory}/tools_{version}/project-creator/ directory.
Alternatively, you can manually create the application using the following steps:
-
Download and unzip this repository onto your local machine, or clone the repository.
-
Open a CLI terminal and navigate to the application folder.
On Linux and macOS, you can use any terminal application. On Windows, open the modus-shell app from the Start menu.
Note: The cloned application contains a default BSP file (TARGET_xxx.mtb) in the deps folder. Use the Library Manager (
make modlibs
command) to select and download a different BSP file, if required. If the selected kit does not have the required resources or is not supported, the application may not work. -
Import the required libraries by executing the
make getlibs
command.
Various CLI tools include a -h
option that prints help information to the terminal screen about that tool. For more details, see the ModusToolbox™ software user guide (locally available at {ModusToolbox™ software install directory}/docs_{version}/mtb_user_guide.pdf).
In third-party IDEs
Note: Only VS Code is supported.
-
Follow the instructions from the In command-line interface (CLI) section to create the application, and import the libraries using the
make getlibs
command. -
Export the application to a supported IDE using the
make <ide>
command.For a list of supported IDEs and more details, see the "Exporting to IDEs" section of the ModusToolbox™ software user guide (locally available at {ModusToolbox™ software install directory}/docs_{version}/mtb_user_guide.pdf).
-
Follow the instructions displayed in the terminal to create or import the application as an IDE project.
Resources | Links |
---|---|
Code examples | Using ModusToolbox™ software on GitHub |
Kit guides | XMC4700/XMC4800 relax kit series-V1 – Board user‘s manual. Describes the schematic and hardware of the XMC4700/XMC4800 relax kit series-V1, equipped with XMC™ microcontroller based on Arm® Cortex®-M4 from Infineon. XMC1400 boot kit – Board user‘s manual. Describes the schematic and hardware of XMC1400 boot kit for application code development on the XMC1404-Q064X0200 device. |
Device documentation | XMC1000 family datasheets XMC1000 family technical reference manuals XMC4000 family datasheets |
Development kits | Buy at www.infineon.com KIT_XMC14_BOOT_001 – Boot kit XMC1400 KIT_XMC47_RELAX_V1 – XMC4700 relax kit |
Libraries on GitHub | mtb-xmclib-cat3 – XMC™ peripheral driver library (XMCLib)and docs |
Tools | Eclipse IDE for ModusToolbox™ software – ModusToolbox™ software is a collection of easy-to-use software and tools enabling rapid development with Infineon MCUs, covering applications from embedded sense and control to wireless and cloud-connected systems using AIROC™ Wi-Fi and Bluetooth® connectivity devices. |
Infineon provides a wealth of data at www.infineon.com to help you select the right device, and quickly and effectively integrate it into your design.
For XMC™ MCU devices, see 32-bit XMC™ Industrial microcontroller based on Arm® Cortex®-M.
Document title: CE231919 - XMC™ MCU: Empty application template
Version | Description of change |
---|---|
0.5.0 | New code example |
1.0.0 | Updated to support ModusToolbox™ software v2.3 |
2.0.0 | Updated to support ModusToolbox™ software v3.0; CE will not be backwards compatible with previous versions of ModusToolbox™ software. |
2.1.0 | Updated to support more kits |
All other trademarks or registered trademarks referenced herein are the property of their respective owners.
© 2022 Infineon Technologies AG
All Rights Reserved.
The information given in this document shall in no event be regarded as a guarantee of conditions or characteristics. With respect to any examples or hints given herein, any typical values stated herein and/or any information regarding the application of the device, Infineon Technologies hereby disclaims any and all warranties and liabilities of any kind, including without limitation, warranties of non-infringement of intellectual property rights of any third party.
For further information on technology, delivery terms and conditions and prices, please contact the nearest Infineon Technologies Office (www.infineon.com).
Due to technical requirements, components may contain dangerous substances. For information on the types in question, please contact the nearest Infineon Technologies Office.
Infineon Technologies components may be used in life-support devices or systems only with the express written approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may be endangered.