How to set Can Object Dictionary entry to greater than 15 bytes

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set Can Object Dictionary entry to greater than 15 bytes

591 Views
gregwilson-lind
Contributor II

In the CAN_ODENTRY array the length of the object entry is limited to 4 bits, but strings can be longer than that. Also for something like OD1f50 which points to a buffer that I would like to set to 4K bytes long, how do I set the length.

Labels (1)
0 Kudos
Reply
1 Reply

423 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Greg Wilson-Lindberg,

    Did you use the CAN on chip drivers?

   This on chip drivers seems just defined the CAN_ODENTRY entrytype_len max to 15.

Even definition is :

      typedef struct _CAN_ODENTRY {
  uint16_t index;
  uint8_t  subindex;
  uint8_t  entrytype_len;
  uint8_t  *val;
}CAN_ODENTRY;

But the high 4 bits already defined as access_type, just lower 4 bit can be used as the length.

This should be defined in the on chip drivers, and can't be modified.

If you want to use larger length, maybe you should write your own lpcopen code.

But I also will help you to contact with other AE, check it whether there has another way.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply