How to set a custom MAC address on RP2350 + W5500 (MicroPython / WIZNET5K) #18113
-
Hi all, I’m working with an RP2350 board and a W5500 (WIZNET5K driver in MicroPython). For my project (which may go into production), I need to assign a fixed, custom MAC address — either one I provide at runtime or stored in flash. So far I’ve tried things like: `import network, ubinascii nic = network.WIZNET5K(spi, cs, rst) print(ubinascii.hexlify(nic.config('mac'), ` But the driver seems to overwrite my value with its own generated MAC during initialization. Questions: Any pointers to code examples or the right place in the MicroPython RP2 port / WIZNET driver to patch would be hugely appreciated. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Have you tried setting the new MAC after active()? I'm fairly sure this was working previously but haven't tested it in a while...
|
Beta Was this translation helpful? Give feedback.
-
See this: Duplicate MAC addresses on W5500 modules? · micropython · Discussion #18070 |
Beta Was this translation helpful? Give feedback.
-
It seems to work. ![]() It was tested with a ESP32-S3-ETH-8DI-8RO-C from Waveshare. A W5500 is used for Ethernet. |
Beta Was this translation helpful? Give feedback.
-
Thank you all! |
Beta Was this translation helpful? Give feedback.
Have you tried setting the new MAC after active()? I'm fairly sure this was working previously but haven't tested it in a while...