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

Raphael
Raphael 2012년 6월 14일
Hello, i suppose that the "eCan Unpack" Block isn´t able to handle 32-bit values.
Shankar Subramanian
Shankar Subramanian 2012년 7월 19일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

질문:

2012년 6월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by