I found that inside the can_user.c file
if ( CAN_Read ( hBus, rx_buff) == CAN_ERR_OK)
{
// buffer read from CANx. Check type of buffer.
switch ( rx_buff->bufftype)
{
case CAN_BUFFER_STATUS:
that buffer type is CAN_BUFFER_STATUS.
if ( /*!busOFF[hBus] &&*/ rx_buff->status.bus_status)
is not ...
Search found 3 matches
- Fri 28. Apr 2023, 15:10
- Forum: PCAN-Router FD
- Topic: CAN_UserRead
- Replies: 4
- Views: 5122
- Fri 28. Apr 2023, 13:39
- Forum: PCAN-Router FD
- Topic: CAN_UserRead
- Replies: 4
- Views: 5122
Re: CAN_UserRead
Hello,
thank you for you answer. Unfortunately I still don't know where the error is. I tried 01_ROUTING, but it still does not work.
I activated the internal termination for both sides. I have connected the CAN1 side to 12V power supply (pin 9) and ground (pin 3). On the CAN2 side I have a PCAN ...
thank you for you answer. Unfortunately I still don't know where the error is. I tried 01_ROUTING, but it still does not work.
I activated the internal termination for both sides. I have connected the CAN1 side to 12V power supply (pin 9) and ground (pin 3). On the CAN2 side I have a PCAN ...
- Fri 28. Apr 2023, 11:11
- Forum: PCAN-Router FD
- Topic: CAN_UserRead
- Replies: 4
- Views: 5122
CAN_UserRead
Hello,
i am trying to route a CAN Signal to CAN FD. My problem is that the example 10_CAN_FD does not work. I don't see anythin in PCAN-View. It seems like the if-statement
if ( CAN_UserRead ( CAN_BUS1, &RxMsg) == CAN_ERR_OK)
is not true. If I put
RxMsg.msgtype = CAN_MSGTYPE_FDF | CAN_MSGTYPE ...
i am trying to route a CAN Signal to CAN FD. My problem is that the example 10_CAN_FD does not work. I don't see anythin in PCAN-View. It seems like the if-statement
if ( CAN_UserRead ( CAN_BUS1, &RxMsg) == CAN_ERR_OK)
is not true. If I put
RxMsg.msgtype = CAN_MSGTYPE_FDF | CAN_MSGTYPE ...