cancel
Showing results for 
Search instead for 
Did you mean: 

CRC function on SPC56EL70L5

tony2
Associate
Posted on April 27, 2016 at 10:19

I try to use SPC56EL70L5-DISP(master) to communicate another board(slave) through SPI.

CRC-8 , polynomial, C(x) = x8 + x2 + x1 + 1 , is needed for the SPI last byte.

I attempt to use the SPC56EL70L3 build-in CRC function to check/generate CRC byte.

However the datasheet mentions it supports x8 + x4 + x3 + x2 + 1.

Is it possible for me to use the built-in CRC function?

And how do I configure the CRC reg(CRC_CFG, CRC_INP, CRC_CSTAT)

Thanks for help

#crc
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
3 REPLIES 3
Erwan YVIN
ST Employee
Posted on April 27, 2016 at 10:53

Hello Tony ,

There is an example :

SPC560Pxx OS-Less CRC Test Application for Discovery in Application Wizard

you can port from this application (CRC registers) from P Line into SPC56EL70L5-DISP

cf CRC32_use_CPU_test() and cf chapter 16.7 in the Reference Manual.

                     Best regards

                             Erwan

tony2
Associate
Posted on April 28, 2016 at 05:31

Erwan, thanks for your reply.

The example you mentioned is not contained in my SPC5 Studio.

(http://imgur.com/SEOz4oP)

Can you upload it? Or where i can download it?

Erwan YVIN
ST Employee
Posted on April 28, 2016 at 09:29

Hello Tony ,

you have to play with some filters to find the test application

(cf screenshot)

Best regards

Erwan

________________

Attachments :

2016-04-28_092854.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0YA&d=%2Fa%2F0X0000000baF%2F06n9IAS73zgzOC6NW7B0Fl6S0D38rA3KB1oR5L7RaDE&asPdf=false