mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-09-27 17:36:27 +08:00
feat(bootloader): Add startup function
This commit is contained in:
@ -807,15 +807,20 @@ void bootloader_utility_load_image(const esp_image_metadata_t* image_data)
|
||||
}
|
||||
#endif
|
||||
|
||||
// ESP_LOGI(TAG, "Disabling RNG early entropy source...");
|
||||
// bootloader_random_disable();
|
||||
|
||||
// copy loaded segments to RAM, set up caches for mapped segments, and start application
|
||||
// unpack_load_app(image_data);
|
||||
#ifdef BOOTLOADER_UNPACK_APP
|
||||
ESP_LOGI(TAG, "Disabling RNG early entropy source...");
|
||||
bootloader_random_disable();
|
||||
|
||||
copy loaded segments to RAM, set up caches for mapped segments, and start application
|
||||
unpack_load_app(image_data);
|
||||
#else
|
||||
Cache_Read_Enable(0, 0, 0);
|
||||
|
||||
// ToDo: jump to application code.
|
||||
void (*user_start)(void);
|
||||
|
||||
user_start = (void *)image_data->image.entry_addr;
|
||||
user_start();
|
||||
#endif /* BOOTLOADER_UNPACK_APP */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user