cmicrocontrollerautomotivegreenhillsrenesas-rx

__GETSR() function is not compiling in GHS compiler


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)


Solution

  • 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.