Error: This board doesn't support zephyr framework!

Hi

I get this error for xmc4700 and zephyr. But zephyr supports this board.
How can I check zephyr framwerok version. Ich would like to use version 4.4.0.

Thanks

Urs

First, let’s check whether PlatformIO supports the environment you require.
Can you find a board equipped with an XMC4700 at the following link?

If you cannot find one, you will need to create a custom environment yourself—a task that requires a significant amount of effort and skill.

Assuming you’re using the https://github.com/Infineon/platformio-infineonxmc platform, you can already see from the platform.json that framework-zephyr is not included in its packages (https://github.com/Infineon/platformio-infineonxmc/blob/master/platform.json).

Each PlatformIO platform needs to have specific builder script, package and board definition support to be able to build a certain framework with respect to a certain board. The current kit_xmc47_relax.json only supports arduino as its framework, or baremetal (i.e., no framework).

You can see from other platforms such as ststm32 that in order for them to be able to support Zephyr build, they e.g., include the framework package

as well as several build tools

Alongside calling into the Zephyr build script in the platform

So you see that this scripts/platformio folder only exists in the specially modified Zephyr version, done by PlatformIO staff

https://github.com/platformio/zephyr/tree/v4.0-branch/scripts/platformio

Which in turn only supports a handful of platforms

So while the XMC4700 Zephyr board variant definitely exists in the current PlatformIO package

https://github.com/platformio/zephyr/tree/v4.0-branch/boards/infineon/xmc47_relax_kit

The builder scripts (platformio-build.py and related) in that package as well as the platformio-infineonxmc platform will still have to be adapted to make use of that. Only then will PlatformIO be able to build a Zephyr firmware for the XMC4700 board.

This is absolutely possibly, it’s just a bit of work to figure out the needed modifications, mostly in the Zephyr biulder script. The modifications in the platform side are pretty mundane and the same across all platforms supporting Zephyr, as e.g. quoted from the ststm32 platform above.

I would even argue that a competent AI (like Claude Code + Opus?) would make very short work of forking the Infineon platform and PlatformIO’s Zephyr repo, do the needed modifications to support the xmc47_relax_kit Zephyr board variant and open PRs into the respective repos, especially given the large number of reference examples and platforms that already support Zephyr in the PlatformIO ecosystem.

A good thing to do would be to at least open an issue in https://github.com/Infineon/platformio-infineonxmc/issues to demand Zephyr framework support for this board.