As my console is a thread and the data flux is low ( few console commands ), polling method works very well.
Problem solved.
Anyway, thank you for your kind support.
Sergio
Statistics: Posted by serkam — Tue Nov 22, 2016 5:21 am
]]>2016-11-19T13:51:43+08:002016-11-19T13:51:43+08:00https://bbs.espressif.com:443/viewtopic.php?t=3114&p=10587#p10587You can simply register an interrupt handler and process the keystrokes in there. That would be the best way to work with UART. Meanwhile I can try to come up with some examples for the same.
Also, see the function definitions in uart.h header file... they are described in the header file itself and you can use the character receive function from there!
Statistics: Posted by Guest — Sat Nov 19, 2016 1:51 pm
]]>2016-11-18T20:47:27+08:002016-11-18T20:47:27+08:00https://bbs.espressif.com:443/viewtopic.php?t=3114&p=10582#p10582 I need to build a UART console routine ( as a thread ) for my ESP8266 project under RTOS SDK ( 1.4.0 ), for debugging purposes, but, I couldn't use scanf or getchar to get data from UART0. The program is compiled and linked without problem, but, at execution, the FreeRTOS enter in a crazy loop. The console routine is built as a thread. If I comment the block code with scanf or getchar, the thread works perfectly, indicating that the problem is over scanf or getchar.
Which function can I use instead scanf or getchar?
Any example available, please?
Thanks
Sergio
Statistics: Posted by serkam — Fri Nov 18, 2016 8:47 pm