Skip to main content
Explorer
May 11, 2025
Solved

MEMS-Studio FSM on MKI109D

  • May 11, 2025
  • 1 reply
  • 667 views

Hi,

I have the STEVAL-MKI109D board, on which I mounted the STEVAL-MKI250KA. I would like to implement the free-fall example on the FSM, using data from the ST1VAFE3BX biosensor, using only MEMS Studio. Is it possible to do this without writing firmware solution? If so, how should I proceed?

Thanks.

 

    This topic has been closed for replies.
    Best answer by casadeib

    Hi @Luisa_97 ,

    You can refer to the document AN6207 , in the paragraph 11.3 ("Examples of state machine configurations - Free Fall"). Here you can find the configuration that has to be implemented in the state machine.
    The user has to set the commands in the green section (the final section of the table from 0Dh up to 19h) and the parameters of the variable data section in yellow (from 06h up to 0Ch), while the fixed data section (light blue - 00h up to 05h) is automatically managed by MEMS Studio. After writing the configuration to the device, it is possible to test the configuration using the dedicated tab.
    Hope this could help. Please let me know if something is not clear to you.

     

     

    1 reply

    casadeibAnswer
    ST Employee
    May 16, 2025

    Hi @Luisa_97 ,

    You can refer to the document AN6207 , in the paragraph 11.3 ("Examples of state machine configurations - Free Fall"). Here you can find the configuration that has to be implemented in the state machine.
    The user has to set the commands in the green section (the final section of the table from 0Dh up to 19h) and the parameters of the variable data section in yellow (from 06h up to 0Ch), while the fixed data section (light blue - 00h up to 05h) is automatically managed by MEMS Studio. After writing the configuration to the device, it is possible to test the configuration using the dedicated tab.
    Hope this could help. Please let me know if something is not clear to you.

     

     

    Luisa_97Author
    Explorer
    May 16, 2025
    Screenshot 2025-05-16 165006.png
    Screenshot 2025-05-16 164950.png

     

    I have tested the free-fall configuration provided in document AN6207, but the results do not match my expectations. Could you help me identify where the issue might be?
    My goal is to configure the FSM to generate an interrupt when the signal from the ST1VAFE3BX sensor exceeds a defined threshold.
    More specifically, I would like the FSM to trigger an interrupt upon detection of a heartbeat event.

    ST Employee
    May 20, 2025

    Hi @Luisa_97 

    We reviewed your Freefall configuration and we identified a wrong timer configuration since it is currently configured to wait 0 samples , that is different from what is suggested in the Application Note (3 samples (03h), see Timer 3 variable section parameter at address 0Bh).

    Moreover in order to identify such event what we suggest is to use the vAFE signal as input, instead of the accelerometer one.