메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

Interrupt function and -VECT option (CC-RL)

Last Updated:05/10/2017

Question:

I am using the CC-RL compiler for RL78 devices. I have specified functions for handling as interrupt functions by using the linker’s -VECTN option, but they are not handled as interrupt functions.

Answer:

The -VECTN option of the linker is for setting the address of functions in the interrupt vector table.
To output object code which supports interrupts, you need to use #pragma interrupt or #pragma interrupt_brk directives in the C source file.

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family
  • 이 기사가 도움이 되셨나요?