mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
spi_flash: move the unlock patch to bootloader and add support for GD (backport v4.0)
This commit is contained in:
@@ -88,6 +88,7 @@ static void do_global_ctors(void);
|
||||
static void main_task(void* args);
|
||||
extern void app_main(void);
|
||||
extern esp_err_t esp_pthread_init(void);
|
||||
extern esp_err_t bootloader_flash_unlock(void);
|
||||
|
||||
extern int _bss_start;
|
||||
extern int _bss_end;
|
||||
@@ -458,6 +459,7 @@ void start_cpu0_default(void)
|
||||
#endif
|
||||
|
||||
bootloader_flash_update_id();
|
||||
bootloader_flash_unlock();
|
||||
#if !CONFIG_SPIRAM_BOOT_INIT
|
||||
// If psram is uninitialized, we need to improve some flash configuration.
|
||||
bootloader_flash_clock_config(&fhdr);
|
||||
|
Reference in New Issue
Block a user