IB vs EB of SPI in s32k (RTD 3.0.0.0)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IB vs EB of SPI in s32k (RTD 3.0.0.0)

跳至解决方案
644 次查看
Guna
Contributor I

We are configuring SPI using EBtresos tool autosar package RTD 3.0.0.0. There are two types of buffers that is configurable:- Internal buffer and External buffer.

1. Is this internal buffer an array defined by Spi driver files in our software? How is it different from a user defined array in terms of speed?

2. Which is better/efficient? IB or EB

3. For IB, we have to first write to the IB a user defined array using Spi_WriteIB and then do Spi_SyncTransmit....whereas in EB, we can , use Spi_SetupEB() to setup this user defined array as the buffer and do Spi_SyncTransmit to do sync  transmission. Which is faster/better, i think Eb only.

4. pls tell the pros and cons of both

0 项奖励
回复
1 解答
589 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Guna,

I guess it depends on the usecase.

The Quality Package provides the expected execution time though.

 

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
612 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Guna,

IB is setup by the driver, whereas EB is setup by the application SW.

The RTD comes with Quality Package, where you can find RTD_SPI_ProfileReport.xlsx with the execution time of each API.

 

Regards,

Daniel

0 项奖励
回复
596 次查看
Guna
Contributor I

But in IB after we have set up the array we have to write it into IB using Spi_WriteIB, we cannot access the IB directly right? the same array we can setup as EB and and modify and Transmit the data?

So, logically EB is faster right?

0 项奖励
回复
590 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Guna,

I guess it depends on the usecase.

The Quality Package provides the expected execution time though.

 

 

0 项奖励
回复