Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

button interrupt always fallback to Default_Handler(infinite loop)? #3

Open
Sped0n0ld opened this issue Oct 10, 2022 · 5 comments
Open

Comments

@Sped0n0ld
Copy link

When I try to declare function PORT1_IRQHandler in my main.c file, I found out that the board always stuck when I press any of buttons. It seems that the board has detected the interrupt but ignore PORT1_IRQHandler function that I declared and fallback to Default_Handler in startup_msp432p401r_gcc.c.

@Sped0n0ld
Copy link
Author

Here is my code for reference.
https://github.com/Sped0n/rslk_njust

@zceemja
Copy link
Owner

zceemja commented Oct 11, 2022

add #include <msp432p401r.h> to main.c

@Sped0n0ld
Copy link
Author

Sped0n0ld commented Oct 11, 2022

add #include <msp432p401r.h> to main.c

It still stuck at infinite loop, Timer_A interrupt doesn't work too.
Btw I'm using platformio with clion on a arm64 Mac, Is it possible that an environment issue caused the "bug" to appear?

@zceemja
Copy link
Owner

zceemja commented Oct 12, 2022

I can replicate this issue on my board too. It looks like an issue with toolchain dependencies, not with clion or arm mac. I have tested interrupts before with cmsis framework and it was working fine, but it has no driverlib. I will dig deeper next week

@Sped0n0ld
Copy link
Author

I can replicate this issue on my board too. It looks like an issue with toolchain dependencies, not with clion or arm mac. I have tested interrupts before with cmsis framework and it was working fine, but it has no driverlib. I will dig deeper next week

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants