Zephyr-blink example project fails to build

Trying to set everything up for the first time, I’m starting with the example project zephyr-blink and when I go to build it, it fails with the error src\main.c:7:10: fatal error: zephyr.h: No such file or directory

I have a clean install of PlatformIO with the Atmel SAM platform installed.

I’ve found this topic and followed the advice to no avail - Zephyr Blink example build fails after new install

The initial IntelliSense error is expected since it will rebuild IntelliSense after the first build. But that that fails is not expected.

Please remove all folders <home folder>/.platformio/packages/framework-zephyr* and restart compilation.

If that still fails, post the whole output of the “Build” project task.

1 Like

That did the trick. Thankyou.