This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52-DK + PlatformIO + VSCode : Upadte include path

Hello,

I recently decided to upgrade an Arduino project to you nice and well documented products :) 

I successfully built and run the example provided here and tried to implement my very first function : a time based serial logger. I then rushed into the nRF5_SDK_16.0.0_98a08e2 examples and thought the peripheral>timer was the perfect match.

Unfortunatelly,, includes do not seem to work

#include <stdbool.h> //OK
#include <stdint.h> //OK
#include "nrf.h" //OK

#include "nrf_drv_timer.h" //NOK (even with <>, and file is well here : Users/pierrejuliencazaux/Documents/nRF5_SDK_16.0.0_98a08e2/integration/nrfx/legacy/nrf_drv_timer.h)
#include <bsp.h>          //NOK (even with <>, and file is well here : /Users/pierrejuliencazaux/Documents/nRF5_SDK_16.0.0_98a08e2/components/libraries/bsp/bsp.h)
#include <app_error.h>    //NOK (even with <>, and file is well here : /Users/pierrejuliencazaux/Documents/nRF5_SDK_16.0.0_98a08e2/components/libraries/util/app_error.h)
 
According to platformIO Documentation I tried to add the following to my PlatformIO.ini
build_flags=
    -I/Users/pierrejuliencazaux/Documents/nRF5_SDK_16.0.0_98a08e2/integration/nrfx/legacy/
    -I/Users/pierrejuliencazaux/Documents/nRF5_SDK_16.0.0_98a08e2/components/libraries/
But nothing seems to work. Can you please give me a hint ?
I'm on PlatformIO 4.3.4, VSCode, MacBook Pro retina mid 2012 MacOS 10.15.5 (19F101)
Parents Reply Children
Related