Sign in

username or email:

password:



Not a member?
Forgot your password?

Search c6x



Search tips

Subscribe to c6x



Ads

Discussion Groups

See Also

Embedded SystemsFPGA

Discussion Groups | TMS320C6x | Accessing memory of dsk6713

Does anyone know how to write and read data in memory dsk6713? Arethere any functions in C?_____________________________________...

  

Post a new Thread



Is this thread worth a thumbs up?

0

Accessing memory of dsk6713 - nikita iyer - Jan 16 12:33:24 2012

Does anyone know how to write and read data in memory dsk6713? Are
there any functions in C?

_____________________________________

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Accessing memory of dsk6713 - Andrew Elder - Jan 16 12:53:10 2012

You just deference a C pointer.

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Accessing memory of dsk6713 - Jeff Brower - Jan 16 13:44:36 2012

Nikita-

> Does anyone know how to write and read data in memory dsk6713? Are
> there any functions in C?

Basically like you would in any C program, assuming you have access privileges:

  int* memptr;

  memptr = (int*)0xc0000000; /* point to arbitrary offchip mem location */
  *memptr = 0x12345678;  /* write arbitary value */

With a TI DSP, you have access privilege to all internal and external mem --
except there are various mem-mapped
registers you should not touch otherwise you will cause problems -- study the
memory maps in the C671x data sheet.

-Jeff

_____________________________________

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Accessing memory of dsk6713 - Richard Williams - Jan 16 20:34:05 2012

nikita,

to writer/read memory..
Lets assume on-board memory so do not need to setup up CS registers, etc.

int myVariable;

const int * memoryAddress (1000) // address to read/write

myVariable = *memoryAddress;  // reads the memory at specified address

myVariable = 0;
*memoryAddress = myVariable; // write 0 to specified memory address.

R. Williams

---------- Original Message -----------
From: nikita iyer <n...@gmail.com>
To: c...@yahoogroups.com
Sent: Mon, 16 Jan 2012 18:55:11 +0530
Subject: [c6x] Accessing memory of dsk6713

> Does anyone know how to write and read data in memory dsk6713? Are
> there any functions in C?
------- End of Original Message -------

_____________________________________

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Accessing memory of dsk6713 - nikita iyer - Jan 17 15:11:26 2012

Hi all,
       Thanks a lot. Basically I wish to build a project in which audio
samples and data ( for now any hardcoded data as in bits or numbers or
alphabets),multiplex them-modulate-demodulate-demultiplex and recive them
back. I have a few doubts.
1.what are the ways of sending data to the dsp? (I was thinking of just
storing them in specific memory locations through the program itself).
2.Most importantly is there any way I could receive the data back from the
dsp in a readable format? If yes then where & how?As in do i need to create
a txt file(if possible) or view it in the message window of ccs.
I am using DSK TMS320C6713 from Spectrum Digital and have ccs v3.1.
If there are any suggestions or other simpler ways to go about this project
they are most welcome.

-Nikita

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Accessing memory of dsk6713 - mikedunn - Jan 17 23:47:16 2012

Nikita,

On 1/17/2012 11:57 AM, nikita iyer wrote:
>  
>
> Hi all,
>
>        Thanks a lot. Basically I wish to build a project in which
> audio samples and data ( for now any hardcoded data as in bits or
> numbers or alphabets),multiplex them-modulate-demodulate-demultiplex
> and recive them back. I have a few doubts.
> 1.what are the ways of sending data to the dsp? (I was thinking of
> just storing them in specific memory locations through the program
> itself).
<mld>
There are different ways to do this - my technique [if I understand
correctly]...
1. Add 2 sections to the memory map in the LCF. 1 for hard coded input
and 1 for output results.
This will allow everything to run at system speed.
2. Add a function at the end to 'fprintf' the output results to the host
[this will be slow]. Write the exact bit image to the file.
3. If you need to decode the file on the host, use something like Python
or Perl [or your favorite language] to convert the data to a useable format.

> 2.Most importantly is there any way I could receive the data back from
> the dsp in a readable format?
<mld>
Yes, but... I prefer to transfer data 'as is' to the host. Once there
you have numerous tools, utilities, and scripting languages to post
process your data. An occasional additional benefit is using the raw
data to identify hardware or software problems.

mikedunn
> If yes then where & how?As in do i need to create a txt file(if
> possible) or view it in the message window of ccs.
> I am using DSK TMS320C6713 from Spectrum Digital and have ccs v3.1.
> If there are any suggestions or other simpler ways to go about this
> project they are most welcome.
>
> -Nikita
> 

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Accessing memory of dsk6713 - nikita iyer - Jan 24 15:04:11 2012

Hi all,

Just wanted to thank you all for your inputs. I was successful in accessing
the memory of the DSK.

Nikita

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Accessing memory of dsk6713 - Jeff Brower - Jan 24 15:22:06 2012

Nikita-

> Just wanted to thank you all for your inputs. I was successful in
accessing
> the memory of the DSK.

Good work.  I hope your project goes well.

-Jeff

_____________________________________

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )