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

Cause of Undefined Instruction Exception

Last Updated:03/08/2018

Question:

What kind of error is an undefined instruction exception?  What are the possible causes and how can they be investigated?

Answer:

An undefined instruction exception occurs when the execution of an undefined instruction (unimplemented instruction) is detected. Generally, undefined instruction exceptions do not occur when a program is described in C or an assembler without a compiler error.  

Undefined instruction exceptions may occur from the following reasons:
・Various noise
・Data corruption 
・Device destruction 
・Stack not set
・Stack overflow
・A target device does not correspond to the endian setting of debugger
・Jump to the wrong destination
・Flash memory access wait is not set

Please check the following:
・If built-in flash memory program is executing under P/E mode
・If the stack size is appropriate
・If ROM/RAM section is allocated correctly  
・If a target device corresponds to the endian setting of the debugger
・If clock-related register is set correctly

Suitable Products
RX Family
  • 이 기사가 도움이 되셨나요?