cancel
Showing results for 
Search instead for 
Did you mean: 

How to Flash FSM+MLC merge in MEMS-studio

ak25
Associate

I am trying to use the LIS2DUX12 on the STEVAL- MKI109D and use MEMS studio to merge a MLC config I developed and an example FSM config. I have the merged file, but how do I run/test the config onto the board and see if it works?

1 ACCEPTED SOLUTION

Accepted Solutions
Federica Bossi
ST Employee

Hi @ak25 ,

The easiest way to test merged configuration is load the json file into "Load/Save Configuration" page. In order to check that both FSM and MLC are working as expected you use interrupts signals. In example if your FSM is triggering an interrupt on INT2 on free fall event detection and your MLC configuration is triggering an interrupt on INT1 on tilt event detection, your merged configuration should detect both events and generate interrupts accordingly.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Federica Bossi
ST Employee

Hi @ak25 ,

The easiest way to test merged configuration is load the json file into "Load/Save Configuration" page. In order to check that both FSM and MLC are working as expected you use interrupts signals. In example if your FSM is triggering an interrupt on INT2 on free fall event detection and your MLC configuration is triggering an interrupt on INT1 on tilt event detection, your merged configuration should detect both events and generate interrupts accordingly.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Where would the option to load/save configuration be, under the MLC or FSM tab? Also, does the MLC automatically program to INT1 (currently, my FSM correlates to INT1 so I want to ensure that when they are merged both interrupt outputs can be preserved and read)?

Hi @ak25 ,

If you are working with Nucleoboard + datalogextended firmware or Profimems board you can load/save configuration selecting sensor evaluation menu item . Yes, by default MLC configuration is generated to trigger an interrupt on INT1 on class detected change  (we will release soon a new option to not generate interrupts or generate them on INT2 if needed). If events to be monitored are not similar, you can still use MLC and FSM programmed to generate interrupts on INT1. We would suggest you anyway to check decision tree outputs to verify classes detected while algorithms are running.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Announcement

We’re moving the ST Community to a new platform to give you a better and more reliable community experience.