I would like to check the operation of "llce_sample_app_pfe" included in the LLCE module.
Your “Using CAN2CAN, CAN2ETH and ETH2CAN”
I built it using the instructions in "Features of LLCE on S32G" as a reference and confirmed its operation.
When I checked the operation, Can_43_LLCE_Init did not succeed and the operation could not be confirmed.
I would like to check the operation of LLCE's CAN2ETH and ETH2CAN, so I would like your support.
The operation confirmation environment is as follows.
S32DS:Ver3.5 Build id: 240130 (Update 10)
Debug Probe:S32 Debug Probe
LLCE:S32G_LLCE_1_0_5_QLP1
PFE:PFE-DRV_S32G_M7_MCAL_RTM_1.0.0_QLP1
RTD:RTD_4.4_4.0.0
compiler:GCC v9.2
tresosStudio:Ver28.2
Board used: S32G-VNP-RDB3
The following steps were used to confirm the operation.
1. Corrected buf size of Eth.xdm. from 2048 to 1522 and m “GHS” to “__ghs__”. of hal.h described on page 16 of AN13423.
2. Set config.mak of llce_sample_app_pfe to S32G3 as the target device and select GCC as the compiler. Also match the plugin path.
3.Insert LLCE, PFE, and RTD into the plugins of tresosStudio.
4. Generate configuration for sample_app_llce\llce_sample_app_pfe\tresos_S32G3 using tresosStudio.
5.Insert the configuration that generated sample_app_llce\llce_sample_app_pfe and build.
6. Replace the completed .elf file with the elf file of an existing project that can be debugged with S32DS and run it.
The problem is that initialization ends abnormally and LLCE's CAN is not initialized.
Looking inside, the processing of Can_Llce_ExecuteIfCommand of Can_Llce.c called by Can_43_LLCE_Init was not successful and L1029
The output value of "eReturnValue = Can_SharedMemory.aCanCmd[pConfig->u8ActiveHif].eReturnValue" is LLCE_FW_NOTRUN, resulting in abnormal termination.
As a supplement, in the CAN2CAN sample program that can be imported with S32DS, Can_43_LLCE_Init is successful and the operation of CAN2CAN has been confirmed.
I have two questions.
The first one
Does the sample code included in the LLCE module S32G_LLCE_1_0_5_QLP1 work properly in the described environment? Also, is it possible to debug with S32DS? Also, is there another sample that works with ETH2CAN and CAN2ETH?
Second
What are the possible reasons why the processing of Can_Llce_ExecuteIfCommand described as a phenomenon is not successful? Is there another solution?
Hello,@kazuki,
Did you solved this problem now?
Hi,
Below will be some comments on regards of your questions:
1. Does the sample code included in the LLCE module S32G_LLCE_1_0_5_QLP1 work properly in the described environment? Also, is it possible to debug with S32DS? Also, is there another sample that works with ETH2CAN and CAN2ETH?
NXP > We seem to understand that there might be some additional modifications required to the project, as shown below:
As for debugging the application with S32DS, we understand that there is no guide on how to do it, since all information is provided with Lauterbach. We do apologize.
On regards of a newer release, we can recommend moving to v1.0.6 (or even newer), since we see confirmation on the example working.
2. What are the possible reasons why the processing of Can_Llce_ExecuteIfCommand described as a phenomenon is not successful? Is there another solution?
NXP > We have mainly seen this behavior when we change the optimization level of compilation to None.
Aside from this (and not loading the FW), we have not seen this outcome from our side. We do apologize.
Please, let us know.