Am Donnerstag, 20. August 2020 20:27:41 UTC+2 schrieb [email protected]:
>
> Sorry about that.
>

> My adc measurements are good and stable. My only issue now is that I can't 
> seem to enable the serial port under libpruio. I'll post my code here:
>

Apology accepted.

Fine, that ADC is OK. I hope your code calls the destructor pruio_destroy() 
at the end.
 

> I tried every mode from 0 to 7 and got the same result.
>

You configured the hardware, but I guess you didn't care about the 
software. Did you load the UArt kernel driver?

When you configure pins from a device tree blob the kernel also loads the 
matching driver. In contrast, libpruio doesn't inform the kernel about 
changes. It's under your control to make this happen.

If you're sure that you want Uart-1 on P9_24/P9_26, and that wont change, 
then it's best to install a custom device tree blob for that two pins. 
Check out the docs for section Custom overlay 
<http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/ChaPins.html#sSecCustom>.
 
You can use the tool src/config/dts_custom.bas 
<http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/dts__custom_8bas.html>
 
to create that blob in folder /lib/firmware. Your configuration (edit in 
source and compile) should look like

M(P9_24) = CHR(0)
>
M(P9_26) = CHR(0)
>

Perhaps you also want to adapt the file name. When the .dtbo file is in 
place, edit /boot/uEnv.txt to load it and reboot.

Regards

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/dfa678c7-d2aa-48a0-94eb-38ce29718df3o%40googlegroups.com.

Reply via email to