SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.52k stars 491 forks source link

printf issue ? (stdout?) #627

Open Zaltora opened 6 years ago

Zaltora commented 6 years ago

It is maybe nothing but can be an important remark since stream update. In my application ( got a lot of task >20 and timer.), i use manually uart API to get character and send data. To disable others uart call (custom debug, sdk binary), i use set_write_stdout(stdout_custom); Everything is good and work fine. I need printf only for some basic debug usage. Disable anyway in my final app.

When i don't redirect the stdout (or forget to redirect it), it can happen than my app crash randomly after 30min, 3H, 5H of working (no usb connected and nobody on wifi connection) without a particular event. free heap is between 5k and 8k at this stage.