Skip to main content
Graduate
March 14, 2024
Solved

L3gd20 sensor on stm32f411e-discovery

  • March 14, 2024
  • 2 replies
  • 1262 views
I am practicing reading L3GD20 data built into the stm32f411e-discovery kit. I use SPI1 to communicate with L3GD20. I watched on YouTube, they have instructions on how to use the void function HAL_GPIO_EXTI_Callback. I cannot call the void HAL_GPIO_EXTI_Callback function to read data from the sensor. Debug only receives the value from the bar but not the value read from the sensor
I use pin PE1 (configuration: Rising edge trigger detection, Pull-up ). Below is an image of my code. I need help.
Thanks everyoneimage.pngimage.pngimage.pngimage.png

 

 

 

    This topic has been closed for replies.
    Best answer by Federica Bossi

    Hi @ThienNguyen0301 ,

    Welcome to ST Community!

    Note that L3GD29 is an obsolete product and so we don't suggest it for new design. I can suggest you a newer product, let me know if you are interested in.

    However, you could look at our drivers on github, they could be helpful for your implementation.

    2 replies

    Technical Moderator
    March 14, 2024

    Hello,

    Please don't put all your comments in the code cell feature as it's not readable.

    Put only code there and the text/image outside.

    Thank you for your understanding.

    Technical Moderator
    March 21, 2024

    Hi @ThienNguyen0301 ,

    Welcome to ST Community!

    Note that L3GD29 is an obsolete product and so we don't suggest it for new design. I can suggest you a newer product, let me know if you are interested in.

    However, you could look at our drivers on github, they could be helpful for your implementation.