FS26 FAQ: SPI Protocol Configuration is not sync with current FS26 implementation

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

FS26 FAQ: SPI Protocol Configuration is not sync with current FS26 implementation

Jump to solution
2,013 Views
cuongnguyenphu
NXP Employee
NXP Employee

Document si849710-FS26 FAQ Frequently Asked Questions(1.0).pdf mentioned about SPI configuration as following:

cuongnguyenphu_0-1716781666606.png

However, in current implemented code it will get fail if setup SPI configuration like that:
[C:\EB\tresos29\..\..\NXP\S32K3_FS26_R21-11_2.0.0_CD01\eclipse\plugins\Sbc_fs26_TS_T40D34M20I0R0/generate_PB/src/CDD_Sbc_fs26_PBcfg.c (signed):25]:
"The selected SpiChannelRef must has SpiDataWidth equal to 8"

It needs to update the document FS26 FAQ again to sync-up with current implementation code

cuongnguyenphu_1-1716781698779.png

 

0 Kudos
Reply
1 Solution
1,947 Views
cuongnguyenphu
NXP Employee
NXP Employee

Discussed internally  
FAQ will be updated later

View solution in original post

0 Kudos
Reply
2 Replies
1,948 Views
cuongnguyenphu
NXP Employee
NXP Employee

Discussed internally  
FAQ will be updated later

0 Kudos
Reply
1,983 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Discussed internally with the author of the FS26 FAQ document.

The fact is that the FS26 uses a 32-bit SPI, with the following arrangement:

MOSI (Main Out, Secondary In) bits:
• Bit 31: Main or fail-safe registers selection
• Bit 30 to 25: Register address• Bit 24: Read/Write (For reading Bit 24 = 0; For writing Bit 24 = 1)
• Bit 23 to 8: Control bits
• Bit 7 to 0: Cyclic redundant check (CRC)

MISO (Main In, Secondary Out) bits:
• Bit 31-24: General device status
• Bits 23 to 8: Extended device status, or device internal control register content or device flags 
• Bit 7 to 0: Cyclic redundant check (CRC)

BRs, Tomas

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1875152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFS26%20FAQ%3A%20SPI%20Protocol%20Configuration%20is%20not%20sync%20with%20current%20FS26%20implementation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1875152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDocument%20%3CSTRONG%3Esi849710-FS26%20FAQ%20Frequently%20Asked%20Questions(1.0).pdf%20%3C%2FSTRONG%3Ementioned%20about%20SPI%20configuration%20as%20following%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cuongnguyenphu_0-1716781666606.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cuongnguyenphu_0-1716781666606.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280884iED2AF544C50BC74D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22cuongnguyenphu_0-1716781666606.png%22%20alt%3D%22cuongnguyenphu_0-1716781666606.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHowever%2C%20in%20current%20implemented%20code%20it%20will%20get%20fail%20if%20setup%20SPI%20configuration%20like%20that%3A%3CBR%20%2F%3E%5BC%3A%5CEB%5Ctresos29%5C..%5C..%5CNXP%5CS32K3_FS26_R21-11_2.0.0_CD01%5Ceclipse%5Cplugins%5CSbc_fs26_TS_T40D34M20I0R0%2Fgenerate_PB%2Fsrc%2FCDD_Sbc_fs26_PBcfg.c%20(signed)%3A25%5D%3A%3CBR%20%2F%3E%3CSTRONG%3E%22The%20selected%20SpiChannelRef%20must%20has%20SpiDataWidth%20equal%20to%208%22%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSTRONG%3EIt%20needs%20to%20update%20the%20document%20FS26%20FAQ%20again%20to%20sync-up%20with%20current%20implementation%20code%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cuongnguyenphu_1-1716781698779.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22cuongnguyenphu_1-1716781698779.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280885i5A97DD1F0591EECB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22cuongnguyenphu_1-1716781698779.png%22%20alt%3D%22cuongnguyenphu_1-1716781698779.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1879708%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20FS26%20FAQ%3A%20SPI%20Protocol%20Configuration%20is%20not%20sync%20with%20current%20FS26%20implementation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1879708%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDiscussed%20internally%20%26nbsp%3B%3CBR%20%2F%3EFAQ%20will%20be%20updated%20later%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1875347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20FS26%20FAQ%3A%20SPI%20Protocol%20Configuration%20is%20not%20sync%20with%20current%20FS26%20implementation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1875347%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDiscussed%20internally%20with%20the%20author%20of%20the%20FS26%20FAQ%20document.%3C%2FP%3E%0A%3CP%3EThe%20fact%20is%20that%20the%20FS26%20uses%26nbsp%3Ba%2032-bit%20SPI%2C%20with%20the%20following%20arrangement%3A%3C%2FP%3E%0A%3CP%3EMOSI%20(Main%20Out%2C%20Secondary%20In)%20bits%3A%3CBR%20%2F%3E%E2%80%A2%20Bit%2031%3A%20Main%20or%20fail-safe%20registers%20selection%3CBR%20%2F%3E%E2%80%A2%20Bit%2030%20to%2025%3A%20Register%20address%E2%80%A2%20Bit%2024%3A%20Read%2FWrite%20(For%20reading%20Bit%2024%20%3D%200%3B%20For%20writing%20Bit%2024%20%3D%201)%3CBR%20%2F%3E%E2%80%A2%20Bit%2023%20to%208%3A%20Control%20bits%3CBR%20%2F%3E%E2%80%A2%20Bit%207%20to%200%3A%20Cyclic%20redundant%20check%20(CRC)%3C%2FP%3E%0A%3CP%3EMISO%20(Main%20In%2C%20Secondary%20Out)%20bits%3A%3CBR%20%2F%3E%E2%80%A2%20Bit%2031-24%3A%20General%20device%20status%3CBR%20%2F%3E%E2%80%A2%20Bits%2023%20to%208%3A%20Extended%20device%20status%2C%20or%20device%20internal%20control%20register%20content%20or%20device%20flags%26nbsp%3B%3CBR%20%2F%3E%E2%80%A2%20Bit%207%20to%200%3A%20Cyclic%20redundant%20check%20(CRC)%3C%2FP%3E%0A%3CP%3EBRs%2C%20Tomas%3C%2FP%3E%3C%2FLINGO-BODY%3E