I have a project where I am using an MC33972 to trigger an GPIO interrupt when state changes. The problem I am facing currently is that when the interrupt is triggered, the callbackref to the gpio handler is receiving an incorrect instance. Whenever the handler is triggered the application crash and get stuck due to that the callbackref I receive is belonging to the INTC instanceptr and not the XGPIO instanceptr, so when calling XGpio_InterruptGetStatus(gpio_ptr); the application fails on the asserts as they are incorrect and not belonging to the XGPIO but instead INTC.
Has anybody had similar problem before or encountered similar problem?
Question
hdx 0
Hello,
I have a project where I am using an MC33972 to trigger an GPIO interrupt when state changes. The problem I am facing currently is that when the interrupt is triggered, the callbackref to the gpio handler is receiving an incorrect instance. Whenever the handler is triggered the application crash and get stuck due to that the callbackref I receive is belonging to the INTC instanceptr and not the XGPIO instanceptr, so when calling XGpio_InterruptGetStatus(gpio_ptr); the application fails on the asserts as they are incorrect and not belonging to the XGPIO but instead INTC.
Has anybody had similar problem before or encountered similar problem?
This is my initialization for the interrupt:
Link to post
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now