I was able to build blinky and flash it to the Circuit Dojo nRF9151 board.
I was even able to change the code for one short blink and one long blink!
So I attempted to add logging.
Before adding any code, I noticed a blue flag indicating problems.
Initially, it complained that one could not call a fucntion in a constant expression.
static const struct device *leds = DEVICE_DT_GET(DT_NODELABEL(npm1300_leds));
I can’t even remember what I did to fix, but it obviously had a problem resolving the MACRO which should have happened in the first pass of the preporcessing. After that went away, I get
Then another blue flag!
Appearently, a dependency of <zephyr/kernel.h>, some “metal/assert.h” file could not be found. Its nowhere on my system!
I tried desperately, even using the AI helper on the side bar, which suggested I use a linux based gcc-x64. No luck there either. Should I use WSL instead of Windows?
It has become appearent to me that the build environment, while essentially flexible, is so convoluted that one might spend 90% of development time in build configuration managment in stead of writting and a rather small application.
Perhaps I have a bad installation of VS Code and Circuit Dojo Zephyr. I’m not looking for problem free, but is there a way to a more reliable enviromental setup?