S32K144EVB SPI Error

取消
显示结果 
搜索替代 
您的意思是: 

S32K144EVB SPI Error

390 次查看
kimmk
Contributor I

Hi,

I'm trying to use uja1169TK/F in S32K144EVM.

When operate SBC_SetCanConfig function, some error occured.

In SBC_SetCanConfig function -> SBC_DataTransfer->LPSPI_DRV_MasterTransferBlocking functions,

001.png

LPSPI_DRV_MasterTransferBlocking function is when SPI master transmits a data, SPI slave sends a data back to master at the same time.

But when that operated, receive failed.

002.PNG

This situation is same in lpspi_dma example, lpspi_transfer example.
how to solve this problem?

I upload this project.

0 项奖励
3 回复数

382 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

How do you power the board?

The SCB requires 12V power supply.

Can you please scope the SPI bus?

 

Thank you,

BR, Daniel

0 项奖励

375 次查看
kimmk
Contributor I

Hi, Daniel,

 

I saw too many articles saying that 12V power should be input.

So, of course, it is inputting the power at 12V.

 

And below two picture attached.

first is when operate SBC_Init(), second is SBC_SetCanConfig.

Yellow = CS, Red = SCK, Blue = SDI, Green = SDO.

SBC_Init ScopeSBC_Init ScopeSBC_CanConfig ScopeSBC_CanConfig Scope

Best,

Minkyu.

0 项奖励

346 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Minkyu,

I'm sorry for the delayed response.

I have tested the project and it works.

When the execution is halted after SBC_SetCanConfig(), I can see this:

danielmartynek_0-1613044060996.png

I only get the error that you reported while I'm stepping through the function.

 

Regards,

Daniel

0 项奖励