S32K116EVB2Q048 can0 not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K116EVB2Q048 can0 not working

ソリューションへジャンプ
1,167件の閲覧回数
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

タグ(1)
0 件の賞賛
返信
1 解決策
1,075件の閲覧回数
Ahelion
Contributor IV
Nevermind. Solved, CAN is working now. Redid the wire again, loaded fresh project (can_pal), and it works.

元の投稿で解決策を見る

6 返答(返信)
1,148件の閲覧回数
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 件の賞賛
返信
1,132件の閲覧回数
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 件の賞賛
返信
1,127件の閲覧回数
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 件の賞賛
返信
1,107件の閲覧回数
Ahelion
Contributor IV
Can I share my workspace with you? maybe it is something simple that I am not seeing.
0 件の賞賛
返信
1,107件の閲覧回数
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 件の賞賛
返信
1,076件の閲覧回数
Ahelion
Contributor IV
Nevermind. Solved, CAN is working now. Redid the wire again, loaded fresh project (can_pal), and it works.