Hilscher Gesellschaft fuer Systemautomation mbH
Hello,
in the CAN-HAL V3.0.0.0 Example is a small bug included.
In the module "hal_can.c" in the function "Can_SetRxExtPrioCmpReg" is a consistency check included.
The following and in this version used code is wrong:
... if(ulExtId & 0x3FFFFFFF) return CAN_INVALID_RX_IDENTIFIER; ...
The correct code must be:
... if(ulExtId > 0x3FFFFFFF) return CAN_INVALID_RX_IDENTIFIER; ....
This bug will be solved in the next CAN-HAL version.
You can solve the bug by your self by using the shown code.