Getting input from console
#1
Scanf, gets, getchar etc. are showing undefined reference error while compiling a program using pulp-sdk. Is there anyway to get input from console?
Reply
#2
(02-19-2021, 05:33 AM)nayan Wrote: Scanf, gets, getchar etc. are showing undefined reference error while compiling a program using pulp-sdk. Is there anyway to get input from console?

Hi,
I'm also facing the same issue.. Can anyone please help?
Reply
#3
Hi nayan, chikku,

As far as I know, there is no implementation of those functions in the pulp-sdk or pulp-runtime. If you need input from a console I would suggest you to directly use the UART drivers of the pulp-sdk or pulp-runtime to receive external inputs.

Best,
Manuel
Reply
#4
Thank you for your reply meggiman
Reply
#5
Can I use pi_uart_read_async to get input from keyboard? If it is possible, can you provide an example?
Reply


Forum Jump: