S32K396 flexio SPI example not working

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

S32K396 flexio SPI example not working

Jump to solution
1,205 Views
Henrik-Wires
Contributor IV

Cannot get the FlexIO SPI example Dspi_Flexio_Ip_Transfer_S32K396 to work. I have wired everything up as per the included description.txt but the FlexIO transaction never completes and the example is stuck at continiously checking Flexio_Spi_Ip_GetStatus().

Using Design Studio 3.6.3 (with 3.6.4 update) and RTD 6.0.0.

0 Kudos
Reply
1 Solution
1,173 Views
Henrik-Wires
Contributor IV
Found the culpit. PTB28 is not wired to the MB by default on S32K396-BGA-DC1. Instead it is wired to the PHY connector.

Changing pinout to using PTF0-3 for LPSPI2 works much better.

And I am guessing this is also why the other example does not work as there is a lot of PHY pins not connected to the MB connectors.

It is almost as if you have selected pinouts to make life extra hard in using your tools.

View solution in original post

0 Kudos
Reply
3 Replies
1,183 Views
Henrik-Wires
Contributor IV

The other Spi_Transfer_S32K396 works, and is more closely aligned with what we are doing. So not a blocker for us.

0 Kudos
Reply
1,180 Views
Henrik-Wires
Contributor IV
But not fully. Master do not receive data from slave. Will investigate further on monday.
0 Kudos
Reply
1,174 Views
Henrik-Wires
Contributor IV
Found the culpit. PTB28 is not wired to the MB by default on S32K396-BGA-DC1. Instead it is wired to the PHY connector.

Changing pinout to using PTF0-3 for LPSPI2 works much better.

And I am guessing this is also why the other example does not work as there is a lot of PHY pins not connected to the MB connectors.

It is almost as if you have selected pinouts to make life extra hard in using your tools.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2261306%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K396%20flexio%20SPI%20example%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2261306%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ECannot%20get%20the%20FlexIO%20SPI%20example%20Dspi_Flexio_Ip_Transfer_S32K396%20to%20work.%20I%20have%20wired%20everything%20up%20as%20per%20the%20included%20description.txt%20but%20the%20FlexIO%20transaction%20never%20completes%20and%20the%20example%20is%20stuck%20at%20continiously%20checking%26nbsp%3B%3CSPAN%3EFlexio_Spi_Ip_GetStatus%3C%2FSPAN%3E().%3C%2FP%3E%3CP%3EUsing%20Design%20Studio%203.6.3%20(with%203.6.4%20update)%20and%20RTD%206.0.0.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2261431%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K396%20flexio%20SPI%20example%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2261431%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFound%20the%20culpit.%20PTB28%20is%20not%20wired%20to%20the%20MB%20by%20default%20on%20S32K396-BGA-DC1.%20Instead%20it%20is%20wired%20to%20the%20PHY%20connector.%3CBR%20%2F%3E%3CBR%20%2F%3EChanging%20pinout%20to%20using%20PTF0-3%20for%20LPSPI2%20works%20much%20better.%3CBR%20%2F%3E%3CBR%20%2F%3EAnd%20I%20am%20guessing%20this%20is%20also%20why%20the%20other%20example%20does%20not%20work%20as%20there%20is%20a%20lot%20of%20PHY%20pins%20not%20connected%20to%20the%20MB%20connectors.%3CBR%20%2F%3E%3CBR%20%2F%3EIt%20is%20almost%20as%20if%20you%20have%20selected%20pinouts%20to%20make%20life%20extra%20hard%20in%20using%20your%20tools.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2261397%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K396%20flexio%20SPI%20example%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2261397%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBut%20not%20fully.%20Master%20do%20not%20receive%20data%20from%20slave.%20Will%20investigate%20further%20on%20monday.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2261376%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K396%20flexio%20SPI%20example%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2261376%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20other%20Spi_Transfer_S32K396%20works%2C%20and%20is%20more%20closely%20aligned%20with%20what%20we%20are%20doing.%20So%20not%20a%20blocker%20for%20us.%3C%2FP%3E%3C%2FLINGO-BODY%3E