NTBMS Evalution Board CAN Communication Error

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

NTBMS Evalution Board CAN Communication Error

跳至解决方案
2,175 次查看
seyoung
Contributor II

Hellow, NXP

I'm testing the NTBMS Evalution Board sold by NXP.
(https://www.nxp.com/design/designs/newtec-battery-management-system-bms-reference-design:NEWTEC-NTBM...)
Tested by connecting the Freemaster App with the provided software.
Software delivery link: (https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true)

Several actions could be checked through UART communication. However, CAN communication is not connected.
I am getting an error as shown below.

 

seyoung_0-1635246746638.jpeg

 

 

Please answer the two questions below. (Please help me...)


1. The source part I changed is as follows.
Are there any additional changes that need to be made?
(I am using S32 Design Studio for ARM Version: 2018.R1.)

 

main.c (line 113)

seyoung_1-1635246746580.jpeg

 

peripherals_init.c (line 88)

seyoung_2-1635246746662.jpeg

 

freemaster_cfg.h (line 25)

figure1.JPG

 

2. Data waveform changes between PC<->FS4500 when performing Test Connection in Freemaster, but there is no change between FS4500<->MPC. I think that I need to enable CAN for FS65 in the AppInit part of bms.c, is it applied?

0 项奖励
回复
1 解答
2,149 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @seyoung ,

Are you trying to run on the board the reference design software delivered with the board?

I am asking this because in this Community space we are only cover topics related to the Automatic Code generation from Matlab and Simulink environment.

Regards,

Marius

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,128 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hello @seyoung ,

I'm not familiar with this reference design but let me share my findings.

1.

lukaszadrapa_0-1635855145791.png

It says that if you are going to use CAN, FMSTR_POLL_DRIVEN should be configured to '1'. So, no interrupts are needed.

2. At the end of FS45xx initialization in AppInit, you can find:

lukaszadrapa_1-1635855251368.png

 

And this should enable the CAN:

lukaszadrapa_2-1635855285035.png

You can check if this function is called.

Regards,

Lukas

0 项奖励
回复
2,150 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @seyoung ,

Are you trying to run on the board the reference design software delivered with the board?

I am asking this because in this Community space we are only cover topics related to the Automatic Code generation from Matlab and Simulink environment.

Regards,

Marius

0 项奖励
回复
2,143 次查看
seyoung
Contributor II

Yes, it is.
I didn't know exactly where to inquire about the above.

Where can I inquire?

0 项奖励
回复