Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

__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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading