Did you know you can use Arduino libraries to program XMC?
Check out at https://github.com/Infineon/XMC-for-Arduino/wiki