Re: Getting started with DSP programming on the beagleboard xm

2,233 views
Skip to first unread message

kli

unread,
Feb 10, 2013, 10:51:46 AM2/10/13
to beagl...@googlegroups.com, nicko...@gmail.com
Hy Nick

I dont work with Ubuntu on my BeagleBoard so i am not quite sure which alsa packages you need but i guess that you will need to install alsa-base and alsa-utils 

sudo apt-get install alsa-base alsa-utils

check whether there is the alsa device with

aplay -l

and you should get something like 

**** List of PLAYBACK Hardware Devices **** 
card 0: omap3beagle [omap3beagle], device 0: TWL4030 twl4030-0 [] 
  Subdevices: 1/1 
  Subdevice #0: subdevice #

now you can test alsa with 

aplay -vv someFile.wav

If there is no sound maybe some channels are muted or the level is very low and you can adjust it with 

alsamixer


A simple FIR filter should be able to be implemented in an ALSA application on the ARM only. Maybe also the NEON Data Engine could be interesting for you as it would gain performance and avoid the IPC between the ARM and the DSP.

An easy way to use the DSP on the BeagleBoard is to use the C6EZ tools (http://processors.wiki.ti.com/index.php/C6EZ_Tools) which are included in the DVSDK from TI (http://processors.wiki.ti.com/index.php/DVSDK_4.x_FAQ). In the DVSDK you find several examples of how to work with the various frameworks. 
The package manager in Angstrom has support for several TI packages but i don´t know about ubuntu.

There exist also support for developing with MATLAB but as far as i know it works on the ARM only.

I could send you a paper (BSc) which i wrote about that topic, but it is also my first experience and for sure not perfect.   


regards 
Wendelin
  


kli

unread,
Feb 14, 2013, 9:02:28 AM2/14/13
to beagl...@googlegroups.com, nicko...@gmail.com
Well i don´t know whether there is some kind of copy-right from the university on my thesis so i would prefer to send it by e-mail but i could not find your address in the forum. You can contact me on 
wkli...@gmail.com

regards 
wendelin
    

bizulk

unread,
Feb 14, 2013, 9:51:33 AM2/14/13
to beagl...@googlegroups.com, nicko...@gmail.com
Depending on what you're expecting from the dsp you may consider the gst-dsp project.
Regards,
Selso.

Dan Lopez

unread,
Feb 14, 2013, 12:16:57 PM2/14/13
to beagl...@googlegroups.com, nicko...@gmail.com
Check this:


You might want to look at the course chapters for more info, downloads... etc.


Regards,
Daniel

On Saturday, February 9, 2013 7:48:17 PM UTC+1, nick wrote:
Hi everyone,

I am new to the beagleboard xm and would like to start doing DSP programming on it. I have successfully installed a minimal ubuntu 12.10 with a kernel that has the DSP bridge driver enabled. I have my own audio C code that I wrote to run on a Linux box with ALSA and I am familiar with general TI assembly. I would like to do a number of things:

1. Install ALSA on my beagleboard XM and have it control the sound system Is this just "sudo apt-get install alsa" ? Or is there more to the story
2. Write a simple FIR filter function in TI assembly and run it on the beagleboard. The idea is to for example speak into a microphone and have all audio above 2KHZ filtered and the filtered signal fed out to speakers connected to the beagleboard xm. This is trivial in C on a normal Linux box. But how do I do it on the beagleboard xm. I understand some kind of IPC has to happen between the code running on the ARM chip and that on the DSP.
     -What tools do I need to compile the above
     -Are there any examples of how to code the C64 chip on the beagleboard xm and have it communicate with a thread on the ARM core?

Thanks

Nick

Mark A. Yoder

unread,
Feb 15, 2013, 11:56:52 AM2/15/13
to beagl...@googlegroups.com, nicko...@gmail.com
Also check out [1].  It gives the big picture.

--Mark

Reply all
Reply to author
Forward
0 new messages