2024-07-31 03:00 AM - last edited on 2024-07-31 03:12 AM by Andrew Neil
I am using an Ethernet switch with three ports. The first Ethernet port (IP address 192.168.1.206) is connected to a CPU. The second Ethernet port is connected to an STM32H743ZIT6 board, and the third Ethernet port is connected to another STM32H743ZIT6 board. The first STM32H743ZIT6 board (sender) has an IP address of 192.168.1.100, and the second STM32H743ZIT6 board (receiver) has an IP address of 192.168.1.101.
In my code Transmit and Receive is not working . please help and give me a solution or hint
.
2024-07-31 03:17 AM
@Raja_Kaaliraj wrote:The first Ethernet port (IP address 192.168.1.206) ...
it's not the switch port which has the IP address - it's the thing which is connected to that port.
@Raja_Kaaliraj wrote:... is connected to a CPU.
You mean a PC ?
How are your IP addresses being assigned - Static? DHCP? Other?
@Raja_Kaaliraj wrote:In my code Transmit and Receive is not working . please help and give me a solution or hint
So what testing/investigation/debugging have you done to see what's going on?
Is your code even running at all?
What code is it?
What if you get rid of the switch, and just try with 1 microcontroller connected straight to the PC?
2024-07-31 03:20 AM
@Raja_Kaaliraj wrote:an STM32H743ZIT6 board
What "STM32H743ZIT6 board", exactly?
Give full details:
@Raja_Kaaliraj wrote:another STM32H743ZIT6 board.
The same as the first board, or something else?
2024-07-31 01:43 PM
Are you using different MAC addresses on the two STM32 boards?
ST does not provide unique MAC addresses with their ethernet controllers, you have to fill that in yourself and they have to be unique.