Kisszalimo opened a new issue, #3109:
URL: https://github.com/apache/mynewt-core/issues/3109

   I would like to achieve some basic I/O operations with console. I can use 
`console_write()` successfully to print messages on console but it would be 
great if i could read characters from it. I tried `console_read()` but I got a 
linker error:
   
   ```
   Error: /usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: 
/home/.../consy-pinetime/bin/targets/blinky-pinetime/app/@apache-mynewt-core/sys/console/full/@apache-mynewt-core_sys_console_full.a(console.o):
 in function `console_line_event_put':
   
/home/.../consy-pinetime/repos/apache-mynewt-core/sys/console/full/src/console.c:1274:
 undefined reference to `console_rx_restart'
   collect2: error: ld returned 1 exit status
   ```
   
   Minimal code example:
   
   ```
   #include <string.h>
   #include <console/console.h>
   
   int dl_semihost_read(char *buff) {
       return console_read(buff, strlen(buff), NULL);
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@mynewt.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to