Hi,
I have a code running with no problem. main, some other functions and ISRs were at the same "main.c" file and I decided to move some of the functions and ISRs into seperate files. Code is compiled successfully, there is no error/warnings. When I test the code using CCS/JTAG my initialized interrupts were working normally but code sometimes goes to DefaultISR.c-Spi or DefaultISR.c-Trip Zone Interrupt. In my code I dont use any spi or trip zone.When I only moved back ISRs to the main .c file, everything worked normal again. Other functions were at the different .c files at that time.
What I do when moving the ISRs from main.c is to create a "Interrupt.c" and "Interrupt.h". ISR functions are in the "Interrupt.c", and necessary headers are included. "Interrupt.h" included in "Interrupt.c" and it contains function prototypes of ISR such as interrupt void ADC_ISR(void). Also in the header file of main.h, extern interrupt void ADC_ISR(void) is written. "main.h" is included in "main.c". All headers have include guard and there are no errors/warnings.
What could cause this error? Any idea?
- CPU F28377D, CCSv6.1.2, Compiler v6.4.9
Regards,