Merge branch 'bugfix/force_calibrate_ocode_no_inline_c5eco2_v5.5' into 'release/v5.5'

fix(esp_hw_support): Force function calibrate_ocode not inlined to flash (v5.5)

See merge request espressif/esp-idf!39110
This commit is contained in:
Jiang Jiang Jian
2025-05-20 14:00:44 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ static void set_ocode_by_efuse(int ocode_scheme_ver)
REGI2C_WRITE_MASK(I2C_ULP, I2C_ULP_IR_FORCE_CODE, 1);
}
static void IRAM_ATTR calibrate_ocode(void)
static void IRAM_ATTR NOINLINE_ATTR calibrate_ocode(void)
{
/*
Bandgap output voltage is not precise when calibrate o-code by hardware sometimes, so need software o-code calibration (must turn off PLL).

View File

@ -28,7 +28,7 @@ static const char *TAG = "ocode_init";
// REGI2C_WRITE_MASK(I2C_ULP, I2C_ULP_IR_FORCE_CODE, 1);
// }
static void calibrate_ocode(void)
static void IRAM_ATTR NOINLINE_ATTR calibrate_ocode(void)
{
/*
Bandgap output voltage is not precise when calibrate o-code by hardware sometimes, so need software o-code calibration (must turn off PLL).