eCan Unpack does not work properly

Hello,
i use the TI F28335 with Code Composer Studio v3.3 and the Target Support Package for C2000. I have a problem with receiving data via eCan. The data i want to receive is an uInt32. I get a Can data Massage and try to unpack it in the "eCan Unpack" block. Everything works pretty good but the value i get out of my eCan Unpack Block is not right.
For example: When i try to receive a value greater than 65535 the value i get out of the "eCan Unpack" block is wrong. The bits from 2^0 up to 2^15 were correct and the bits 2^16 up to 2^31 were always 0.
In the "eCan Unpack" block i use the option "manually specified signals" and i have set the signal parameters as they are set in the other Can devices.
I hope someone knows what i do wrong.
Thanks for any answer

2 Comments

Hello, i suppose that the "eCan Unpack" Block isn´t able to handle 32-bit values.
Do you get any warnings in the command line while generating code? If so, can you post the build output here. I assume you are using the eCAN Receive block with the CAN Unpack block?
Thanks
Shankar

Sign in to comment.

Answers (0)

Asked:

on 13 Jun 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!