We’re currently integrating the FlexLLCE example provided for the S32E R52 core on GHS u-velOSity and have encountered a high-priority issue during execution:
The function Can_43_FLEXLLCE_SetControllerMode(Controller=0, Transition=CAN_CS_STARTED (1)) (see attached mainLLCE) does not return, as it gets stuck in a loop within Can_43_FLEXLLCE_Ipw_MainFunction_Mode, located in Can_43_FLEXLLCE_Ipw.c at line 1082, column 16 (refer to the attached Block_function_LLCE and CS_FLEXLLCE_example).
It appears that the selected controller never transitions to the CAN_STARTED state.
All prior initialization functions complete successfully and do not indicate any errors.
Please note that the LLCE firmware was compiled according to the provided instructions related to our (GHS) complier. However, we are not using your default startup code, we are instead using the startup.c file attached.
BLOCKING FUNCTION
blocking function
MAIN
main
STARTUP CODE
#include <S32Z2_MSCM.h>
int Sys_GetCoreID(void)
{
return (IP_MSCM->CPXNUM & MSCM_CPXNUM_CPN_MASK);
}
CALL STACK
0 Can_43_FLEXLLCE_Ipw_MainFunction_Mode(Can_pControllerConfig=0x3230be74, Can_pControllerState=0x3232363c) [demos/FlexLLCE_example_routing_S32Z2XX_R52/RTD/src/Can_43_FLEXLLCE_Ipw.c:1082,16]
1 Can_43_FLEXLLCE_Ipw_SetControllerToStartMode(Can_pControllerConfig=0x3230be74) [demos/FlexLLCE_example_routing_S32Z2XX_R52/RTD/src/Can_43_FLEXLLCE_Ipw.c:615,38]
2 Can_43_FLEXLLCE_SetControllerMode(Controller=0, Transition=CAN_CS_STARTED (1)) [demos/FlexLLCE_example_routing_S32Z2XX_R52/RTD/src/Can_43_FLEXLLCE.c:1164,32]
3 main(argc=1, argv=0x323a7dc0) [demos/FlexLLCE_example_routing_S32Z2XX_R52/src/main.c:138,10]