Conversation
👋 Hello me-no-dev, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Test Results 76 files 76 suites 16m 50s ⏱️ Results for commit 88877e5. ♻️ This comment has been updated with latest results. |
|
Tried it and it is working fine. Just for completeness, these are the MAC-addresses as stored in the EFUSE MAC of the ESP: So it used esp_err_t esp_derive_local_mac(uint8_t *local_mac, const uint8_t *universal_mac);
N.B. This also fixes (yet) unknown issues like why SPI Ethernet would probably not work on an ESP32-P4 as those have the first 3 MAC addresses set to 0. (probably same for ESP32-H2) |
|
Pls also chk if the response from While testing this fix I still see no difference between the WiFi MAC and the Ethernet Mac |
|
@arendst you are running on P4 that does not have WiFi. Do not trust the MAC address that you get. The C6 that gives you WiFi has a different MAC address |
|
You're right. Verified on C3 with ethernet. Thx. |
This pull request updates the method used to retrieve the MAC address for Ethernet interfaces in the
ETHClass::beginSPIfunction. The change improves hardware compatibility and clarifies error logging.Hardware compatibility and error handling improvements:
ETH.cpp, replaced the call toesp_efuse_mac_get_defaultwithesp_read_mac(base_mac_addr, ESP_MAC_ETH)to use the correct API for obtaining the Ethernet MAC address, and updated the log message to clarify the source of failure.