S32 design Studio for S32 platform3.4 compared to ARM 2.2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32 design Studio for S32 platform3.4 compared to ARM 2.2

跳至解决方案
520 次查看
mumumilmil
Contributor I

두 프로그램 모두 예시 소스이지만, S32 Platform 3.4 예시 소스의 경우 차량에서 오류가 발생한 이유를 분석해 주시기 바랍니다.

현재 사용 중인 MCU는 FS32K144WAT0WLFT 모델입니다.

귀하의 의견을 알려주시기 바랍니다.

ARM 2.2 소스와 S32 플랫폼 3.4 소스 파일을 첨부했습니다.

标记 (1)
0 项奖励
回复
1 解答
461 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @mumumilmil,

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

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
471 次查看
mumumilmil
Contributor I

Additional, in case of example source, We edited only essential setting about to GPIO, Clock frequency

0 项奖励
回复
471 次查看
mumumilmil
Contributor I

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

0 项奖励
回复
462 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @mumumilmil,

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

 

0 项奖励
回复
455 次查看
mumumilmil
Contributor I
Thanks, I will try it
0 项奖励
回复
477 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @mumumilmil,

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:

  • Transmit and receive a 64-byte CAN FD message at 500 KHz and 1 or 2 MHz:
    Initialize FlexCAN and Message Buffer 4 to receive a message. 
    Transmit one frame using Message Buffer 0 
  • Loop:
    If Message Buffer 4 received message flag is set, read message.
    If Message Buffer 0 transmit done flag is set, transmit another message.

The other example, FlexCAN Encrypted showcases the CSEc module:

  • If running the encrypted communication: The encryption uses the first non-volatile user key, which needs to be configured by running the CSEc Key Configuration in the driver examples folder.
  • Encrypted communication works only for CSEc enabled parts. SIM_SDID indicates whether CSEc is available on your device.
  • If one of the user keys was loaded using the CSEc Key Configuration, any further full erase of the Flash requires a Challenge-Authentication process. This can be done by running the CSEc Key Configuration example again and setting the ERASE_ALL_KEYS macro to 1.

Also, please share your RTM version for both projects.

Best regards,
Julián

 

0 项奖励
回复