You are here

Any solution to CRC problem | Cypress Semiconductor

Any solution to CRC problem

Summary: 7 Replies, Latest post by Bob Marlowe on 26 Aug 2012 06:17 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
user_228878049's picture
User
152 posts

 I created this new topic because i could not get the solution to the CRC problem of mine in previous post.

My problem is I am using CRC component with seed of 0x0000 and polynomial X16+X15+X2+1

The CRC component generates correct CRC for the first time when 8 bit of data is fed serially to the component and the CRC is read at the end of 8th bit entry.......

The CRC value is not correct when the component is fed with 8 bits the second time..

So i tried 

1) Stoppping the component and starting it again whenever i need to calculate CRC

2) I started initilaising it everytime i use it

3)I started seeding the value 0x0000 before using it for second time

4) I even tried feeding zeros serially (some 20 zeros) and using it for the second time

5)I used all possible combinations of above mentioned..
 

But the result is fail.

I couldnt attach the project because of size i guesss...... but can anyone  find the solution

user_1377889's picture
User
10803 posts

To attach a project do the following in Creator 2.1

Build -> Clean Project

File -> Create Workspace Bundle (minimal)

and then upload the resulting .Zip file here.

If all fails, send the .Zip archieve to me briefe@jmeiersoftware.de and I'll post it for you.

 

Bob

user_228878049's picture
User
152 posts

 I will try to attach the file......

user_1377889's picture
User
10803 posts
user_1377889's picture
User
10803 posts
user_1377889's picture
User
10803 posts

Probably found the issue.

You are using  ShiftReg_1_WriteRegValue() and the datasheet says to that API

Side Effects:

The component must be stopped to use this API function.

 

That's the reason it will not work as expected

 

Bob

user_228878049's picture
User
152 posts

 

 As you said I did Stop the Shiftreg before writing data and then started again.....I am still facing the same issue ......

user_1377889's picture
User
10803 posts

Hari,

have a look at my suggestions...

 

Bob

Log in to post new comments.