How to enable VCU CAN on RD-K358BMU

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

How to enable VCU CAN on RD-K358BMU

Jump to solution
212 Views
JWA74
Contributor I

Hi NXP forum!

We purchased NXP’s 800 V Battery Management System (BMS) Reference Designs Using ETPL (https://www.nxp.com/design/design-center/development-boards-and-designs/800-v-battery-management-sys...) since we wanted a proper BMS to validate and test our battery emulator against.

Works great, currently we have been using FreeMaster and the example that exists for the reference design, referring to HVBMS_800_StartUp_FreeMASTER.pmpx, all measurements done by the BMS looks spot-on and as expected, same with the temperatures that we emulate through another board we have developed.

We have received a CAN database from support at NXP that we were told would work with the reference design BMU, see screenshot below, we have used the NXP_BMS_QPHY_V1.dbc.

 

JWA74_0-1712930758185.png

 

 

We have connected our external CAN to the VCU_CAN port (that supports partial networking wake-up) on the RD-K358BMU using the DSUB connector that was included on the J1 connector cabling, according to the manual, to enable the VCU_CAN one can achieve it using the WUP on the SBC, or more specifically SBC WAKE1 input on the SBC.

No matter what we do we cannot see anything on the CAN bus, even when using a sniffer, so apparently, we have missed something fundamental.

The manual states:

“Vehicle control unit CAN (VCU CAN) is the main CAN interface equipped with high-speed TJA1145ATK/FD partial networking transceiver. This transceiver supports CAN partial networking by means of a selective wake-up function. The transceiver inhibit pin is connected to the SBC wake1 signal, which wakes up the system when the wake-up command is received on the VCU CAN port. To configure VCU CAN transceiver, use LPSPI5 PCS2.”

The last sentence is what I do not get, I understand that it is an onboard SPI node (node name: VCU CAN TJA1145A, IC Reference: U20, SPI Instance: LPSPI5, Peripheral chip selects: PCS2, Max Clk Speed: 2.5), but how should it be used and how do I get CAN communication going?

Thanks in advance for your help and guidance!

Regards,

JWA74

0 Kudos
1 Solution
158 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the TJA1145 enters Standby mode after power on, to put device into Normal mode an SPI command have to be issued. Another command is needed as well to activate CAN transceiver.

Some time ago I tested CANs on RD-K344BMU board.
Attached is modified S32DS3.4 demo project, I used RTD2.0.3. 
It uses FlexCAN4 which drives CMU_CAN (TJA1443) on the board. 
FlexCAN0 is added as well, which drives VCU_CAN (TJA1145) on the board.  Basic transceiver init via LPSPI5 is done to activate VCU_CAN part.

Example waits for std ID=0x14 message on each CAN and resends it back using callback.

BR, Petr

 

View solution in original post

0 Kudos
1 Reply
159 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the TJA1145 enters Standby mode after power on, to put device into Normal mode an SPI command have to be issued. Another command is needed as well to activate CAN transceiver.

Some time ago I tested CANs on RD-K344BMU board.
Attached is modified S32DS3.4 demo project, I used RTD2.0.3. 
It uses FlexCAN4 which drives CMU_CAN (TJA1443) on the board. 
FlexCAN0 is added as well, which drives VCU_CAN (TJA1145) on the board.  Basic transceiver init via LPSPI5 is done to activate VCU_CAN part.

Example waits for std ID=0x14 message on each CAN and resends it back using callback.

BR, Petr

 

0 Kudos