Thank a lot for your answer Since I’m a noob in all of this I’ll need some time to be 100% clear on all these points ^^
You are attempting to use nRF SDK code in a framework which does not have these headers. That won’t work.
Maybe I’m totally wrong but what I intend to do is to use the tools provided by the SDK in a code style I’m more experienced with (Arduino framework). So I’m trying to include the headers
I already tried to include the headers both in SRC / LIB / INCLUDE folders without success… As the whole SDK is still into the SRC folder, while I was struggling I finally tried this that removed the includes errors :
Do you think I am on a way for a kind of solution ? Build still fails on this :
src/nRF5_SDK_16.0.0_98a08e2/components/802_15_4/src/rng_entity.c:43:10: fatal error: nrf_rng.h: No such file or directory
But the file is here… the SDK includes the file like this
and not like this
that goes on step further, but again, I’m about to micro change the whole SDK for maybe nothing so I prefer share my issue This is frustrating ^^ and I hope I’m somehow close ^^
On another hand
The correct way to reusably add more headers and code is via self-contained [library].
Of course the best thing would be if you compile your nRF5 SDK examples within the nRF5 SDK framework itself – PIO doesn’t yet support the nRF5 SDK as a framework option though yet. [github>platformio>platform-nordicnrf52] is a place for feature requests.
I’ll consider this soon thx.
As I’m in a transition from Arduino code, I would also love not to rewrite all my code, but I know maybe I’m over expecting things to work auto-magically ^^ As alternatives, I don’t find how to see if the other frameworks (“mbed”, “zephyr”) supports nRF5_SDK_16.0.0_98a08e2. Any clue ?
The ‘nRF5’ core does however have the low-level definitions for [
NRF_TIMER0/1/2 ] if you want to work with that.
The timer was for me the first step of way more complex tasks I’d like to perform. I rather prefer to set something to fit the examples.
Thank you for all your insights