Search found 311 matches

by S.Grosjean
Wed 18. May 2022, 10:15
Forum: Linux
Topic: Issues in getting hardware timestamps on Linux
Replies: 6
Views: 1228

Re: Issues in getting hardware timestamps on Linux

Hi, Ok, thank you for the replies. The hw timestamps are given to the socket-can "as is", that is, these are not related to any CLOCKs of the Kernel but are "only" microseconds counters. Therefore, you can't interpret their values as any time of day. When powered on, this counter starts from 0. This...
by S.Grosjean
Tue 17. May 2022, 17:10
Forum: Linux
Topic: Issues in getting hardware timestamps on Linux
Replies: 6
Views: 1228

Re: Issues in getting hardware timestamps on Linux

Hello, Can you please give us much more information about this "PCI" card? FYI, if you're talking about the "PCAN-PCI" card (which partnum is IPEH-002064/2065/2066/2067) then you won't be able to get any "hardware" timestamp since the hardware does not provide them. Otherwise, we need to know which ...
by S.Grosjean
Thu 5. May 2022, 11:33
Forum: Linux
Topic: Peak-linux-driver-8.14.0 not working
Replies: 9
Views: 345

Re: Peak-linux-driver-8.14.0 not working

Hello,

This is important information that will allow us to move forward on this issue. So, to summarize, you confirm that under 5.15.32 the PCAN-M2:
  • works with the socket-can driver in 32-bit and 64-bit modes
  • works with the 32-bit pcan driver
  • does not work with the 64-bit pcan driver
Right?
by S.Grosjean
Thu 5. May 2022, 10:39
Forum: Linux
Topic: Peak-linux-driver-8.14.0 not working
Replies: 9
Views: 345

Re: Peak-linux-driver-8.14.0 not working

Hello, FYI the mainline kernel includes for years now the peak_pciefd socket-can driver that is in charge to handle the PCAN M.2 card too. I would also strongly suggest to configure its use in your kernel configuration (Networking support -> CAN bus subsystem support -> CAN Device Drivers -> PEAK-Sy...
by S.Grosjean
Wed 4. May 2022, 09:36
Forum: Linux
Topic: Peak-linux-driver-8.14.0 not working
Replies: 9
Views: 345

Re: Peak-linux-driver-8.14.0 not working

Hello, Looks like the M2 card is no more detected at all. You should at least see what you had before, that is: [ 4.507393] pcan 0000:01:00.0: enabling device (0000 -> 0002) [ 4.507425] pcan 0000:01:00.0: PCAN-M.2 sub-system id 14h (4 channels) [ 4.628624] pcan: PCAN-M.2: flash write failure (err -1...
by S.Grosjean
Tue 3. May 2022, 11:24
Forum: Linux
Topic: Peak-linux-driver-8.14.0 not working
Replies: 9
Views: 345

Re: Peak-linux-driver-8.14.0 not working

Hi, The PCAN M2 card needs to share DMA areas between the host and the card: for each CAN, the driver requests 2 x 4KB of such DMA area. It looks like your system lacks of such space. Please have a look to topics that talk about tuning DMA for RPI4 (for example: https://forums.raspberrypi.com/viewto...
by S.Grosjean
Wed 6. Apr 2022, 14:55
Forum: Beta: LIN Device Driver for Linux
Topic: Retrieve Slave data from unconditional scheduler frames
Replies: 1
Views: 150

Re: Retrieve Slave data from unconditional scheduler frames

Hi,

To read data written by the slave, please use:

Code: Select all

$ linread /dev/plin0
after having started the scheduler like you do. See also "linread --help" for a list of available options of the display format.

Regards,
by S.Grosjean
Fri 1. Apr 2022, 16:43
Forum: PCAN-Basic
Topic: PcanBus initialization failed
Replies: 13
Views: 776

Re: PcanBus initialization failed

Hi, Thank you for the output file. It will be studied to see if there is something wrong with the pcan driver. When you write: after I ran it for a long time, What exactly are you talking about? What do you run for that long time before your system runs out of memory? A first look at the traces show...
by S.Grosjean
Tue 29. Mar 2022, 10:43
Forum: PCAN-Basic
Topic: PcanBus initialization failed
Replies: 13
Views: 776

Re: PcanBus initialization failed

Hi, First, there is no obvious reason why "err -108" occurs so often in your system except removing the PCAN device or a power issue at least. The "page allocation failure" says that your kernel lacks of memory to open the pcan device. What kind of Linux platform are your running please? Please, run...
by S.Grosjean
Wed 7. Apr 2021, 10:19
Forum: Linux
Topic: Chip-send-buffer full
Replies: 12
Views: 4063

Re: Chip-send-buffer full

Hi, If the reading thread still receives CAN frames, then the interrupt handler works as it should. Therefore, there is no obvious reason why it doesn't unlock the writing thread too... This version of pcan is not multi-session. This means that only one thread is allowed to write over a channel. Mor...