Empty declaration error for ISR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Empty declaration error for ISR

Jump to solution
1,956 Views
SSK
Contributor I
Hello forum members,
 
I am using Codewarrior 4.6 build 6345 with MC9S12A128B. I am trying to use interrupt for SCI0 but while compiling the code , it gives following error(s) -
Error   : C1017: Empty declaration
STT25x.c line 85  
Error   : C2801: ';' missing
STT25x.c line 85  
Error   : Compile failed
 
I am also attaching a snap of the error. Your earliest help is highly appreciated.
 
Thanking you in advance.
Labels (1)
Tags (1)
0 Kudos
1 Solution
468 Views
CrasyCat
Specialist III
Hello
 
Looks like something weird happens after pre-processing.
Did you look at the pre-processor listing for this source file?
 
To generate preprocessor listing:
  - Click with the right mouse button on the file name in the .mcp window
  - select preprocess
    A new window containing preprocessing listing should be opened in the IDE.
    Look at the preprocessing code generated.
 
You may have a #define somewhere, which is redefining something....
 
CrasyCat

View solution in original post

0 Kudos
1 Reply
469 Views
CrasyCat
Specialist III
Hello
 
Looks like something weird happens after pre-processing.
Did you look at the pre-processor listing for this source file?
 
To generate preprocessor listing:
  - Click with the right mouse button on the file name in the .mcp window
  - select preprocess
    A new window containing preprocessing listing should be opened in the IDE.
    Look at the preprocessing code generated.
 
You may have a #define somewhere, which is redefining something....
 
CrasyCat
0 Kudos