cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get the STEVAL-MKI168V1 IIS2dh accelerometer DEMO to run in I2C mode instead of SPI. I need to evaluate transfer speeds using I2C. Is there a way of telling the UNICO software to run the sensor in I2C? Thank You!

Lmile.1
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
Eleon BORLINI
ST Employee

Hi @Lmile.1​ ,

I just got the answer from our experts and well... it's possible at GUI level!

For many devices, IIS2DH included, in the "Option" tab you can find a button “Advanced Features for Profi�?, that allows (also) the communication protocol change. 

Please check the picture below for a guide:

0693W000008wsmgQAA.png0693W000008wsmqQAA.pngIf my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster. 

-Eleon

View solution in original post

10 REPLIES 10
Eleon BORLINI
ST Employee

Hi @Lmile.1​ ,

the STEVAL-MKI109V3 is "hardware compatible" for the I2C communication on motion sensors, but the Unico GUI has been implemented with the SPI communication.

While I'm internally checking for the availability of an high-level routine that enables the I2C communication with the sensors, you could exploit the capability of Unico Lite GUI, which is provided together with the source code (STSW-MEMS034:( with some effort you could implement this way the I2C communication.

Of course, if you are using a motherboard different from the STEVAL-MKI109V3, you have to evaluate case by case accordingly to your MCU, and you could get help from STM32CubeMX configurations.

-Eleon

Eleon BORLINI
ST Employee

Hi @Lmile.1​ ,

I just got the answer from our experts and well... it's possible at GUI level!

For many devices, IIS2DH included, in the "Option" tab you can find a button “Advanced Features for Profi�?, that allows (also) the communication protocol change. 

Please check the picture below for a guide:

0693W000008wsmgQAA.png0693W000008wsmqQAA.pngIf my reply answered your question, please click on Select as Best at the bottom of this post. This will help other users with the same issue to find the answer faster. 

-Eleon

Lmile.1
Associate II

Hi Eleon,

Thank you for answering my question. My Unico user interface doesn't have that "advanced option"

Where do I buy or get this better version of software you have demonstrated?

Thank you again!

Larry

Hi @Lmile.1​ ,

you should be able to find it in Options --> Advanced features as shown in the picture below:

0693W000008xX3mQAE.png 

-Eleon

Lmile.1
Associate II

Hi Eleon,

My demo kit doesn't seem to have the right side menu as yours does?

My software version is the newer 9.9.0.0, how do I download your version. I am trying to

use STEVAL-MKI168V1 (IIS2DS) yours is STEVAL-MKI196V1, a gyroscope? Maybe my accelerometer

doesn't have that menu? Thank you for helping me! Larry

Hi Larry,

that's strange, I'll check better... But it could be related to the fact you are using a IIS2DH (I was checking with an LSM6DSO), and should check if this feature is device-dependent (I supposed it was not indeed...).

You can however try downloading the previous version of Unico (for Windows, for example) from the st.com page:

0693W000008xYe6QAE.png 

-Eleon

Brian Rau
Associate III

A further question: Can the I2C address be configured somewhere in the GUI? It appears that the STEVAL-MKI109V3/STEVAL-MKI221V1 combination uses I2C address 0x6B, and of course in my design I set the address to 0x6A before I discovered this. I'd like to be able to use the STEVAL-MKI109V3 and GUI to test my design with I2C address 0x6A...

Hi @Brian Rau​ ,

please refer to this thread for the topic.

-Eleon

Eleon, perhaps you can answer this - it appears that UNICO-GUI first must connect to the board using SPI, only then can you change to I2C, is this correct? I was hoping to use UNICO-GUI to collect data from and program an LSM6DSO32X in our design that's configured for I2C communications, but connecting the STEVAL-MKI109V3 board to our I2C bus, UNICO-GUI won't even find the LSM6DSO32X, so I can't proceed any further to tell it to communicate over I2C.

Brian