cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DSO - FSM

Dude
Associate III

Hi, 

I'm looking at the FSM capability of this module, and I'm having a hard time finding meaningful examples. The ST examples found here seem to contain meaningless strings. 

 

"Ac 01 80
Ac 04 00
Ac 05 00
Ac 5F 0A
Ac 46 01
Ac 47 00
Ac 0A 00"

 

Am I missing something here? How do I learn how to use the FSM? The AN5226 document may contain all of the information but I'm feeling a lack of how to put it together.... 

 

thanks

 

1 REPLY 1
ianjxn
Associate

I am in a similar boat! Here is what I know so far...

 

The application_examples provided in that GitHub repo are either .ucf (Unico Configuration File) or .h (C++). The README contains more specifics, but I'll describe the general usage below:

 

The .ucf files are designed for the Unico/Unicleo/AlgoBuilder GUI tools from ST. If you want to use these files for evaluation, you'll need at least one of those tools, and the supporting development hardware (i.e. ProfiMEMS, X-NUCLEOSensorTile) to run any examples.

 

The .h files contain the same info that the .ucf files do, but work with C language compilers for hardware that can run it. For evaluation, I would suggest avoiding this option.

 

It seems like using MEMS Studio is going to be the best option for designing and evaluating custom FSMs, as their "Advanced Feature" FSM tool feels a bit more intuitive. Refer to UM3233 for more info on MEMS Studio.

 

MEMS Studio also lets you load-in FSM examples like Unico/Unicleo/AlgoBuilder, however, it requires .json or .fsm file types, so the .ucf and .h examples provided in the GitHub Repo will not work. I do not believe you need to connect supported hardware to build an FSM or load in an example, but you will if you want to run any.

 

MEMS Studio includes some examples, which you can find in the menu indicated in the screenshot I included.

 

I have been working on my project for a few days now, and I will say that learning to use FSMs feels like a steep learning curve, but I can tell ST has created a lot of really useful tools to make it accessible.