LPSPI_DRV_MasterTransferBlocking gets TIMEOUT error

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

LPSPI_DRV_MasterTransferBlocking gets TIMEOUT error

2,029 Views
xu_wenming
Contributor II

Hello,

I'm using S32K148 with S32DS.ARM.2018.R1. 

LPSPI_DRV_MasterTransferBlocking gets TIMEOUT error in some cases:

Configuration of LPSPI:

const lpspi_master_config_t spi0_ipc_sys_ma_MasterConfig0 = {
.bitsPerSec = 12000000U,
.whichPcs = LPSPI_PCS1,
.pcsPolarity = LPSPI_ACTIVE_LOW,
.isPcsContinuous = false,
.bitcount = 8U,
.lpspiSrcClk = 80000000U,
.clkPhase = LPSPI_CLOCK_PHASE_1ST_EDGE,
.clkPolarity = LPSPI_SCK_ACTIVE_LOW,
.lsbFirst = false,
.transferType = LPSPI_USING_DMA,
.rxDMAChannel = 0U,
.txDMAChannel = 1U,
.callback = NULL,
.callbackParam = NULL,
};

Testing cases:

1. LPSPI_DRV_MasterTransferBlocking(SPI0_IPC_SYS_MA, send_data, NULL, 16, 100);

    >> OK.

2. LPSPI_DRV_MasterTransferBlocking(SPI0_IPC_SYS_MA, send_data, NULL, 32, 10000);

    >> TIMEOUT. I have already set timeout to 10000 and even more, still timeout.

3. LPSPI_DRV_MasterTransferBlocking(SPI0_IPC_SYS_MA, send_data, receive_data, 32, 10000);

    >> OK.

4. LPSPI_DRV_MasterTransferBlocking(SPI0_IPC_SYS_MA, send_data, receive_data, 32, 100);

    >> OK. Less timeout still works. 

5. LPSPI_DRV_MasterTransferBlocking(SPI0_IPC_SYS_MA, send_data, receive_data, 256, 100);

    >> OK. More packets still work.

SDK:

Please check attachment for SDK version.

0 Kudos
Reply
5 Replies

1,686 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

Could you, please, update your SDK version to the newest 3.0.2 at first?

 S32 Design Studio for ARM 2018.R1 - Update 11 available 

Best regards,

Diana

0 Kudos
Reply

1,687 Views
xu_wenming
Contributor II

Hello Diana,

Thanks for your information again. I'm gonna do it. 

Consider it's kinda a big project to migrate all configurations to the new version of S32DS, it takes some time. 

I'll share the test result on new version of SDK with you after upgrading.

Best regards,

Matthew Xu

0 Kudos
Reply

1,687 Views
xu_wenming
Contributor II

Hello Diana,

Additional question is: 

Which version is the latest stable version?  

Best regards,

Matthew Xu

0 Kudos
Reply

1,687 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello Matthew,

All updates and IDE can be found here: 

https://www.nxp.com/design/software/development-software/s32-design-studio-ide/s32-design-studio-for...

The latest SDK version for S32DS for ARM 2018.R1 is 3.0.2.

However, there is another version of S32DS for ARM  2.2. This version of IDE has integrated S32 SDK 3.0.2.

So, you can also consider the usage of the newest S32DS.

About compatibility, I'm afraid you might come across differences.
However, the RTM release of SDK is fully tested and ready to be released in the market and integrated into production.

Best regards,

Diana

0 Kudos
Reply

1,687 Views
xu_wenming
Contributor II

Hello Diana,

Thanks for your reply, I'll try to update my SDK to version 3.0.2.

I have made a lot of configuration using ProcessorExpert, before upgrading the version, could you please help me confirm that the new version is compatible with old version PE configuration? 

Best regards,

Matthew Xu

0 Kudos
Reply