MPC-LS-VNP-RDB Configure various CAN channels

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

MPC-LS-VNP-RDB Configure various CAN channels

721 Views
alberto_ruiz
Contributor I

Hi I am working with MPC-LS-VNP-RDB, and I want to configure more than one CAN channel, to receive and send frames, even CAN FD frames.

 

I have seen the example in S32DS for Power Architecture however I have not seen the possibility of controlling all the CAN inputs, there are 12.

Thanks.

alberto_ruiz_0-1697556615716.png

 

0 Kudos
Reply
3 Replies

625 Views
alberto_ruiz
Contributor I

Hi, thanks for the information.

I have been looking at it and I am no understanding everything I see in the examples, is there any tutorial realted to this product or in how to program the different modules of the MCU?

I mean I need to understand what I am doing, and having the examples is not so easy.

BR, Alberto.

0 Kudos
Reply

614 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

depends what kind of programming/example do you want to use, baremetal examples with direct peripheral register setting or using SDK drivers.
For both cases the S32DS provides set of examples for almost all peripherals, definitely a FlexCAN.
For baremetal examples I guess no further guide is available. You should know how module is functional, check device RM for this. Also you can refer to https://www.nxp.com/docs/en/application-note/AN4830.pdf 

For SDK usage you can refer to  https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Create-a-Blinking-LED-Project-MP... or https://www.nxp.com/webapp/Download?colCode=MPC574xG-SDK-HOT   

BR, Petr

0 Kudos
Reply

689 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the board User Manual (https://www.nxp.com/webapp/Download?colCode=MPC-LS-VNP-RD-UM) shows the CAN interface block diagram. You can use that (or board schematic) to know how CAN transceivers are connected to each FlexCAN modules. You can reuse S32DS examples to init desired FlexCAN modules and thus use more CAN buses.
Besides 8 FlexCAN modules, there are four standalone CAN controllers (MCP2515, SPI to CAN) available to extend above direct CAN solution. However I am not aware there is any demo for MCP2515 usage. You can use demo/driver for DSPI from S32DS but you need to write communication protocol for this device by yourself. Or maybe there's general C driver - you can check with manufacturer of this part.

BR, Petr

0 Kudos
Reply