PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
fenasikerim
Posts: 5
Joined: Fri 8. Nov 2024, 11:16

PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun

Post by fenasikerim » Fri 8. Nov 2024, 11:47

I observe this error in my Jetson TX2's system logs when I activate CAN Bus Line. I tried switching aspm from powersave mode to performance and default mode in tx2. This error still shows up. Can someone help me to solve the issue ? This error still comes into my log files and sometimes my device suddenly resets itself and sometimes canbus doesn't record any data it just stops.
pcieport: PCIe Bus Error: severity=Corrected, type=Data Link Layer, id=0018 (Transmitter ID)
pcieport: device[someID] error status/mask=00001000/00002000
pcieport: [12] Replay Timer Timeout

pcan: PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun (loss of frame?) IRQ380 count=114273

M.Maidhof
Support
Support
Posts: 1687
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun

Post by M.Maidhof » Mon 11. Nov 2024, 10:10

Hi,

looks like you are using the peak-linux-driver. Please post the output of cat /proc/pcan to see which version you are using. With this driver it is possibe to increase the rx buffer or even switch to MSI instead of INTA interrupt handling, to improve such issues. More details are available in the manual of the driver:

https://www.peak-system.com/fileadmin/m ... an_eng.pdf

regards

Michael

fenasikerim
Posts: 5
Joined: Fri 8. Nov 2024, 11:16

Re: PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun

Post by fenasikerim » Mon 11. Nov 2024, 12:50

Code: Select all

$ cat /proc/pcan
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20200701_n (8.10.2) Jul 9 2021 02:30:17 --------------
*------------- [mod] [isa] [pci] [pec] [dng] [usb] --------------
*--------------------- 4 interfaces @ major 505 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
0 pcifd -NA- aa51000 380 0x001c 00000001 00000000 00000001 00000000 0x0000
1 pcifd -NA- aa52000 380 0x001c 00000001 00000000 00000001 00000000 0x0000
2 pcifd -NA- aa53000 380 0x001c 00000001 00000000 00000001 00000000 0x0000
3 pcifd -NA- aa54000 380 0x001c 00000001 00000000 00000001 00000000 0x0000
this is the output of cat /proc/pcan file

I wasn't able to find what does INTA and MSI mode do ? Can you please explain or send me any guide that explains them?
Last edited by M.Gerber on Tue 12. Nov 2024, 13:53, edited 1 time in total.
Reason: Inserted [code] tag for improved readability

M.Heidemann
Sales & Support
Sales & Support
Posts: 1019
Joined: Fri 20. Sep 2019, 13:31

Re: PCAN-miniPCIe FD CAN1 Ctrlr Rx Buffer overrun

Post by M.Heidemann » Mon 11. Nov 2024, 13:41

Hello!

First of all:

Please update your driver, the current version is 8.18:

https://www.peak-system.com/quick/PCAN-Linux-Driver

Also see the manual, as mentioned by my colleague Michael:

https://www.peak-system.com/fileadmin/m ... an_eng.pdf

In your case specifically, check chapter 3.3 for reference.

BR

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply