Skip to content

support Arduino IDE #2

@abbbe

Description

@abbbe

esp_wifi_internal_get_mac_clock_time() was introduced in March 2025, see xiv3r/esp-idf@82bce6c#diff-7ed4dd462a5c80e29cc4f86d289d2565598924b562e6c2c18996691bcbfa7a0fR786.

The patch has made its way to ESP IDF 5.5.1, but not to Arduino-ESP32 and platformio.

The address of the register where MAC clock sits is known, for S3 at least, see espressif/esp-idf#15348. So one possible workaround is to use the register directly.

Another option is to skip fine alignment between MAC clock and MCPWM timer, the system should still work, but have a fixed (but different every time SoC reboots) phase error, 1-2us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions