S32K146 CAN-FD

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

S32K146 CAN-FD

1,263 次查看
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 项奖励
回复
3 回复数

1,248 次查看
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 项奖励
回复

1,238 次查看
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 项奖励
回复

1,192 次查看
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 项奖励
回复