[beagleboard] BeagleBone AI and real time applications (SMPS and motor control)

2019-09-20 Thread Richard Tarbell

Greetings All!

Is there/will there be tutorials, on how to run Linux on the Beaglebone AI, 
but run real time code on its two DSP processors?

For instance, I am looking to do a motor control application (100kHz 
sampling with external ADCs connected via SPI).  Is this possible to run on 
the DSP cores?  

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/7dae6b50-02a8-4b66-ac02-50531dc1df40%40googlegroups.com.


Re: [beagleboard] BeagleBone AI and real time applications (SMPS and motor control)

2019-09-22 Thread Jason Kridner
On Fri, Sep 20, 2019 at 6:54 PM Richard Tarbell 
wrote:

>
> Greetings All!
>
> Is there/will there be tutorials, on how to run Linux on the Beaglebone
> AI, but run real time code on its two DSP processors?
>

Yes. You use OpenCL to program the DSPs. The
https://girhub.com/beagleboard/cloud9-exampkes
repo will eventually host some DSP examples, bit just TIDL.

Some off-load can be done for real-time.


> For instance, I am looking to do a motor control application (100kHz
> sampling with external ADCs connected via SPI).  Is this possible to run on
> the DSP cores?
>

I don’t know that is a clear requirement. The DSPs are certainly good at
filters and control.


> --
> 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 beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/7dae6b50-02a8-4b66-ac02-50531dc1df40%40googlegroups.com
> 
> .
>

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CA%2BT6QP%3DwWRWWD%3DwK_FyXkV0ojystUmE1thbLwDNxnSnWHmA5fA%40mail.gmail.com.


Re: [beagleboard] BeagleBone AI and real time applications (SMPS and motor control)

2019-09-23 Thread 'Mark Lazarewicz' via BeagleBoard
Our application imported Matlab model's designed by PhD exported to c++ running 
on L238 DSP. I'm aware of another company that used OMAP DSPs for military SDR 
they used QNX on ARM but I believe they migrated to Android which was TI Linux 
based probably tactical tablets.

Sent from Yahoo Mail on Android 
 
  On Sun, Sep 22, 2019 at 11:09 PM, Jason Kridner 
wrote:   On Fri, Sep 20, 2019 at 6:54 PM Richard Tarbell 
 wrote:


Greetings All!
Is there/will there be tutorials, on how to run Linux on the Beaglebone AI, but 
run real time code on its two DSP processors?

Yes. You use OpenCL to program the DSPs. The 
https://girhub.com/beagleboard/cloud9-exampkes repo will eventually host some 
DSP examples, bit just TIDL. 
Some off-load can be done for real-time. 


For instance, I am looking to do a motor control application (100kHz sampling 
with external ADCs connected via SPI).  Is this possible to run on the DSP 
cores?  

I don’t know that is a clear requirement. The DSPs are certainly good at 
filters and control. 




-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/7dae6b50-02a8-4b66-ac02-50531dc1df40%40googlegroups.com.



-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CA%2BT6QP%3DwWRWWD%3DwK_FyXkV0ojystUmE1thbLwDNxnSnWHmA5fA%40mail.gmail.com.
  

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/706685008.11189008.1569245174694%40mail.yahoo.com.


Re: [beagleboard] BeagleBone AI and real time applications (SMPS and motor control)

2019-09-23 Thread Jason Kridner
On Mon, Sep 23, 2019 at 12:09 AM Jason Kridner wrote:

> On Fri, Sep 20, 2019 at 6:54 PM Richard Tarbell wrote:
>
>>
>> Greetings All!
>>
>> Is there/will there be tutorials, on how to run Linux on the Beaglebone
>> AI, but run real time code on its two DSP processors?
>>
>
> Yes. You use OpenCL to program the DSPs. The 
> https://girhub.com/beagleboard/cloud9-exampkes
> repo will eventually host some DSP examples, bit just TIDL.
>

I meant "besides" just TIDL. Also, I've started the README.md at
https://github.com/beagleboard/cloud9-examples/tree/master/BeagleBone/AI/c66
.

It seems the images have the /usr/share/ti/examples/opencl directory
already. Unfortunately, it is owned by root, so you'll need to go into
there and run 'sudo make'.

It looks like some of the examples use SDL, so you'll want to run 'sudo apt
update; sudo apt install libsdl2-dev' first.

For the examples that require XDC, I don't have an easy answer today.

Here's some quick output:
debian@beaglebone:/usr/share/ti/examples/opencl$ cd simple/
debian@beaglebone:/usr/share/ti/examples/opencl/simple$ ls
kernel.cl  Makefile  Makefile.rtos  simple  simple.cpp  simple.o
Done!
debian@beaglebone:/usr/share/ti/examples/opencl/simple$ cd ../vecadd/
debian@beaglebone:/usr/share/ti/examples/opencl/vecadd$ sudo ./vecadd
DEVICE: TI Multicore C66 DSP

Offloading vector addition of 8192K elements...

Kernel Exec : Queue  to Submit: 15 us
Kernel Exec : Submit to Start : 404 us
Kernel Exec : Start  to End   : 52876 us

Success!
debian@beaglebone:/usr/share/ti/examples/opencl/vecadd$

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CA%2BT6QP%3DSQc6QXF-fPgHsk5ZBPi8vt-1YS2z3s5zUjRmjdTbbdQ%40mail.gmail.com.