]> granicus.if.org Git - esp-idf/commitdiff
Merge branch 'bugfix/dont_log_before_bss_inited' into 'master'
authorJeroen Domburg <jeroen@espressif.com>
Tue, 18 Apr 2017 03:21:31 +0000 (11:21 +0800)
committerJeroen Domburg <jeroen@espressif.com>
Tue, 18 Apr 2017 03:21:31 +0000 (11:21 +0800)
Remove ESP_EARLY_LOGI before bss is initialized; it crashes the CPU

There's an ESP_EARLY_LOGI line that can get called before the BSS is initialized; the early logging code doesn't cope well with that: it checks if FreeRTOS is up, but the variables it uses for that contains garbage because it isn't cleared yet, giving the wrong result. The logging code then tries to set a mux, crashing the entire system. This patch removes the log line and adds a warning at the BSS initialization line not to do anything complex before that point.

Fixes https://github.com/espressif/esp-idf/issues/523

See merge request !671

1  2 
components/esp32/cpu_start.c

Simple merge