Re: [beagleboard] TI Programmable Real-time Unit software support package issues

2021-04-23 Thread pierric...@gadz.org
>>> <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature> >>> >>> On Fri, Apr 23, 2021 at 4:31 PM, pierric...@gadz.or

Re: [beagleboard] Re: Periodic delay reading analog inputs with C, will PRUs solve it and is it worth it?

2021-04-13 Thread pierric...@gadz.org
To complete on TJF answer, you can find the address defined by CM_WKUP_ADC_TSC_CLKCTRL in *hw_cm_wkup.h *line 101value (0xbc) and in *soc_AM335x.h * line 139. Le mardi 13 avril 2021 à 05:16:58 UTC-4, TJF a écrit : > I'm not a C guy (but prefering FreeBASIC for ligh-level and ASM for PRU >

Re: [beagleboard] Re: Periodic delay reading analog inputs with C, will PRUs solve it and is it worth it?

2021-04-13 Thread pierric...@gadz.org
HWREG: is a macro that lets you write directly to the register of the bone; I think it is defined in the hw_type.h header. From a quick look, I would say that is the base address of the TSC ADC on the chip and TSC_ADC_SS_IRQSTATUS is the register's address. SOC_ADC_TSC_0_REGS is defined i

Re: [beagleboard] Re: Periodic delay reading analog inputs with C, will PRUs solve it and is it worth it?

2021-04-09 Thread pierric...@gadz.org
Hi, I believe there are some simple ADC-read example directly in the image under /var/lib/cloud9/Techlab/.challenges, or here: https://github.com/beagleboard/cloud9-examples/blob/master/PocketBeagle/TechLab/.challenges/analogIn.pru0.c They are labeled for PocketBeagle but it's the same ti-am335

Re: [beagleboard] Re: Recomended practices for using the PRUs

2021-03-16 Thread pierric...@gadz.org
Hi, I have just tried on 4.19.94-ti-r42; I was able to do the update by doing : nano /etc/apt/sources.list and add the lines: deb [trusted=yes] http://beagle.tuks.nl/debian jessie/ deb-src [trusted=yes] http://beagle.tuks.nl/debian jessie/ Note the addition of [trusted=yes] compared to what's o

[beagleboard] Re: Recomended practices for using the PRUs

2021-03-16 Thread pierric...@gadz.org
Hi! >From my experience on the PRU, using Remoteproc is the most recent way to do things and UIO is an older technics. I believe there is some rpmsg examples under /var/lib/cloud9/ in the BB images. However, depending on your application you can have a look at Libpruio which does most of the

[beagleboard] Re: BBAI PRU-I2C driver

2021-03-12 Thread pierric...@gadz.org
niversalsearch.tsp%253FsearchTerm%253Dspruhz6l>), which I expect to happen. I will continue developing my code and keep you posted. Any progress on your side? Thanks, Pierrick Le jeudi 4 mars 2021 à 16:54:41 UTC-5, pierric...@gadz.org a écrit : > Hey Fred, > Yeah, I have found the LinuxD

[beagleboard] Re: ADC reading from kernel module

2021-03-08 Thread pierric...@gadz.org
Hi Roland, I am not sure that I completely understand your question but have you looked at the iio_generic_buffer (https://github.com/torvalds/linux/blob/master/tools/iio/iio_generic_buffer.c)? I did something similar 3 years ago and used this example to sample the BBB ADC using the iio drive

[beagleboard] Re: BBAI PRU-I2C driver

2021-03-04 Thread pierric...@gadz.org
(https://groups.google.com/u/0/g/beagleboard/c/w6Nd1WmPoSU), so that may > be of interest to you as well. > > I'm sorry if it feels like I'm hijacking your thread, but maybe we can > help each other out here? > > Thanks, > Fred > > > > > > On

[beagleboard] BBAI PRU-I2C driver

2021-03-02 Thread pierric...@gadz.org
Hi All, I am trying to develop a PRU driver for I2C on the Beaglebone AI (Ti-am5729). I have some questions about the setup procedure using Interrupt and polling (I am not using DMA). I am not quite sure about the differences between the setup described between section *24.1.5.1.1.1.1 and 24

[beagleboard] Re: Best way to get elapsed milliseconds

2021-02-16 Thread pierric...@gadz.org
Depending on how precise you need to be, I would go for the PRU-ICSS. They can control the GPIOs pretty easily. Le mardi 16 février 2021 à 10:03:47 UTC-5, wal...@edenconceptsllc.com a écrit : > I have a BBB Wireless running Linux beaglebone 4.14.108-ti-r106 #1 SMP > PREEMPT Fri May 24 22:12:3

[beagleboard] BBAI Cloud9 BlinkExternalLED pru example LED does not blink

2021-01-27 Thread pierric...@gadz.org
Hi all, I am trying to run the PRU example under /var/lib/cloud9/BeagleBone/AI/pru/blinkExternalLED.pru1_1.c and it is not working. It compiles with the Makefile and after placing the firmware under pru1_1 core (cp blinkExternalLED.pru1_1.out /lib/firmware/am57xx-pru1_1-fw), the pru start cor

[beagleboard] Re: Cannot query wifi services

2021-01-09 Thread pierric...@gadz.org
Hi, I believe the BeagleBone Pocket does not have wifi, have you connected a wifi dongle to it ? Pierrick Le samedi 9 janvier 2021 à 13:28:18 UTC-5, jaywa...@gmail.com a écrit : > Hi, > > Each time I run "scan wifi" on my PocketBeagle's console, the following > error results. > > connmanctl>

[beagleboard] Disabling I2C1 on BBAI

2020-11-17 Thread pierric...@gadz.org
Hi everyone, I am trying to disable I2C1 (connected to the on board STMPE811 ADC) so that Linux is not recognizing it. My end goal is to use the PRU-ICSS to read from the ADC using the I2C bus. I have been playing around with the following devices trees: am5729-beagleboneai.dts

[beagleboard] Re: PRU - ADC on BBAI

2020-10-20 Thread pierric...@gadz.org
Hi Denis, Thanks for the help and sorry that I only answer now. I understand what you mean with the I2C, I tried to change the topic of the post without luck yet. I am starting to work on that with the examples you have provided. Do you think that the PRUDAQ project (here