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

Interrupt ISRs not working #3

Open
abc123862 opened this issue Oct 18, 2021 · 2 comments
Open

Interrupt ISRs not working #3

abc123862 opened this issue Oct 18, 2021 · 2 comments

Comments

@abc123862
Copy link

hello. I am new to ARM programming. I have started with This example on Teensy 3.2 . I am a windows user So i made a .bat file out of your provided Make file. I have got the LED blinking with my .bat file using Gcc .
I then moved to PIT configuration. but i could not get it working using interrupts. This is the simple configuration of PIT0 with interrupt
This is my main file ,configuration file to enable interrupt and build file for compiling and linking
main
s
config
build

.
i am stuck at this point. looking forward to hearing from you

@mensi
Copy link
Owner

mensi commented Oct 31, 2021

I don't think the isr handler should be defined extern. Also have a look at https://github.com/mensi/teensy_bare_metal/blob/master/common/systick.c which works very similarly.

@abc123862
Copy link
Author

I have got PIT working with interrupt by using arm_cm4.h header file and its source file that contains the functions enable_irq () and disable_irq for a particular interrupt

Now i want to configure a Uart receiver .
So far i have been able to do this
But its not working . Can you help me find the mistake?
IMG-20211203-WA0002

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