W5500 - Reading RTR Register Value FFFF while loading w5500 SPI ethernet driver
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: W5500 - Reading RTR Register Value FFFF while loading w5500 SPI ethernet driver
by Eugeny ·
What register it reads? Did W5500 finish initialization at this time?
Why?
Do you check value at that exactly moment when kernel reads wrong value? What is on the MISO/MOSI wires?
RE: W5500 - Reading RTR Register Value FFFF while loading w5500 SPI ethernet driver
by Kavya1 ·
Reading rtr register, Its not initialising.
In driver code defined rtr register value 2000(0x07D0).
In driver code defined spi_read16 function, when we print that function we are observing 65535 (FFFF) value, when we probe MISO and MOSI we’ve observing other then FFFF in oscilloscope, above attached images for CLK and MISO signal.
Regards,
Kavya.
RE: RE: W5500 - Reading RTR Register Value FFFF while loading w5500 SPI ethernet driver
by lawrence WIZnet ·
Hi, @Kavya1
which library are you using?
This is the official ioLibrary we support.
We could find risc-v customer from hongkong. but W5500 already worked well with 32bit ARM cortex-Mx
RE: W5500 - Reading RTR Register Value FFFF while loading w5500 SPI ethernet driver
by Kavya1 ·
Hi,
Currently we are not using any library, enabled driver support for wiznet in 5.10.41 kernel, configured wiznet in device tree node. while booting wiznet driver is not loading it stopping in w5100_read16 () function.
is it mandatory to add ioLibrary?
Regards,
Kavya.
RE: W5500 - Reading RTR Register Value FFFF while loading w5500 SPI ethernet driver
by rena ·
Hi,
What did you write for the device tree code?
I was using the dts overlay file provided by version 5.10.x in the Raspberry Pi environment.
The code can be found in the link below.
RE: W5500 - Reading RTR Register Value FFFF while loading w5500 SPI ethernet driver
by Kavya1 ·
Hi,
Below dts node used :
eth1@0 {
compatible = “wiznet,w5500”;
reg = <0>;
interrupt-parent = <&porta>;
pinctrl-names = “default”;
interrupts = <21 IRQ_TYPE_EDGE_FALLING>;
irq-gpios = <&porta 21 GPIO_ACTIVE_HIGH>;
mac-address = [00 08 DC 01 02 03];
spi-max-frequency = <35000000>;
status = “okay”;
}
Tested w5100 using spidev_test getting rtr value 07D0, when we try to load Wiznet driver getting 65535(ffff), please find the attached logs below.
spidev_test logs:
spidev_test -D /dev/spidev0.0 -v -p “\x00\x19\x00\x00\x00”
[ 906.293490] cnds_runtime_resume @ 1143
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 kHz)
[ 906.314953] kavya : spi phase
[ 906.334881] kavya : spi polarity
[ 906.355262] kavya : spi mode 0
[ 906.355268] kavya : select the slave
TX | 00 19 00 00 00 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |…|
RX | 01 02 03 07 D0 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |…|
wiznet driver logs:
[ 206.463853] WIZNET : data is 65535
Please do help me on this.
Regards,
Kavya .
RE: W5500 - Reading RTR Register Value FFFF while loading w5500 SPI ethernet driver
by Eugeny ·
Does it mean that SPI is functioning correctly?
Track how data is being passed till it displays
RE: W5500 - Reading RTR Register Value FFFF while loading w5500 SPI ethernet driver
by Kavya1 ·
As per our observation spidev_test reading the actual value from the slave device, we will think like spi is functioning correctly.
When i probe the data line (MISO), getting FFFF find the attached oscilloscope signal below.
Please share the compilation procedure for ioLibrary .
RE: RE: W5500 - Reading RTR Register Value FFFF while loading w5500 SPI ethernet driver
by lawrence WIZnet ·
Hi, @Kavya1
could you share the full signal with MOSI and MISO on oscilloscope ?
I would like to also check address, op and data format is right.