Duplicate MAC addresses on W5500 modules? #18070
-
Using the 1.26 build, for W5500 EVB boards. I have a W5100S-EVB-PICO, but no W5500-EVB. However, I have some W5500 modules from previous projects, and by using the same connections (SPI0, Int, CSn) I am able to get them to work as I would expect. However, it seems that at least two of the modules have the same MAC, and I was under the impression that they had individual ones. Now, I also believed that it was possible to manually set the MAC. The sequence I am using is as follows: However, this isn't working. When I look at the network traffic, the module is still using the original MAC when sending DHCP packets, and if I do As a test, I queried the MAC before setting the NIC active, and I get back a zero MAC, which looks like it has not yet been initialized. Does anyone have any suggestions as to how I can work around this? It looks like my request to set the mac is not effective, but according to the code in the 1.26 extmod/network_wiznet5k.c source, it should be doing the right thing, to my untrained eye. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The W5500 does not come with a MAC. The MAC that Micropython uses on the Pico is generated from the unique id of the flash memory IC of the pico. So if you try several W5500 on the same pico you will get the same MAC. But a different pico should generate another. |
Beta Was this translation helpful? Give feedback.
The W5500 does not come with a MAC. The MAC that Micropython uses on the Pico is generated from the unique id of the flash memory IC of the pico. So if you try several W5500 on the same pico you will get the same MAC. But a different pico should generate another.