DSPRelated.com
Forums

Re: Digest Number 453

Started by ren ren October 20, 2002

i had a similar problem, but i am using an adsp21065L.  i had to access adsp memory from a visual basic program.

i used TCL SCRIPTS to do this and they worked perfectly fine.  the command in visual basic is "executetcl()", and is part of the "visualdsp idde" component.  i don't know how they are used in C, though and there could be a similar command in visual c++.

renren

p.s.

sample tcl to run on visualdsp 2.0: simply type these tcl commands into the output box.

adspreset
adspsetmemblock {Data(DM) Memory} 0x80000 2 {1.0 2.0}

when in visual basic, just pass the tcl scripts as a parameter to the executetcl command.  try reading the pdf docs in your visualdsp directory for the tcl commands.

 a...@yahoogroups.com wrote:

Date: Sat, 19 Oct 2002 13:33:52 -0000
From: g
Subject: how to use c code to access ADSP 21065L memory??

I am new to use ADSP 21065L and i have some problems about using it.
Please help me!
I have a sharc ADSP 21065L, visual dsp++ 2.0 for sharc dsp, and
DSP21k-32 Toolkit.
Now I want to do that:
1. I want to write a c code at host to access DSP's memoy.
ex: I wnat to write some datas in memory,and to read it from
memory.
2. Because i have only seen "simulation" in visual dsp++ 2.0, did
not find any functions to load the programs into the board.
How do I go to load program in the board and run this program ?
(Should I use the tool of DSP21k-32 Toolkit?)
3.Should I modify the ldf(default) file for 21065 to make it build
correctly and how to do that?
Please give me some simple examples to rum .
send to me.
My boss request me to finish it first due to next Mon. or I will be
sufferings in future.

(Please and thanks)^n, n --> oo

Thanks in advance,
Jack Wu.


Ahora bien, si poco a poco dejas de quererme,
dejare de quererte poco a poco.

- Pablo Neruda, "Si tu me olvidas"

Well now, if little by little you stop loving me,
I shall stop loving you, little by little.

"If you forget me"