ARM Technical Support Knowledge Articles

INTERRUPTS NOT GENERATED

Applies to: C51 C Compiler

Answer


Information in this article applies to:


SYMPTOMS

The compiler is not generating interrupt vectors for my interrupt service routines. What's going on?

CAUSE

Take a look at the compiler command line in the listing file for the interrupt routine with no interrupt vector. For example:

C51 COMPILER V6.12, COMPILATION OF MODULE IOFUNCTIONS
OBJECT MODULE PLACED IN .IOFunctions.OBJ
COMPILER INVOKED BY: C:KEILC51BINC51.EXE .IOFunctions.c
     OPTIMIZE(SIZE) BROWSE NOINTPROMOTE NOINTVECTOR
     REGFILE(DD2.reg) DEBUG OBJECTEXTEND CODE LISTINCLUDE
     SYMBOLS PAGELENGTH(46)

If the NOINTVECTOR directive is present, the compiler does not generate interrupt vectors for your interrupts.

RESOLUTION

  1. Check your C file to make sure this directive is NOT specified.
  2. Check the C51 compiler controls in the Project Options in uVision. The "Interrupt Vectors At Address" check box must be checked to generate interrupt vectors.

MORE INFORMATION

Article last edited on: 2006-10-24 13:58:05

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential