S32K116EVB2Q048 can0 not working

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

S32K116EVB2Q048 can0 not working

Jump to solution
1,162 Views
Ahelion
Contributor IV

Hello all,

I have the s32k116 dev board. I want to read some CAN data and send some CAN data.

I configured the PINS, the CAN, everything, no data is outputed....

I have tried with the default applications also, same behaviour.

Also, strange thing, I am using canoe, and if I change the pins arround som map HIGH to LOW and vice versa, canoe does not raise and error, using a different board when I do that I see error frames. Make me think the PINs are open.

This is my config:

Ahelion_0-1716207740019.png

In according with the table from point 1.3 from here: https://www.nxp.com/document/guide/getting-started-with-the-s32k116evb2q048-evaluation-board:GS-S32K...

Ahelion_1-1716207775844.png

 

is the tranceiver not initialized at all? how can I initialize it? there is no data about it.

Br, Ahelion

Tags (1)
0 Kudos
Reply
1 Solution
1,070 Views
Ahelion
Contributor IV
Nevermind. Solved, CAN is working now. Redid the wire again, loaded fresh project (can_pal), and it works.

View solution in original post

6 Replies
1,143 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Ahelion,

Which example have you tested? Either can_pal or flexcan_encrypted both work correctly when using another board:

Julin_AragnM_0-1716240249103.png

Are you configuring correctly CANoe analyzer for bitrate and sample point? Refer to this post: Re: CAN FD NACK Error S32k144 - NXP Community

For example, can_pal_s32k116 has these configurations:

Julin_AragnM_1-1716240561237.png

Best regards,
Julián

 

0 Kudos
Reply
1,127 Views
Ahelion
Contributor IV
using the demo apps, nothing special, the CAN is not working. BTW, how can CAN be used if CAN-RX/TX are connected to a transceiver that we do not initialize?
I saw the schematic and saw that it is connected to LPSPI, which is also not initialized by demo can software.
0 Kudos
Reply
1,122 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Ahelion,

CAN initialization is done with the CAN_Init() function:

Julin_AragnM_1-1716323731652.png

Please keep in mind that for this example to work, you need to power on the board with external supply 12V (J16). J107 needs to be 1-2 for the 12V power supply.

Best regards,
Julián.

0 Kudos
Reply
1,102 Views
Ahelion
Contributor IV
Can I share my workspace with you? maybe it is something simple that I am not seeing.
0 Kudos
Reply
1,102 Views
Ahelion
Contributor IV
Interesting, so the SBC is configured where? as I am now looking into the can_pal, I see no sbc_init. I connected a 12V power supply, connect the 2 cables CAN_HI and CAN_LO to my DSUB connector from CANOE, started canoe, nothing.
0 Kudos
Reply
1,071 Views
Ahelion
Contributor IV
Nevermind. Solved, CAN is working now. Redid the wire again, loaded fresh project (can_pal), and it works.