IB vs EB of SPI in s32k (RTD 3.0.0.0)

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

IB vs EB of SPI in s32k (RTD 3.0.0.0)

Jump to solution
301 Views
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 Kudos
Reply
1 Solution
246 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Guna,

I guess it depends on the usecase.

The Quality Package provides the expected execution time though.

 

 

View solution in original post

0 Kudos
Reply
3 Replies
269 Views
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 Kudos
Reply
253 Views
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 Kudos
Reply
247 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Guna,

I guess it depends on the usecase.

The Quality Package provides the expected execution time though.

 

 

0 Kudos
Reply