cancel
Showing results for 
Search instead for 
Did you mean: 

Cant initialize sensors ISPU getting started example

NicRoberts
Associate II

I'm working through the "Getting started with the X-CUBE-ISPU software package for STM32Cube" tutorial and trying the ISPU_Logging example.

NULCEO F411RE -> X-NUCLEO IKS02A1 -> STEVAL-MKI229AA (LSM6DSO16IS)

(This is also my first time using the Cube IDE so not sure where things are as its a different layout to the tutorial now)

I've set up the hardware pin outs & configured the software components for the appropriate sensors, generated the code, built & downloaded onto the board. The IDE says this was all successful...

File download complete

Time elapsed during download operation: 00:00:01.175

Verifying ...

Download verified successfully

 

I open up the Unicleo-GUI and am met with the following...

 

NicRoberts_0-1735824589251.png

So far so good, the board & its sensors have been recognized and that's the same sensors I added in the software component section

I click apply & ...

 

NicRoberts_1-1735824714192.png

 

What am I missing here? I've stepped through the document a few times now but cant for the life of me find what's missing

 

 

4 REPLIES 4
Petr S
ST Employee

Hello,

Could you please send me your ioc file for analysis?

Thanks and regards,

Petr

 

Actually please send me the whole project, I just realized you didn't generate it using CubeMX, right?

NicRoberts
Associate II

Thanks Petr - I've attached a zip of the project. Created in STMCubeIDE 1.17

 

 

Please try to switch io_ctx.Address from LSM6DSO16IS_I2C_ADD_H to LSM6DSO16IS_I2C_ADD_L in LSM6DSO16IS_0_Probe() function in custom_ispu_motion_sensors.c file. There is ISM330DHCX sensor on IKS02A1 board which has the same I2C address as your LSM6DSO16IS in DIL24 and to distinguish between them the onboard sensors have I2C address LSB bit connected to VDD while DIL24 ones to GND.