I've been studying some example files generated from Renesas High Performance Embedded Workshop
(HPEW
) that setup the processor to a known state on reset. It compiles for sh3 on that platform
One such file resetprg.c has a pragma directive:
#pragma entry PowerON_Reset
Void PowerON_Reset(Void)
{
......
}
The help in HPEW states:
Quote
Entry Function Specification
#pragma entry[(]<function name>[)]
This specifies that the function specified as <function name> is handled as an entry function.
The entry function is created without any code to save and restore the contents of registers.
So the code in PowerON_Reset is tagged to run on a reset.
However EVT3 does not recognise the pragma
It gives unknown pragma warning.
Am I doing something wrong here, or do I have to manually
Put PowerON_Reset_PC
(
) in the Reset Vector location?
Edited by Stevetuc 2022-02-02 3:09 PM