Interrupt is not generating
Opened this issue · 3 comments
anjalir14 commented
hello,
I'm using the BMA280 sensor on the Nucleo board. My code is working perfectly fine but whenever I'm trying to generate the interrupt it's not happening.
Can you pls help me out..
kriswiner commented
OK. Are you using Arduino IDE or STMCube MX?
For the former, you have to declare the interrupt pins as pinMode(INPUT),
make sure to attach the interrupt and read the status register or data
registers before entering the main loop to clear the interrupt. ALso make
the interrupt flag volatile bool. If you have an oscilloscope you can test
the BMA280 interrupts to see if they are functioning properly. And I am
assuming you have configured the BMA280 registers to properly enable
interrupts , etc.
…On Wed, Feb 9, 2022 at 2:21 AM anjalir14 ***@***.***> wrote:
hello,
I'm using the BMA280 sensor on the Nucleo board. My code is working
perfectly fine but whenever I'm trying to generate the interrupt it's not
happening.
Can you pls help me out..
—
Reply to this email directly, view it on GitHub
<#5>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTDLKQYVFSOKRGPGHCLHQDU2I53XANCNFSM5N5BNWTA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
anjalir14 commented
I'm using STMCubeMix .
Should I have to declare interrupt pin in STM32 also, as it is already declared... Whenever I'm trying to generate an interrupt it's not working but when I unplugged the sensor interrupt pin and do tapping it detects that.
kriswiner commented
No idea, I don't use STMCubeMX.
…On Wed, Feb 9, 2022 at 8:29 PM anjalir14 ***@***.***> wrote:
I'm using STMCubeMix .
Should I have to declare interrupt pin in STM32 also, as it is already
declared... Whenever I'm trying to generate an interrupt it's not working
but when I unplugged the sensor interrupt pin and do tapping it detects
that.
—
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTDLKUFO43RSYBJ43AVAMTU2M5KTANCNFSM5N5BNWTA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>