S32K344 - Using built-in CRC engine to compute FS26 CRC-8

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

S32K344 - Using built-in CRC engine to compute FS26 CRC-8

1,490 Views
fede_ls
Contributor II

As the title implies, I'm wondering if it's possible to use the built-in CRC enginer on my S32K344 to generate CRC-8 checksums required for SPI communication with the FS26.

The Seed and Polynomial is defined here, as per NXP's public AN14492:

fede_ls_0-1766151122188.png

I already wrote my own CRC driver but I noticed that the Reference Manual S32K3XXRM "58.3.2
CRC calculations" does not define a method for calculating 8-bit CRC.

Is it possible to use the CRC engine to generate 8-bit checksums?

 

 

0 Kudos
Reply
1 Reply

1,334 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

Thank you for your patience.

CRC in S32K3 supports 16-bit or 32-bit mode. This means CRC-8 could not be implemented by HW. 

I recommend that you download FS26's RTD, as its API already includes a CRC-8 software implementation. Click S32K3 Standard Software -> Automotive SW - SBC/PMIC - Real Time Drivers

Please note that during the Christmas holiday period, our support response times may be longer than usual. In some cases, your request might be addressed after the New Year. Thank you for your understanding.


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2266974%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K344%20-%20Using%20built-in%20CRC%20engine%20to%20compute%20FS26%20CRC-8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2266974%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAs%20the%20title%20implies%2C%20I'm%20wondering%20if%20it's%20possible%20to%20use%20the%20built-in%20CRC%20enginer%20on%20my%20S32K344%20to%20generate%20CRC-8%20checksums%20required%20for%20SPI%20communication%20with%20the%20FS26.%3C%2FP%3E%3CP%3EThe%20Seed%20and%20Polynomial%20is%20defined%20here%2C%20as%20per%20NXP's%20public%20AN14492%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fede_ls_0-1766151122188.png%22%20style%3D%22width%3A%20615px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22fede_ls_0-1766151122188.png%22%20style%3D%22width%3A%20615px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22fede_ls_0-1766151122188.png%22%20style%3D%22width%3A%20615px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F370791i24265F817A448FA9%2Fimage-dimensions%2F615x249%3Fv%3Dv2%22%20width%3D%22615%22%20height%3D%22249%22%20role%3D%22button%22%20title%3D%22fede_ls_0-1766151122188.png%22%20alt%3D%22fede_ls_0-1766151122188.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20already%20wrote%20my%20own%20CRC%20driver%20but%20I%20noticed%20that%20%3CU%3Ethe%20Reference%20Manual%20S32K3XXRM%20%2258.3.2%3C%2FU%3E%3CBR%20%2F%3E%3CU%3ECRC%20calculations%22%20does%20not%20define%20a%20method%20for%20calculating%208-bit%20CRC.%3C%2FU%3E%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20use%20the%20CRC%20engine%20to%20generate%208-bit%20checksums%3F%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2268439%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K344%20-%20Using%20built-in%20CRC%20engine%20to%20compute%20FS26%20CRC-8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2268439%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20patience.%3C%2FP%3E%0A%3CP%3ECRC%20in%20S32K3%20supports%2016-bit%20or%2032-bit%20mode.%20This%20means%20CRC-8%20could%20not%20be%20implemented%20by%20HW.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20recommend%20that%20you%20download%20FS26's%20RTD%2C%20as%20its%20API%20already%20includes%20a%20CRC-8%20software%20implementation.%20Click%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fswlicensing%2Fsso%2FdownloadSoftware.sp%3Fcatid%3DSW32K3-STDSW-D%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ES32K3%20Standard%20Software%3C%2FA%3E%20-%26gt%3B%20Automotive%20SW%20-%20SBC%2FPMIC%20-%20Real%20Time%20Drivers%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23808080%22%3EPlease%20note%20that%20during%20the%20Christmas%20holiday%20period%2C%20our%20support%20response%20times%20may%20be%20longer%20than%20usual.%20In%20some%20cases%2C%20your%20request%20might%20be%20addressed%20after%20the%20New%20Year.%20Thank%20you%20for%20your%20understanding.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3ERobin%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22ACCEPT%20AS%20SOLUTION%22%20button.%20Thank%20you!%3C%2FP%3E%0A%3CP%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E