On 08.09.2022 21:57:16, Marc Kleine-Budde wrote: > > Thanks for your work on this! May I ask why Phase Seg2 / 2 is chosen? [...] > And I tested with SJW=max from mcp251x (not the mcp251xfd) with SJW=max > to a peak USB adapter with SJW=1 - the peak adapter fails to receive CAN > frames: > With SJW = Phase Seg2 / 2, it works. Correction: My test: TX (mcp2515, 20 MHz OSC) -> RX (PEAK USB) Is broken [1] if the PEAK USB uses SJW==1, independent of the SJW of the mcp2515 (the sender). The test works if the PEAK USB uses SJW=PhaseSeg2/2. regards, Marc [1] The PEAK USB fails to receive CAN frames with certain contents: fails: aaa#aa.00.00.55.00.55.ab.55 works: aaa#aa.00.00.55.00.55.aa.55 -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature