]> granicus.if.org Git - esp-idf/commitdiff
Changed initialization sequence of application tracing component on APP CPU so it...
authorkrzychb <krzychb@gazeta.pl>
Wed, 13 Sep 2017 17:48:00 +0000 (19:48 +0200)
committerkrzychb <krzychb@gazeta.pl>
Thu, 14 Sep 2017 18:47:43 +0000 (20:47 +0200)
components/esp32/cpu_start.c

index 506c9638d2daa2a1daf87578c4c904ae0d31f2b6..2ceb87f58a7f5a47ca56cf61dd011cdd7c235531 100644 (file)
@@ -347,6 +347,10 @@ void start_cpu0_default(void)
 #if !CONFIG_FREERTOS_UNICORE
 void start_cpu1_default(void)
 {
+    // Wait for FreeRTOS initialization to finish on PRO CPU
+    while (port_xSchedulerRunning[0] == 0) {
+        ;
+    }
 #if CONFIG_ESP32_TRAX_TWOBANKS
     trax_start_trace(TRAX_DOWNCOUNT_WORDS);
 #endif
@@ -356,10 +360,6 @@ void start_cpu1_default(void)
         ESP_EARLY_LOGE(TAG, "Failed to init apptrace module on CPU1 (%d)!", err);
     }
 #endif
-    // Wait for FreeRTOS initialization to finish on PRO CPU
-    while (port_xSchedulerRunning[0] == 0) {
-        ;
-    }
     //Take care putting stuff here: if asked, FreeRTOS will happily tell you the scheduler
     //has started, but it isn't active *on this CPU* yet.
     esp_cache_err_int_init();