Hello Team,
during initialization phase I am trying to access the function " R_FCL_Fct_Handler", got runtime error.
from the function " R_FCL_CopySections" inside i am fetching the below function base address R_FCL_Fct_Handler from RAM, since before handler function was copied into ROM to RAM area.
g_fcl_data_str.handlerPtr_p = (r_fcl_fctPtr_t)R_FCL_CalcFctAddr ((uint32_t)(&R_FCL_Fct_Handler));
after i got the handler function address, i called from that function pointer in below function, then i got crash, i am suspecting that function address not identified.
Hints i have configured like My address in linker file:
from map file FCL_RESERVED address generated in .map file from below
\
and below assigned in RAM address in my code based on above .map
above RAM address one used under the destAddr = g_fcl_data_str.RTCfg_pstr->addrRam_u32: for find the Handler function address from the RAM.
Please hlep me how to resolve this error?
proof for address is fetched from RAM
Can you share a bit of your code before calling R_FCL_Execute ? What command and with what requester is it called ?
above the code sequence , after calling function pointer Handler function , i got the reset and break point was hit from below snip
So you do get an unexpected reset after this ? Can you check the value of RESF register ?
Also what device are you using ?