Hello, I'm Jeong-soo Seok, a researcher in Korea.
Regarding the last Active Rear Spoiler (ARS) project, I would like to request a detailed source code analysis.
Debugging the flexcan_encrypted_s32k144w example source of the existing S32 Design Studio for S32 (Platform 3.4) has detected a significant amount of errors in the vehicle.
However, the S32K144_Project_CanFd example source in S32 Design Studio for ARM (Version 2.2) did not fail when connected to the vehicle.
Both programs are example sources, but for S32 Platform 3.4 example sources, please analyze why the error occurred in the vehicle.
The MCU currently in use is the FS32K144WAT0WLFT model.
Please return your opinion.
I attached ARM 2.2 source and S32 platform 3.4 source file
Solved! Go to Solution.
Hi @JEONGSOO-SEOK,
This may be because of the other node in the CAN bus, as the example works normally. There is also the can_pal_s32k144 example for ARM 2.2, have you tested this example as well?
I would recommend using the working example in S32DS3.4.
The AN5413: S32K1xx Series Cookbook also includes a CAN FD example in chapter 2.10 with increased data payload and at a CAN FD data phase bit time of 2 MHz. Message size is increased to 64 bytes (similar to the flexcan_encrypted_s32k144w example)
Best regards,
Julián
Additional, in case of example source, We edited only essential setting about to GPIO, Clock frequency
Thank you for your reply.
It doesn't occured source code error in S32 (platform 3.4). When we connected our PCB to Test Car, CAN_BUS has CAN Error. etc) ADAS, Chassis domain, more than that.
I guess that platform 3.4 flexcan_example_source code has whatever error flame
If we using CANFD, Are we use Arm 2.2 code? can not use platform 3.4 example source?
And, I don't understand CSEc Key and erase_all_key. Maybe, I think that's not assoicate with our problem.
S32 ARM 2.2 : S32DS Example Projects for S32K1XX - S32K144_Project_CanFD
S32 Platform 3.4 : S32K1xx SDK RTM v4.0.2 Example Projects - demo_apps - flexcan_encrypted_s32k144w
Hi @JEONGSOO-SEOK,
This may be because of the other node in the CAN bus, as the example works normally. There is also the can_pal_s32k144 example for ARM 2.2, have you tested this example as well?
I would recommend using the working example in S32DS3.4.
The AN5413: S32K1xx Series Cookbook also includes a CAN FD example in chapter 2.10 with increased data payload and at a CAN FD data phase bit time of 2 MHz. Message size is increased to 64 bytes (similar to the flexcan_encrypted_s32k144w example)
Best regards,
Julián
Hi @JEONGSOO-SEOK,
Could you specify what kind of errors were detected? Also, please keep in mind the examples are not the same configuration.
The example Project CanFD explains the following in the description.txt:
The other example, FlexCAN Encrypted showcases the CSEc module:
Also, please share your RTM version for both projects.
Best regards,
Julián