Skip to main content
Graduate II
January 24, 2024
Question

LSM303AGR X-CUBE-MEMS1

  • January 24, 2024
  • 2 replies
  • 957 views

Hello,

    I have a custom board with a STM32F373 and a LSM303AGR MEMS device.

I made a Cube-MX project in which I included the corresponding x-cube-mems1 software pack with an eCompass application.

The project compiles and runs. I see from the firmware it is waiting from commands from uart. So I run the unicleo-GUI and connect to the corresponding port but nothing happen. Is the unicleo-GUI sw intended to run only with the SDK? Is there some other sw I have to use?

Thank you.

    This topic has been closed for replies.

    2 replies

    MRaff.1Author
    Graduate II
    January 25, 2024

    I found that sending from the terminal this sequence:
    \h(32)\h(01)\h(0C)\h(09)\h(1B)\h(2A)\h(18)\h( 01)\h(19)\h(04)\h(3D)\h(F0)\h(32)\h(01)\h(02)\h(CB)\h(F0)\h(0D)\h(0A)

    the board replies. 

    The difference compared to Unicleo-GUI sent command seems to be the termination \h(0D)\h(0A).

    ST Employee
    January 29, 2024

    Hello @MRaff.1,

    It should work, maybe some configuration in the project is not correct. Can you share you .ioc file so I can check it?