[riot-notifications] [RIOT-OS/RIOT] cpu/esp32: use modules newlib_syscalls_default and stdio_uart by default (#11380)

Gunar Schorcht notifications at github.com
Thu Apr 11 17:14:50 CEST 2019

### Contribution description

This PR fixes the problem that ESP32's newlibc function `_write_r` does not write the output for `stdio` to the UART interface.

To fix this problem, modules `newlib_syscalls_default`  and `stdio_uart` are now used by default. It fixes the problem since function `_write_r` of module `newlib_syscalls_default` uses `stdio_write` which in turn uses `uart_write` if module `stdio_uart` is used.

### Testing procedure

Change `examples/hello-world` as following:
--- a/examples/hello-world/main.c
+++ b/examples/hello-world/main.c
@@ -21,9 +21,12 @@
 #include <stdio.h>
+#include "fmt.h"
 int main(void)
-    puts("Hello World!");
+    puts("Hello World via puts!");
+    print_str("Hello world via print_str!");
     printf("You are running RIOT on a(n) %s board.\n", RIOT_BOARD);
     printf("This board features a(n) %s MCU.\n", RIOT_MCU);

Compile and flash it with command
USEMODULE=fmt make BOARD=esp32-wroom-32 -C examples/hello-world flash term
and observe the output.
Starting RIOT kernel on PRO cpu
I (...) [main_trampoline]: main(): This is RIOT! (Version: ....)
Hello World via puts!
Hello World via print_str!
You are running RIOT on a(n) esp32-mh-et-live-minikit board.

### Issues/PRs references

Fixes issue #11354 
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * cpu/esp32: use newlib_syscalls_default by default

-- File Changes --

    M cpu/esp32/Makefile.dep (13)
    M cpu/esp32/Makefile.include (2)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190411/796b2e44/attachment-0001.html>

More information about the notifications mailing list