LLD icon indicating copy to clipboard operation
LLD copied to clipboard

SPI-Communication at part12 is not working on RPi4

Open LabNelson opened this issue 11 months ago • 0 comments

I tested the SPI-communication at part 12 with an ENC28J60 connected to a RPi4 (I merged the driver from here. It did'nt work out with your code so I went for debugging. There was something weird with the CS line. I change the code for setting the CS-line (Pin8) to the code from the driver and then it worked.

  1. possibility: You tested it on Rpi3 The Registers pupd_enable of RPi3 divers from RPi4 see picture. GPIO_Register_Rpi3 GPIO_Register_RPi4

  2. possibility: SPI timing In your example, you are only sending messages. With ENC28J60, I also receive messages, so the timing of the CS line is wrong for the ENC28J60 (CS line needs to be active low for a longer time before MOSI-message starts)

The relevant question: Did you (or somebody else) tested your example with RPi4 also?

LabNelson avatar Mar 20 '24 11:03 LabNelson