__GETSR() function is not compiling in GHS compiler

86 Views Asked by At

Am working on Renesas RH850F1KM microcontroller.

Am doing coding for Safety Mechanism for Code Flash ECC module. In our code we are using __GETSR() function to store the PSW address for future use. But am facing the following error.

function __GETSR declared implicitly

More info: Compiler we are using : Green Hills Compiler (C:\ghs\multi_716\multi.exe)

1

There are 1 best solutions below

0
On BEST ANSWER

The problem is lack of __GETSR() symbol defined.

As you have noticed, the correct definition is in v800_ghs.h header file, which has to be included.