Connection issue using STM32 #3433
Replies: 2 comments
-
|
You have a custom board, so evidently what is wrong is that anything is not properly configured according to your board, either PHY address or memory placement or cache settings. |
Beta Was this translation helpful? Give feedback.
-
|
BTW, we don't fully support the ARM v5 compiler, and for v6, make sure it takes our GCC-like memory placement attributes. Otherwise, you're on your own. Follow code tutorials here if available for the closest micro, and if you are a paying customer please contact Support as per your contract. Thank you. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to use Mongoose built-in TCP/IP stack for my custom board. The log message appear in the serial terminal shows the connection is ready. However, when I trying to use PC ping the device, the device can receive the signa but the PC keeps showing timeout. Please refer the description below for the details.
Board: Custom with STM32H7 series
Interface: RMII
Platform: Keil MDK
Compiler: ARM v5
OS: Bare-metal
IP stack: built-in mongoose TCP/IP stack
PC IP address: 192.168.1.10
Device IP address: 192.168.1.24 (not DHCP)
PC and device mask: 255.255.255.0
Logging message
55 2 mongoose.c:23171:mg_phy_init PHY ID: 0x2000 0x5c90 (DP83x)
5b 2 mongoose.c:4188:mg_mgr_init Driver: stm32h, MAC: 02:16:00:07:08:39
63 3 mongoose.c:4195:mg_mgr_init MG_IO_SIZE: 512, TLS: none
69 3 mongoose.c:4112:mg_listen 1 0 http://0.0.0.0:80
6f 2 mongoose.c:5885:mg_tcpip_poll Status: down, IP: 192.168.1.24, rx:0, tx:0, dr:0, er:0
78 1 mongoose.c:5916:mg_tcpip_poll Network is down
443 2 mongoose.c:5885:mg_tcpip_poll Status: down, IP: 192.168.1.24, rx:0, tx:0, dr:0, er:0
44c 1 mongoose.c:5916:mg_tcpip_poll Network is down
82b 2 mongoose.c:5885:mg_tcpip_poll Status: down, IP: 192.168.1.24, rx:2, tx:0, dr:0, er:0
834 3 mongoose.c:25142:mg_tcpip_driv Link is 100M full-duplex
c13 2 mongoose.c:5885:mg_tcpip_poll Status: ip, IP: 192.168.1.24, rx:6, tx:1, dr:0, er:0
c1b 2 mongoose.c:4514:onstatechange READY, IP: 192.168.1.24
c22 2 mongoose.c:4515:onstatechange GW: 192.168.1.1
c28 2 mongoose.c:4516:onstatechange MAC: 02:16:00:07:08:39
ffb 2 mongoose.c:5885:mg_tcpip_poll Status: ready, IP: 192.168.1.24, rx:9, tx:1, dr:0, er:0
13e3 2 mongoose.c:5885:mg_tcpip_poll Status: ready, IP: 192.168.1.24, rx:11, tx:1, dr:0, er:0
17cb 2 mongoose.c:5885:mg_tcpip_poll Status: ready, IP: 192.168.1.24, rx:20, tx:1, dr:0, er:0
1a9b 3 mongoose.c:4713:rx_arp ARP: tell 192.168.1.10 we're 02:16:00:07:08:39
1bb3 2 mongoose.c:5885:mg_tcpip_poll Status: ready, IP: 192.168.1.24, rx:26, tx:2, dr:0, er:0
1d8d 3 mongoose.c:4713:rx_arp ARP: tell 192.168.1.10 we're 02:16:00:07:08:39
1f9b 2 mongoose.c:5885:mg_tcpip_poll Status: ready, IP: 192.168.1.24, rx:32, tx:3, dr:0, er:0
216f 3 mongoose.c:4713:rx_arp ARP: tell 192.168.1.10 we're 02:16:00:07:08:39
2383 2 mongoose.c:5885:mg_tcpip_poll Status: ready, IP: 192.168.1.24, rx:36, tx:4, dr:0, er
Mongoose_config.h
Initialize polling
Ping from PC's CMD
C:\Users\xin00>ping 192.168.1.24
Pinging 192.168.1.24 with 32 bytes of data:
Reply from 192.168.1.10: Destination host unreachable.
Request timed out.
Request timed out.
Request timed out.
Can anyone tell me what goes wrong?
Beta Was this translation helpful? Give feedback.
All reactions