AnsweredAssumed Answered

SPI Driver question

Question asked by liuruowen@hangsheng.com.cn on Dec 17, 2019
Latest reply on Dec 19, 2019 by liuruowen@hangsheng.com.cn

ProcessorExpert.pe:

Code:   

LPSPI_DRV_MasterInit(LPSPICOM1,&lpspiCom1State,&lpspiCom1_MasterConfig0);
LPSPI_DRV_MasterSetDelay(LPSPICOM1,10,10,10);

unsigned char test_rx[4];
unsigned char test_tx[4] = {0x33,0x55,0xaa,0xcc};
LPSPI_DRV_MasterTransferBlocking(LPSPICOM1,&test_tx[0],&test_rx[0],4,1000);

Result(use Kingst Logic Analyzer tool): OK

but,i use 

ProcessorExpert.pe:

Code:   

LPSPI_DRV_MasterInit(LPSPICOM1,&lpspiCom1State,&lpspiCom1_MasterConfig0);
LPSPI_DRV_MasterSetDelay(LPSPICOM1,10,10,10);

unsigned char test_rx[4];
unsigned char test_tx[4] = {0x33,0x55,0xaa,0xcc};
LPSPI_DRV_MasterTransferBlocking(LPSPICOM1,&test_tx[0],&test_rx[0],4,1000);

Result(use Kingst Logic Analyzer tool): NOK

So,why is this happening? Are there any configuration issues?

Outcomes