On Mon, 20 Jul 2020 09:03:34 -0700 (PDT), in
gmane.comp.hardware.beagleboard.user
sreekodakkad-Re5J...@public.gmane.org wrote:
>Hi
>
>I am just trying to print some values to check if the condition meets the
>requirement in beagle bone AI board. But it is not happening when I program
>PRUs.
>
I'm actually surprised you don't get some link error if you are using
printf() in a (C/C++) PRU program. The PRUs are not using an OS, so there
wouldn't be anything like STDOUT for a program running in a PRU.
>Do I have to configure UART in PRU to achieve this capability?
BB Black example at
http://exploringbeaglebone.com/chapter15/#High-Speed_Analog_to_Digital_Conversion_ADC_using_the_PRU-ICSS
appears to have the PRU write the data to shared RAM, and a program running
in Linux reading the values for output. (NOTE: reference to "chapter 13"
applies to the first edition of the book -- it is chapter 15 in the 2nd)
(NOTE: Examples also seem to be using PRUSS driver, and not the newer
RemoteProc
https://processors.wiki.ti.com/index.php/PRU_Debugging#Place_.22printf.22_statements
Note that this also does not use printf() IN the PRU code, but rather in
whatever program was used to load/start the PRU, and it interfaces, again,
by monitoring shared memory into which the PRU has written.
--
Dennis L Bieber