mensi / teensy_bare_metal

Bare-metal Code Examples for the Teensy 3.1/3.2
Apache License 2.0
14 stars 5 forks source link

Interrupt ISRs not working #3

Open abc123862 opened 3 years ago

abc123862 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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