]> granicus.if.org Git - esp-idf/commit
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)
commitf73c6f875cc564fa6c9962be71eac4dbdc56aa63
tree6afad7a609922dc446e4049a4aac8d915950819d
parentc04e4f179f27383c867782524b08a2a18f03295d
parent76a4082de7c2dc2ef04541124c0c9fb100e901bb
Merge branch 'bugfix/dont_log_before_bss_inited' into 'master'

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
components/esp32/cpu_start.c