Sensor Studio - Custom Sensor - undefined_symbol problem

By eastcoasting , 14 April 2016

Product: ICM 30630

Hello,

I am using Sensor Studio and following the basic tutorials such as Door Opening Detection. I have created a Custom Sensor and am now modifying the Impl code using the API documentation provided. When I try to add API GPIO calls to the Door Open Detection reference design I get unexpected errors. The steps I've followed:

1) I start with successfully compiled Door Opening Detection code.

2) I then include SensorHubExt

#include "SensorHubExt.h"

3) I create "myGPIO" of type inv_shext_gpio_struct_t

static inv_shext_gpio_struct_t MyGpio;

(None of the above causes an error)

4) I attempt to initialize MyGpio using inv_shext_gpio_struct_init

inv_shext_gpio_struct_init(&MyGpio);

At this point, when I click "Apply" in the C Editor, I get the following error:

Runtime exception: tcc error: undefined symbol 'inv_shext_gpio_init'

This happens when I try to use an GPIO API call. I believe I am successfully including the "SensorHubExt.h" file or else steps 2 or 3 would have caused an error.

Please advise on the best way to get the GPIO API integrated into my Custom Sensor if I am not using the best technique.

thanks,

-matt

phpbb Topic ID
33964