Hmmm, maybe via ethernet ?
Maybe you give some more information ?
There are several STM32 types out there with ethernet MAC, and even some Nucleo-Boards with ethernet jack and PHY might still be available. That could be a good starting point.
Like if I want 2 STM32F745VGTx microcontrollers to communicate via ethernet, than how can I do it.
I have even changed the MAC address of both the controllers but they both re not able to ping, only the one which is connected to PC is getting pinged.
> only the one which is connected to PC is getting pinged.
How would the one not connected to the PC respond to a ping? What is it connected to?
Would recommend creating and showing a layout diagram of the connections. Consider using a switch between the PC and the devices to route traffic.