How to change PE clock in CAN config

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

How to change PE clock in CAN config

967 Views
kbj
Contributor IV

I want to set CAN bit rate to 5Mbps.

But at PE clock 8MHz, max bit rate that I can set is 1Mbps.

So I want to change PE clock, but I don't find how to change PE clock.

Please let me know how to change PE clock.

1.PNG

Labels (1)
4 Replies

745 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

could you please specify, which microcontroller you use, which version of S32DS you use and which version of SDK you use?

Regards,

Martin

745 Views
kbj
Contributor IV

Hi,

I use following things.

MCU : S32K144

Compiler : S32DS for ARM Version 2018.R1

SDK : SDK_S32K14x_09

Thanks and best regards,

Byugnju

0 Kudos

745 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

use flexcan module instead of can_pal module. Flexcan module allows to set PE Clock in processor expert. See the figures below:

pastedImage_1.png

pastedImage_2.png

Regards,

Martin

745 Views
kbj
Contributor IV

Hi,

Thanks for your help.

I changed PE clock to 48MHz.

But at 48MHz PE clock, Maximum CAN FD bitrate is 4.8Mbps.

I can not set over 5Mbps.

I want to set over 5Mbps.

How to set 5Mbps CAN FD?

1.PNG

Beat regards,

Byungju.

0 Kudos