Skip to main content
Visitor II
March 27, 2020
Question

Interface the MKI197V1 with Nucleo-L011K4. Not knowing how to proceed?

  • March 27, 2020
  • 1 reply
  • 1396 views

I wanted to initialise the LSM6DSOX on the L011K4. I've generated code through CubeMX and Set the SPI pins for it. However, I don't know how to proceed further, since I don't find any ways to port code from the MKSBOX1V1 to the current project. Are there any clear examples on how to set up a connection between the two? Thanks in advance!

    This topic has been closed for replies.

    1 reply

    ST Employee
    March 27, 2020

    Hi @TSchi.2269​ , the first steps are OK, to go further you could take as example the X-CUBE-MEMS1 function pack, which contains examples for a couple of NUCLEO L0 boards. The MKSBOX1V1 examples run on the STM32L4 MCU family, and it is not so simple to take code samples from that firmware function pack... Which is your target application? Regards

    Visitor II
    March 27, 2020

    My target application is the Nucleo32-L011K4 with the preferred functionality of interrupt detection by loading in a custom configuration (.h file) on the MLC. I found an example at https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lsm6dsox_STdC, but I'm not able to get that up and running with the given drivers. Also, CubeMX does not change the main.c file to init the MEMS, while I have added them in CubeMX as additional software AND set them SPI-mode and given them a CS GPIO Output pin.

    ST Employee
    March 27, 2020

    For the initialization code of the LSM6DSOX in the main.c and in general for the integration of the related libraries you should refer to the examples in the existing function packs. BTW, are you able to read data from the LSM6DSOX in your current configuration? Regards