1334 views|12 replies

3180

Posts

0

Resources
The OP
 

SPI interface network port problem [Copy link]

 

I originally bought an SPI interface network port module, which I used frequently and published reviews for.

But today I found that many of the good programs are no longer usable.

What is going on? Is the network port broken?

Changing the computer doesn't work and the puzzle still doesn't work.

I found out that he probably died here.

	W5500_Hardware_Reset();	

void W5500_Hardware_Reset(void)
{
	GPIO_ResetBits(W5500_RST_PORT, W5500_RST);//复位引脚拉低
	Delay(50);
	GPIO_SetBits(W5500_RST_PORT, W5500_RST);//复位引脚拉高
	Delay(200);
	while((Read_W5500_1Byte(PHYCFGR)&LINK)==0);//等待以太网连接完成
}

While statement there.

And the reading and writing registers are not correct either.

Could you please tell me where I might have gone wrong? Thanks!

This post is from stm32/stm8

Latest reply

The "environment" here refers to the upper hardware platform, cables, power supply, software code, software compilation and operating environment, etc. Please check them one by one.   Details Published on 2023-5-15 18:36
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

1662

Posts

0

Resources
2
 

I changed a computer and still couldn't figure it out.

There might be a communication port failure.

This post is from stm32/stm8

Comments

Thank you! You mean the communication port of the network port module is faulty.  Details Published on 2023-5-14 22:05
 
 

4817

Posts

4

Resources
3
 

Is it a bad contact?

This post is from stm32/stm8

Comments

I tested the lines and they are all connected.  Details Published on 2023-5-14 22:04
 
 

3180

Posts

0

Resources
4
 

I tested the lines and they are all connected.

This post is from stm32/stm8
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

3180

Posts

0

Resources
5
 
Hot Ximi Show posted on 2023-5-14 21:00 I changed another computer and it still didn't work. It should be that the communication port is faulty

Thank you! You mean the communication port of the network port module is faulty.

This post is from stm32/stm8
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

4764

Posts

12

Resources
6
 
This question is so strange~
This post is from stm32/stm8
 
 
 

5998

Posts

6

Resources
7
 

Can the speed of SPI meet the requirements of the network port?

This post is from stm32/stm8
 
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 

6062

Posts

4

Resources
8
 

If the network card of the board is not rusty, you should still consider more problems with wiring and code.

This post is from stm32/stm8

Comments

The code should be fine. It worked fine before. I also tested the wiring and it is all connected. I think it is probably broken. However, the network port light is flashing. But it just can't be spelled, and the read and write registers are not correct.  Details Published on 2023-5-15 12:51
 
 
 

3180

Posts

0

Resources
9
 
damiaa posted on 2023-5-15 09:30 If the network card of the board is not rusty, it is still more important to consider the wiring and code issues.

The code should be fine, it was working fine before. I also tested the wiring, it's all connected.

I think it is probably broken. However, the network port light is flashing. But the spelling is not working, and the read and write registers are not correct.

This post is from stm32/stm8
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

1w

Posts

142

Resources
10
 

If the wiring or power supply is not connected incorrectly, it will not be damaged so easily. You should first think carefully about the differences in operation and environment between the current and past uses.

This post is from stm32/stm8

Comments

Thank you, Chunyang! I will try again. However, there should be a difference in the environment, but it doesn't seem to have much impact.  Details Published on 2023-5-15 18:28
 
Personal signature上传了一些书籍资料,也许有你想要的:http://download.eeworld.com.cn/user/chunyang
 
 

3180

Posts

0

Resources
11
 
chunyang posted on 2023-5-15 13:32 If the wires or power supply are not connected incorrectly, it will not be so easy to damage. It is better to think carefully about the differences in operation and environment between the current and past use.

Thank you, Chunyang! I will try again. However, there should be a difference in the environment, but it doesn't seem to have much impact.

This post is from stm32/stm8

Comments

The "environment" here refers to the upper hardware platform, cables, power supply, software code, software compilation and operating environment, etc. Please check them one by one.  Details Published on 2023-5-15 18:36
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

1w

Posts

142

Resources
12
 
chenbingjy posted on 2023-5-15 18:28 Thank you, Master Chunyang! I will try again. However, there should be differences in the environment, but I don’t think it has much impact.

The "environment" here refers to the upper hardware platform, cables, power supply, software code, software compilation and operating environment, etc. Please check them one by one.

This post is from stm32/stm8

Comments

Thanks Chunyang. I tried a program yesterday and found that it actually worked. It's really strange, but it seems to work sometimes and sometimes not.  Details Published on 2023-5-16 13:50
 
Personal signature上传了一些书籍资料,也许有你想要的:http://download.eeworld.com.cn/user/chunyang
 
 

3180

Posts

0

Resources
13
 
chunyang posted on 2023-5-15 18:36 The "environment" here refers to the upper hardware platform, cables, power supply, software code, software compilation and operating environment, etc. Check them one by one. ...

Thanks Chunyang. I tried a program yesterday and found that it actually worked. It's really strange, but it seems to work sometimes and sometimes not.

This post is from stm32/stm8
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
MATLAB APP Designer serial port debugging tool writing

This post was last edited by lb8820265 on 2019-5-9 23:11 Previously, we introduced two ways to use VC6 to make serial ...

About the original picture and packaging

Does anyone have the original picture and package of STM32F103 series?

How to use CPLD to collect asynchronous signals

Scenario: Use CPLD to decode a serial data channel. The data has no accompanying clock and has a fixed frequency but a d ...

Measuring poles and zeros from a Bode plot

This post was last edited by Jack315 on 2021-1-25 00:52 The transfer function of a single zero is: 522846 The Bode plot ...

Encoder counting principle and motor speed measurement principle - multi-picture analysis

This post was last edited by DDZZ669 on 2021-2-14 23:30 Encoder is a sensor used to measure mechanical rotation or displ ...

35 "Ten Thousand Miles" Raspberry Pi Car——ROS Learning (Realizing Hello World)

The best way to learn ROS is to use it. The ROS official website has a Chinese version of the tutorial . After install ...

36 "Ten Thousand Miles" Raspberry Pi Car——ROS Learning (VSCode to Implement Hello World)

It is very convenient to run ROS projects in VSCode. In this section, we use ROS to write and run the "Hello world" pro ...

[The strongest open source] Hand-rubbed 120W switching power supply

I recently took the time to make a switching power supply 645265 645262 645263 645264 645261 645260

Record a blue screen pit

I mentioned a while ago that my company's computers would occasionally blue screen. Now I think about it, the blue scree ...

ESP8266 01+DHT11 acquisition

Could anyone give me some advice? When I collect DHT11 data through one of GPIO 0 and 2, the 8266 01 keeps restarting. O ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list