CAN problem S32K144 in BMS Example

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

CAN problem S32K144 in BMS Example

1,291 次查看
oeren5
Contributor III

Hi @mariuslucianand ,

This is Ozan and I am trying to send data via CAN communication. I am using Matlab 2020a and mbdt v4.2. 

I basically used the BMS example and read the voltage and current values. What I want to do is broadcast these information via CAN. I want to broadcast these values continuously and start from CAN example projects and used an initialization block, RX complete block, TX block and main configuration block. 

When I use a Kvaser usb to CAN converter and try to observe CAN messages in Busmaster I could only observe one message, the other messages did not appear in the messages. What might be the problem and how can I solve this problem? The screenshots are provided below, somehow I could not attach the model but I can also send the simulink model.

Thanks in advance.

oeren5_0-1601300141632.pngoeren5_1-1601300172568.pngoeren5_2-1601300199209.pngoeren5_3-1601300221996.png

 

0 项奖励
回复
2 回复数

1,282 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @oeren5 ,

Someone had this issue before and we found out that Simulink was inserting the receive settings CAN code before the initialization so, reassigning the blocks priorities like described in this thread might help.

https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/S32k144-EVB-CAN-Communication-using-MBD/m-...

If not, please send us our model. You cand either create a zip file with the model and attach it here, or send it over e-mail.

Hope this helps,

Marius

 

0 项奖励
回复

1,266 次查看
oeren5
Contributor III

Hi @mariuslucianand ,

Thanks for your quick reply, I reviewed the topic you shared and followed steps, but still I have same problem.

First of all I use J16 pin as power source and priority of CAN blocks of FCAN_Config, TX complete, and RX complete are 1, 2, and 3 respectively. Also you can see execution order as follow. 

I try you attach the zip file of the model in here but I could not do it I do not know why. I shared the screenshots here and send the model via  mail. Please not that I want to broadcast as much information (cell voltages, pack voltage, pack current, temperatures etc) as possible continuously and receive few messages over CAN in order to determine the mode of operation  (i.e. Load or Charge).

Thanks in advance.  

oeren5_0-1601389791116.pngoeren5_1-1601389801604.pngoeren5_2-1601389816581.pngoeren5_3-1601389844271.png

 

0 项奖励
回复