Getting started with Infineon XMC for Arduino

Infineon created the ARM Cortex M Series "XMC" in 2012 to give their users access to a rich portfolio of different AMR Cortex M0+ and M4 MCUs. These Microcontrollers, being supported by powerful peripherals had support for two different IDEs: Keils MDK and Infineons DAVE. While Keil is the definitive choice for most professionals (and expensive...), DAVE was an self-developed plug-and-play kind of programming tool, using Eclipse as framework. However, both tools were directed towards professional endusers and developers, while hobbyists and makers with less experience in ARM Cortex programming would have a sturdy learning curve. Seeing that, and the first tests of the fanproject XMC-to-Arduino - Infineon decided to create an own boards package for the Arduino IDE. And thats what finally arrived some days ago :)!

Here is the link with all information: https://www.infineon.com/cms/en/tools/landing/infineon-for-makers/#microcontroller-boards

And the Github Link: https://github.com/Infineon/XMC-for-Arduino

 

And now we start with installing this package and Arduino 🙂

 

0.) Download the Arduino IDE: https://www.arduino.cc/en/Main/Software

1.) After downloading, unpack or install the Software and start it.

2.) Go to File -> Preferences and click on the Button right at the End of "Additional Boards Manager URLs" to open the dialog.

3.) Enter the URL of the XMC Repository ( https://github.com/Infineon/Assets/releases/download/current/package_infineon_index.json )  into the dialog and save it by clicking on OK - also closing the Preferences Menu via OK.4.) Goto Tools -> Board -> Boards Manager and search for XMC. Then install the XMC package:

5.) After installation, close the dialog and close Arduino.

6.) Download and install the Segger J-Link Software from this link: https://www.segger.com/downloads/jlink

7.) Start Arduino again, go to Tools -> Boards and chose your board, mine is the XMC2Go:

8.) Also chose the right port under Tools -> Port

9.) I started with a blink example which I choose from File -> Examples -> 01. Basics -> Blink

10.) Click on the Upload arrow just over the name of the Sketch "Blink".

11.) If you got an older XMC2Go module, Arduino / Segger J-Link will ask wheter it should update the Firmware on the XMC2Go. Confirm that.

12.) Arduino should successfully end the upload proccess and you' ll have your XMC2Go blinking 🙂

13.) Already done - that was easy, wasn't it :)?

 

As an additional feature I decided to throw in a short graphic of the different ports of the XMC2Go and the mapping between Arduino IDE and MCU:

 

2 thoughts on “Getting started with Infineon XMC for Arduino

  1. Hi, Thank you for this tutorial. I did everything as you said and everything seems to work just fine (like the blink program) but I have a problem with the UART communication, should I do something else or is it simply not supported on the arduino IDE?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.