S32K146 CAN-FD

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

S32K146 CAN-FD

1,272 Views
gravity_one
Contributor III

Hello, Guys

 

Q1: CAN-FD ABR=500k, DBR=4M

I want to set ABR=500k & DBR=4M, but 

1.jpg2.jpg

Data phase ---> Bitrate is disable, cannot set.

 

Q2 : CAN-FD: cannot send out data return BUSY while not connect CAN analizer first.

if (state->mbs[mb_idx].state != FLEXCAN_MB_IDLE)

{ return STATUS_BUSY; }

 

Thanks,

Gravity

0 Kudos
Reply
3 Replies

1,257 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

A1) you have to enable FD within component to be able to set rate for data phase too

PetrS_0-1620935020375.png

 

A2) not sure which function do you use and how. If device is disconnected from the bus, sent message is not ACKed thus it is not transmitted successfully. Thus e.g. repetitive calling of non-blocking function should return STATUS_BUSY.

BR, Petr

0 Kudos
Reply

1,247 Views
gravity_one
Contributor III

Q1: data phase only set max 1000kbit/s

 

Q2: When can-fd is initialized, can bus is not connected. When can bus is connected after initialization, sending data will reply busy;
If the CAN bus is connected when the machine is started, the transceiver is normal;

0 Kudos
Reply

1,201 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

1) what is PE clock frequency? If you use crystal oscillator clock with 8MHz then max bitrate can be about 1.6Mbps. Try to select sys_clk as PE clock in flexcan component.

2) there should not be problem with hot-plug. If the MB cannot still be used for transmission, try to first AbortTransfer and then send message normally.

BR, Petr

0 Kudos
Reply