mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
fix(esp_hw_support): Force function calibrate_ocode not inlined to flash
This commit is contained in:
@ -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);
|
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).
|
Bandgap output voltage is not precise when calibrate o-code by hardware sometimes, so need software o-code calibration (must turn off PLL).
|
||||||
|
@ -28,7 +28,7 @@ static const char *TAG = "ocode_init";
|
|||||||
// REGI2C_WRITE_MASK(I2C_ULP, I2C_ULP_IR_FORCE_CODE, 1);
|
// 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).
|
Bandgap output voltage is not precise when calibrate o-code by hardware sometimes, so need software o-code calibration (must turn off PLL).
|
||||||
|
Reference in New Issue
Block a user