startup: init timer before calling esp_apptrace_tmo_init

pull/8102/head
Erhan Kurubas 2021-11-25 21:45:50 +01:00
rodzic 02237e4b77
commit b748053e2e
1 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -235,6 +235,12 @@ static void do_core_init(void)
app CPU, and when that is not up yet, the memory will be inaccessible and heap_caps_init may app CPU, and when that is not up yet, the memory will be inaccessible and heap_caps_init may
fail initializing it properly. */ fail initializing it properly. */
heap_caps_init(); heap_caps_init();
// When apptrace module is enabled, there will be SEGGER_SYSVIEW calls in the newlib init.
// SEGGER_SYSVIEW relies on apptrace module
// apptrace module uses esp_timer_get_time to determine timeout conditions.
// esp_timer early initialization is required for esp_timer_get_time to work.
esp_timer_early_init();
esp_newlib_init(); esp_newlib_init();
if (g_spiram_ok) { if (g_spiram_ok) {
@ -260,10 +266,6 @@ static void do_core_init(void)
esp_brownout_init(); esp_brownout_init();
#endif #endif
// esp_timer early initialization is required for esp_timer_get_time to work.
// This needs to happen before VFS initialization, since some USB_SERIAL_JTAG VFS driver uses
// esp_timer_get_time to determine timeout conditions.
esp_timer_early_init();
esp_newlib_time_init(); esp_newlib_time_init();
#if CONFIG_VFS_SUPPORT_IO #if CONFIG_VFS_SUPPORT_IO