2024-03-14 08:36 AM
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 everyone![image.png image.png](/t5/image/serverpage/image-id/70047i54962A9FF343DFFD/image-size/large/is-moderation-mode/true?v=v2&px=999)
![image.png image.png](/t5/image/serverpage/image-id/70048i19FA03FA21171CD0/image-size/large/is-moderation-mode/true?v=v2&px=999)
![image.png image.png](/t5/image/serverpage/image-id/70049iB42619AE50FBD8F8/image-size/large/is-moderation-mode/true?v=v2&px=999)
![image.png image.png](/t5/image/serverpage/image-id/70051iA17EEECC01666090/image-size/large/is-moderation-mode/true?v=v2&px=999)
Solved! Go to Solution.
2024-03-21 06:53 AM
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.
2024-03-14 08:55 AM
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.
2024-03-21 06:53 AM
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.