CAN PAL CANFD code conversion to normal CAN in s32k144evb CAN pal sample code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CAN PAL CANFD code conversion to normal CAN in s32k144evb CAN pal sample code

755 Views
pratayay123
Contributor III

Hi,

I am using s32k144 sample code of CAN pal for CAN FD.

I want to make the same CAN FD code to work for normal CAN , what changes should I include in the same CAN FD sample code to make it run for normal CAN also.

What are the configuration changes that i should do in the can pal CAN FD sample code such that it will support normal CAN feature also if it is enabled in the same code.

Any generic MACRO setting is there in CAN pal CANFD code such that enabling that macro will make the same sw to normal CAN feature.

Thanks

Pratyay

0 Kudos
Reply
3 Replies

748 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Pratyay,

Uncheck the flexible data rate, and then click Update Code.

unckeck the flexible data rate.png

Modify these to lin disable FD:

enableFD.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

743 Views
pratayay123
Contributor III

Dear Robin,

Thanks for your reply.

Can you please show me the path/process for generating auto code using design studio?

Thanks,

Pratyay

0 Kudos
Reply

739 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Click Update Code to let S32 Config Tool automatically generate new code. Click Open Update Code Dialog, then you can see the path:

Update Code CAN_PAL.png

0 Kudos
Reply