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

This commit is contained in:
wanglei
2025-05-09 18:04:50 +08:00
committed by BOT
parent 66e5cc8801
commit accfa14bcd
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).