Skip to content

W5500 MAC Adress handling #1720

Answered by earlephilhower
Ing-Dom asked this question in Q&A
Sep 20, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

See https://github.com/raspberrypi/pico-sdk/blob/6a7db34ff63345a7badec79ebea3aaef1712f374/src/rp2_common/pico_cyw43_driver/cyw43_driver.c#L132 for the MAC generation. It uses the flash ID and should be unique. It's the same code used on the WiFi driver. Each interface also gets adjusted so if you have 2 network drivers on the same device they won't have identical MACs

As for getting the MAC, that seems reasonable. Maybe you'd like to do a PR? I think the LeipIntfDev would be the spot to add the accessor/setter.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Ing-Dom
Comment options

Answer selected by Ing-Dom
Comment options

You must be logged in to vote
1 reply
@earlephilhower
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants