Open jeffsf opened 6 years ago
I did spot something like this in #454. Could you try and replace the line reading part with the one used in examples/terminal
?. You will need to pull examples/terminal/FreeRTOSConfig.h
also.
Yeah using an adapted version of read instead of getchar worked for me.
Was able to reproduce this, and the problem appears to be that getchar()
acquires a lock while waiting, and this blocks the wdt paths, probably a call to malloc. This should not be a problem, except that we enter a critical region for any newlib lock. The proper fix will be to implement the newlib locking functions in terms of FreeRTOS mutexes. A simpler workaround is to replace getchar()
with getchar_unlocked()
.
The sysparam_editor example does not run much past the initial header printed, constantly crashing. Adafruit Huzzah, Adafrtuit FTDI Friend. build system on Mac OS X El Cap, esp-open-sdk toolchain, known to build and run esp-open-rtos software.
press Reset switch, after serial-line "garbage" clears
[repeats, ad infinitum]
Same behavior seen with single-threaded
make
commit 87a3503f931021f28d4dbe083f5dec08c626354b Author: Ruslan V. Uss UncleRus@users.noreply.github.com Date: Thu Oct 12 17:42:34 2017 +0500