lpspi interrupt b2b master example code doesn't work iMXRT1050

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

lpspi interrupt b2b master example code doesn't work iMXRT1050

4,423 Views
michaeldkfowler
Contributor IV

I have imported the lpspi_interrupt_b2b_master example for the MIMXRT1050-EVKB. When I changed the SPI transfer size from 64 bytes to 24, it worked. When I changed the transfer size to less than 24, like 16, it didn't work anymore. Why can't I transfer less than 24 bytes?

0 Kudos
Reply
6 Replies

4,407 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

I replayed this example on my own, unfortunately, I have the same issue but I tested 8, 15, and 17 transfer sizes, I hope this helps you.

Best regards,
Pavel

0 Kudos
Reply

4,393 Views
michaeldkfowler
Contributor IV

So you will fix the SDK?

0 Kudos
Reply

4,295 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, 

I'm back with feedback this is a temporary patch, please help evaluate it.

One known limitation is, the maximum frame length is 512 bytes, and it is from LPSPI IP limitation when work in non-continuous mode.

If the issue still please let me know.
Pavel

0 Kudos
Reply

4,376 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

I will make a report and when I have more information I will contact you.

Best regards,
Pavel

0 Kudos
Reply

4,339 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

We are working on this issue, thanks for the report. unfortunately, I don't know how much time would take for the new release.

Best regards,
Pavel

0 Kudos
Reply

1,134 Views
Ravi07011983
Contributor I

Sir,

   We are working on LPSPI  polling b2b master imported SDK example code but we are unable to see the clock and data dout in oscilloscope.

 MIMXRT1170-EVK boards We are using pins are GPIO_AD_28 for LPSPI1_SCK, GPIO_AD_29 for LPSPI1_PCS0, GPIO_AD_30 for LPSPI1_SDO, GPIO_AD_31 for LPSPI1_SDI.Slave IC CC REF U27 LPSPI Flash.

 Request to provide the solution or forward to LPSPI Master full working code.

 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1493548%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Elpspi%20interrupt%20b2b%20master%20example%20code%20doesn't%20work%20iMXRT1050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1493548%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20imported%20the%26nbsp%3Blpspi_interrupt_b2b_master%20example%20for%20the%20MIMXRT1050-EVKB.%20When%20I%20changed%20the%20SPI%20transfer%20size%20from%2064%20bytes%20to%2024%2C%20it%20worked.%20When%20I%20changed%20the%20transfer%20size%20to%20less%20than%2024%2C%20like%2016%2C%20it%20didn't%20work%20anymore.%20Why%20can't%20I%20transfer%20less%20than%2024%20bytes%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2321039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20lpspi%20polling%20b2b%20master%20example%20code%20doesn't%20work%20iMXRT1170%20EVK%20boards%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2321039%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESir%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%20We%20are%20working%20on%20LPSPI%26nbsp%3B%20polling%20b2b%20master%20imported%20SDK%20example%20code%20but%20we%20are%20unable%20to%20see%20the%20clock%20and%20data%20dout%20in%20oscilloscope.%3C%2FP%3E%3CP%3E%26nbsp%3BMIMXRT1170-EVK%20boards%20We%20are%20using%20pins%20are%20GPIO_AD_28%20for%20LPSPI1_SCK%2C%20GPIO_AD_29%20for%20LPSPI1_PCS0%2C%20GPIO_AD_30%20for%20LPSPI1_SDO%2C%20GPIO_AD_31%20for%20LPSPI1_SDI.Slave%20IC%20CC%20REF%20U27%20LPSPI%20Flash.%3C%2FP%3E%3CP%3E%26nbsp%3BRequest%20to%20provide%20the%20solution%20or%20forward%20to%20LPSPI%20Master%20full%20working%20code.%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1508361%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20lpspi%20interrupt%20b2b%20master%20example%20code%20doesn't%20work%20iMXRT1050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1508361%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'm%20back%20with%20feedback%20this%20is%20a%20temporary%20patch%2C%20please%20help%20evaluate%20it.%3C%2FP%3E%0A%3CP%3EOne%20known%20limitation%20is%2C%20the%20maximum%20frame%20length%20is%20512%20bytes%2C%20and%20it%20is%20from%20LPSPI%20IP%20limitation%20when%20work%20in%20non-continuous%20mode.%3C%2FP%3E%0A%3CP%3EIf%20the%20issue%20still%20please%20let%20me%20know.%3CBR%20%2F%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1505122%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20lpspi%20interrupt%20b2b%20master%20example%20code%20doesn't%20work%20iMXRT1050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1505122%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EWe%20are%20working%20on%20this%20issue%2C%20thanks%20for%20the%20report.%20unfortunately%2C%20I%20don't%20know%20how%20much%20time%20would%20take%20for%20the%20new%20release.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1497561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20lpspi%20interrupt%20b2b%20master%20example%20code%20doesn't%20work%20iMXRT1050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1497561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EI%20will%20make%20a%20report%20and%20when%20I%20have%20more%20information%20I%20will%20contact%20you.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1496741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20lpspi%20interrupt%20b2b%20master%20example%20code%20doesn't%20work%20iMXRT1050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1496741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESo%20you%20will%20fix%20the%20SDK%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1495036%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20lpspi%20interrupt%20b2b%20master%20example%20code%20doesn't%20work%20iMXRT1050%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1495036%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EI%20replayed%20this%20example%20on%20my%20own%2C%20unfortunately%2C%20I%20have%20the%20same%20issue%20but%20I%20tested%208%2C%2015%2C%20and%2017%20transfer%20sizes%2C%20I%20hope%20this%20helps%20you.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EPavel%3C%2FP%3E%3C%2FLINGO-BODY%3E