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

Build error for example code of LIS2DH with nRF SDK v1.3.1

Hello,

I am using example code of LIS2DH accelerometer sensor with nRF SDK v1.3.1. Building  the example code I am getting macro error in devicetree.h file as mentioned below

#define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))  

with following message in output

error: 'DT_N_INST_0_st_lis2dh_P_label' undeclared (first use in this function)

Please suggest appropriate solution for the above problem.

Thanks.

Parents Reply Children
No Data
Related