This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CAN Calibration Protocol (CCP)

Hello,

I'm integrating CCP module to my project.

I find a problem that, one byte is 16 bit in F28335. But it seems that one byte is 8 bit in the ASAP2 definition.

------------------------------------------------------------------------------------------------------------------------------------

Take Command UPLOAD for example(from CAN Calibration Protocol Version 2.1):

Position Type Description

0 byte Command Code = UPLOAD  0x04

1 byte Command Counter = CTR

2 byte Size of data block to be uploaded in bytes

3...7 bytes don't care

A data block of the specified length (size), starting at current Memory Transfer Address 0 (MTA0) , will be copied into the corresponding DTO data field. The MTA0 pointer will be post-incremented by the value of 'size'.

------------------------------------------------------------------------------------------------------------------------------------

I seems that almost all the CCP tools like Vector CANAPE, ETAS INCA define one byte 8 bit here

( byte Size of data block to be uploaded in bytes).

Then we have a problem.

Take UPLOAD 4*8 bit for example:

The MTA0 pointer in CCP tool will be post-incremented by 4

The MTA0 pointer in F28335 will be post-incremented by 2

The two MTA0 mismatch.

------------------------------------------------------------------------------------------------------------------------------------

Possible solution:

1 CCP can define one byte 16 bit. Just change the a2l file or CCP tool’s setting to support 16 bit byte. – But I don’t know whether CCP support 16 bit byte.

------------------------------------------------------------------------------------------------------------------------------------

Is there any other solution?

Thank you very much

  • JIngbin,

    I am sorry no one got back to you sooner, I must have missed this. I primarily support CAN and LIN products on the hardware side and therefore do not know much on CCP side of things. But, I may be able to put you in contact with someone who can help.

    What micro-controller and CAN transceiver are you using? I know a lot of our embedded products have drivers written for there CAN ports. They may be able to help you more. 

    Thanks

    John