Skip to content

perf(esp32s3): trace ADC calibration/efuse pull-in (+3.2 KB flash, +0.5 KB RAM) #4796

Closed

Description

@zackees

Problem

ESP32-S3 master links ADC self-calibration and efuse code that 3.10.3 did not: about +3.2 KB flash and about +0.5 KB RAM, in both Blink and APA102.

  • libhal: adc_hal_self_calibration 621, adc_hal_arbiter_config 339, adc_hal_set_controller 231, read_cal_channel 189.
  • libefuse: esp_efuse_utility_process 337, esp_efuse_utility_fill_buff 174, esp_efuse_read_field_blob, esp_efuse_rtc_calib_get_init_code; RAM range_read_addr_blocks and __func__ strings.
  • libesp_hw_support: s_sar_power_acquire/release, adc_calc_hw_calibration_code, regi2c_saradc_disable.

The symbol reports do not show the caller. It is probably a temperature, clock or analog query added in the new runtime (coroutine/semaphore runtime, or the RMT memory manager).

Task

  1. Trace the caller from the master S3 linker map (Archive member included to satisfy reference by file chain) and the reference graph.
  2. Then remove the call, or make it lazy.

Acceptance

  • The root cause is identified in this issue.
  • If the call is not needed, S3 Blink flash drops about 3 KB and RAM about 0.5 KB.

Data: https://fastled.github.io/dashboard/ (master 18669e6 vs 3.10.3, fbuild 2.5.38), symbol-level bloat reports linked from each dashboard point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: esp32priority: mediumtype: regression

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions