2021-12-22 6:44 AM
2021-12-22 9:10 AM
No, better things to do...
If you're willing to grind through the data, you can basically create a logic-analyzer via TIM+DMA+GPIO, sampling fast enough so you can synchronize to the edges, and then step the buffer to extract the HI/LO pairs at the center/sample points, etc. It doesn't look to be overwhelming complex, although perhaps limited in upper bandwidth.
2021-12-22 9:16 AM
Or you can use timer input capture + DMA to take timestaps for rising and falling edges. That should be able "read" speeds over 1Mb/s.
2021-12-23 2:06 AM
Canbus needs collision handling during the burst. So capture and evaluation afterwards is doomed for failure in the field. Bitbanging the protocoll with highest priority for a low bit rate should be doable, but will require a lot of work and understanding of the protocoll and its niches