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

Build asset_tracker_v2 from source error: ADXL362_RANGE_MAX_M_S2 undeclared here (not in a function)

Hi there,

I'm trying to build the asset_tracker_v2 example application from source and receiving this error:

../src/ext_sensors/ext_sensors.c:31:20: error: 'ADXL362_RANGE_MAX_M_S2' undeclared here (not in a function)
double threshold = ADXL362_RANGE_MAX_M_S2;

Could you tell me how to resolve this error please?

Also, an explanation as to why this is happening would be an added bonus as I have no issue building the asset_tracker (v1) example application from source.

I'm using the nRF SDK 1.6.0

Thanks,

Daz

Parents Reply
  • Hi,

    Weirdly, I'm building for Thingy:91 (thingy91_nrf9160ns target with SDK and toolchain at version 2.5.0) and the build error disappears only when I move the property (the same goes for the timeout's property CONFIG_ADXL362_TIMEOUT_MAX_S) from the overlay config file to the prj.conf. At this point I'm wondering why would I need the overlay config file at all.

    Regards,

    Ivan

Children
No Data
Related