DSPRelated.com
Forums

Accessing memory of dsk6713

Started by nikita iyer January 16, 2012
Does anyone know how to write and read data in memory dsk6713? Are
there any functions in C?

_____________________________________
You just deference a C pointer.
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

_____________________________________
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
To: c...
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 -------

_____________________________________
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
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).

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?

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
>
Hi all,

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

Nikita
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

_____________________________________