Jump to content

Vadzim Yatskevich

Members
  • Posts

    3
  • Joined

  • Last visited

  1. Getting compilation error with "interrupts = <0 2 IRQ_TYPE_LEVEL_LOW>;" But when using " interrupts = <0 2 8>; /* PA2 IRQ_TYPE_LEVEL_LOW */ " (is that what Aleksey meant?) compilation is successfull and CAN interface is fully functional on Linux 5.10.16-sunxi
  2. So finally I found a dirty solution to have CAN bus on Orange pi Zero and Orange pi Zero plus 2. Downgrade to kernel version Linux 5.4.x (Linux 5.4.58-sunxi in my case) makes interrupt pins behavior completely adequate. Possible to use PA7 (for Orange pi Zero) and PA2 (Orange pi Zero plus 2).
  3. Can anyone explain strange driver behavior, actual CAN module connection: MCP2515 Opi Zero H2 INT PA7 SCK PA14 SI PA15 SO PA16 CS PA13 GND GND 5V 5V Either I write in overlay pins = "PA2"; or pins = "PA7"; mcp2515 is successfully initialized dasio@orangepizero:~$ dmesg | grep mcp [ 11.495643] mcp251x spi0.0 can0: MCP2515 successfully initialized. But in case of pins = "PA7"; command "sudo ip link set up can0 type can bitrate 500000" leads system to hang When in overlay pins = "PA2"; (that does not correspond to physical connection) CAN bus became functional
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines