SPI default data

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

SPI default data

Jump to solution
366 Views
durga_choudhury
Contributor V

MCU: S32K148

IDE S32DS 3.6.6

OS: Windows 11

 

What does the 'SPI default data' in peripherals tool mean (see the screen shot below)? (It is generated as 0 by the tool, I edited it to 0x12).

 
 

spi1.png

To put some context to my question, I am chasing a strange issue like this:

I have peripherals on all 3 of SPI buses. If I configure SPI2 alone, I can read/write the peripheral attached to it just fine. However, if I configure more peripherals, or if SPI2 is not the first SPI logical device, I cannot read it, even though all the initialization/read/write are returning SUCCESS. This is with RTD v3.0.0 with non-autosar drivers. When I say 'cannot read it', I mean that the read call is returning a data of 0x0, even when I configure the 'SPI default data' to something else, which makes me wonder what this field is supposed to do.

0 Kudos
Reply
1 Solution
330 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

this parameter specifies the default data transmitted when the pointer passed to transfer function of the driver is NULL

image.png

BR, Petr

View solution in original post

0 Kudos
Reply
1 Reply
331 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

this parameter specifies the default data transmitted when the pointer passed to transfer function of the driver is NULL

image.png

BR, Petr

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2343215%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESPI%20default%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343215%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMCU%3A%20S32K148%3C%2FP%3E%3CP%3EIDE%20S32DS%203.6.6%3C%2FP%3E%3CP%3EOS%3A%20Windows%2011%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EWhat%20does%20the%20'SPI%20default%20data'%20in%20peripherals%20tool%20mean%20(see%20the%20screen%20shot%20below)%3F%20(It%20is%20generated%20as%200%20by%20the%20tool%2C%20I%20edited%20it%20to%200x12).%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22spi1.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22spi1.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F380969i184E4AC724B2448E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22spi1.png%22%20alt%3D%22spi1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ETo%20put%20some%20context%20to%20my%20question%2C%20I%20am%20chasing%20a%20strange%20issue%20like%20this%3A%3C%2FP%3E%3CP%3EI%20have%20peripherals%20on%20all%203%20of%20SPI%20buses.%20If%20I%20configure%20SPI2%20alone%2C%20I%20can%20read%2Fwrite%20the%20peripheral%20attached%20to%20it%20just%20fine.%20However%2C%20if%20I%20configure%20more%20peripherals%2C%20or%20if%20SPI2%20is%20not%20the%20first%20SPI%20logical%20device%2C%20I%20cannot%20read%20it%2C%20even%20though%20all%20the%20initialization%2Fread%2Fwrite%20are%20returning%20SUCCESS.%20This%20is%20with%20RTD%20v3.0.0%20with%20non-autosar%20drivers.%20When%20I%20say%20'cannot%20read%20it'%2C%20I%20mean%20that%20the%20read%20call%20is%20returning%20a%20data%20of%200x0%2C%20even%20when%20I%20configure%20the%20'SPI%20default%20data'%20to%20something%20else%2C%20which%20makes%20me%20wonder%20what%20this%20field%20is%20supposed%20to%20do.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2343406%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20SPI%20default%20data%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343406%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3Ethis%20parameter%20specifies%20the%20default%20data%20transmitted%20when%20the%20pointer%20passed%20to%20transfer%20function%20of%20the%20driver%20is%20NULL%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20844px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20844px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F381003i4E56FA3CD8791119%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBR%2C%20Petr%3C%2FP%3E%3C%2FLINGO-BODY%3E