Skip to main content
tony2
Associate
April 27, 2016
Question

CRC function on SPC56EL70L5

  • April 27, 2016
  • 3 replies
  • 1242 views
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 topic has been closed for replies.

3 replies

Erwan YVIN
ST Technical Moderator
April 27, 2016
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
tony2
tony2Author
Associate
April 28, 2016
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 Technical Moderator
April 28, 2016
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
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.