DSPRelated.com
Forums

Still having problem with streaming data

Started by Mohamed Montasser June 8, 2000
thank u for your help, I realy need it.
I am using the c5402 DSK, well i checked the HPIENA bit and i found that it is
alreardy set to 1, I checked it be checking Data memory location 002Ch, the data
their was 0088h, which means the both the HINT and HPIENA are both set to 1.
I don't know how the HPIA and HPID can be configured correctly, all i know is
that they are not accessible from the DSP, only from the Host.

to make my question complete, I'm trying to read/write from/to the DSP memory
from a C program developed with Visual Studio in an intel machine, this program
uses the evmdsk54x.dll to do this communication.

thanks for the help.

>Date: Thu, 08 Jun 2000 09:43:13 -0400
>From: Yi Li <>
>To: Mohamed Montasser <>
>Subject: Re: [c54x] streaming data from host to target using HPI
>
>Which DSP are you using? I'm using C5402. It should be no problem to
>access DSP memory through HPI, whether DSP is running or not. Make sure
>you have enabled HPI by pull the HPIENA to high, and provided correct
>data strobes. One problem might be you did not config the HPIC & HPIA
>registers correctly. You can verify this by reading the HPIA.
>
>Good Luck
>liyi
>
>Mohamed Montasser wrote:
>
>> hello all,
>>
>> I was intending to stream data from the PC to the target, shall i do
>> this while the DSP is halted, or can it be done while the DSP is
>> running.
>>
>> What happened to me is that the Code Composer Studio starts to give me
>>
>> error messages about target time out when i tried to read or write to
>> the DSP
>> memory from the host while the DSP is running...this is very critical
>> for the project i'm currently working in, Please help me as quick as
>> possible, it's realy urgent.
>> thanks.
>> bye.
>>
>> -----------------------------------
>>
>> -----------------------------------
>> To Join: Send an email to
>>
>> To Post: Send an email to
>>
>> To Leave: Send an email to
>>
>> Archives: http://www.egroups.com/group/c54x
>>
>> Other Groups: http://www.dsprelated.com
>>

------------------------
------------------------ ************************************************************************
You're just seconds away from playing the web's FREE Million Dollar slot
machine. Win MILLIONS in prizes INSTANTLY! Click Here Now!
http://adserv.internetfuel.com/cgi-bin/newredirect.cgi?AD=EMAIL-jackpot
************************************************************************



It's a little bit confusing -- are you using JTAG port to access DSP memory or
using HPI?
I'm not familiar with the former, I can not help you in that case. If you are
"streaming data
from host to taget using HPI", you must provide correct data strobes and chip
selection
signals as defined in Chapter 8 of 'CPU and Peripherals' (Reference Set, Vol 1).
The host
can select to modify HPIC or HPIA by setting HCNTL[1:0].

liyi

Mohamed Montasser wrote:

> thank u for your help, I realy need it.
> I am using the c5402 DSK, well i checked the HPIENA bit and i found that it is
alreardy set to 1, I checked it be checking Data memory location 002Ch, the data
their was 0088h, which means the both the HINT and HPIENA are both set to 1.
> I don't know how the HPIA and HPID can be configured correctly, all i know is
that they are not accessible from the DSP, only from the Host.
>
> to make my question complete, I'm trying to read/write from/to the DSP memory
from a C program developed with Visual Studio in an intel machine, this program
uses the evmdsk54x.dll to do this communication.
>
> thanks for the help.
>
> >Date: Thu, 08 Jun 2000 09:43:13 -0400
> >From: Yi Li <>
> >To: Mohamed Montasser <>
> >Subject: Re: [c54x] streaming data from host to target using HPI
> >
> >Which DSP are you using? I'm using C5402. It should be no problem to
> >access DSP memory through HPI, whether DSP is running or not. Make sure
> >you have enabled HPI by pull the HPIENA to high, and provided correct
> >data strobes. One problem might be you did not config the HPIC & HPIA
> >registers correctly. You can verify this by reading the HPIA.
> >
> >Good Luck
> >liyi
> >
> >Mohamed Montasser wrote:
> >
> >> hello all,
> >>
> >> I was intending to stream data from the PC to the target, shall i do
> >> this while the DSP is halted, or can it be done while the DSP is
> >> running.
> >>
> >> What happened to me is that the Code Composer Studio starts to give me
> >>
> >> error messages about target time out when i tried to read or write to
> >> the DSP
> >> memory from the host while the DSP is running...this is very critical
> >> for the project i'm currently working in, Please help me as quick as
> >> possible, it's realy urgent.
> >> thanks.
> >> bye.
> >>
> >> -----------------------------------
> >>
> >> -----------------------------------
> >> To Join: Send an email to
> >>
> >> To Post: Send an email to
> >>
> >> To Leave: Send an email to
> >>
> >> Archives: http://www.egroups.com/group/c54x
> >>
> >> Other Groups: http://www.dsprelated.com
> >>
>
> ------------------------
> ------------------------
>
> ************************************************************************
> You're just seconds away from playing the web's FREE Million Dollar slot
> machine. Win MILLIONS in prizes INSTANTLY! Click Here Now!
> http://adserv.internetfuel.com/cgi-bin/newredirect.cgi?AD=EMAIL-jackpot
> ************************************************************************
>
> To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://www.egroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com


I am using the HPI, i don't know about the JTAG port...Actually i am using a
Parallel port controller built on the DSK and through this PPC all
communications occur with the HPI, there is a DLL called evmdsk54x.dll provided
from texax, it contains functions that can be used to read/write to the DSP
memory, different HPI registers...etc
I am using this DLL to read/write to the DSP memory, when the DSP is halted it
is just fine, otherwise problems occur...
I don't have access to the bare pins of the DSP since it is surface mounted on
the DSK, so i cannot adjust the strobe signals, neither i have access to the
HCNTL pin,
for example i am using a function called evmdsk54x_hpi_read() to read from the
DSP memory, this function takes as parameters a memory location from which i
want to read, a buffer to put the read data into and a HANDLE to the DSK, which
is aquired by calling another function called evmdsk54x_open(), what i want to
say is that i am doing the communication from a higher level, I hope u have done
this before because i am realy stuck...I don't insist on continuing with this
dll, it is just that i don't know what the other way is, if there is another
way.
thanks for the help and waiting from u.

>Date: Thu, 08 Jun 2000 13:25:54 -0400
>From: Yi Li <>
>To: Mohamed Montasser <>
>CC:
>Subject: Re: [c54x] Still having problem with streaming data
>
>It's a little bit confusing -- are you using JTAG port to access DSP memory or
using HPI?
>I'm not familiar with the former, I can not help you in that case. If you are
"streaming data
>from host to taget using HPI", you must provide correct data strobes and chip
selection
>signals as defined in Chapter 8 of 'CPU and Peripherals' (Reference Set, Vol
1). The host
>can select to modify HPIC or HPIA by setting HCNTL[1:0].
>
>liyi
>
>Mohamed Montasser wrote:
>
>> thank u for your help, I realy need it.
>> I am using the c5402 DSK, well i checked the HPIENA bit and i found that it
is alreardy set to 1, I checked it be checking Data memory location 002Ch, the
data their was 0088h, which means the both the HINT and HPIENA are both set to
1.
>> I don't know how the HPIA and HPID can be configured correctly, all i know is
that they are not accessible from the DSP, only from the Host.
>>
>> to make my question complete, I'm trying to read/write from/to the DSP memory
from a C program developed with Visual Studio in an intel machine, this program
uses the evmdsk54x.dll to do this communication.
>>
>> thanks for the help.
>>
>> >Date: Thu, 08 Jun 2000 09:43:13 -0400
>> >From: Yi Li <>
>> >To: Mohamed Montasser <>
>> >Subject: Re: [c54x] streaming data from host to target using HPI
>> >
>> >Which DSP are you using? I'm using C5402. It should be no problem to
>> >access DSP memory through HPI, whether DSP is running or not. Make sure
>> >you have enabled HPI by pull the HPIENA to high, and provided correct
>> >data strobes. One problem might be you did not config the HPIC & HPIA
>> >registers correctly. You can verify this by reading the HPIA.
>> >
>> >Good Luck
>> >liyi
>> >
>> >Mohamed Montasser wrote:
>> >
>> >> hello all,
>> >>
>> >> I was intending to stream data from the PC to the target, shall i do
>> >> this while the DSP is halted, or can it be done while the DSP is
>> >> running.
>> >>
>> >> What happened to me is that the Code Composer Studio starts to give me
>> >>
>> >> error messages about target time out when i tried to read or write to
>> >> the DSP
>> >> memory from the host while the DSP is running...this is very critical
>> >> for the project i'm currently working in, Please help me as quick as
>> >> possible, it's realy urgent.
>> >> thanks.
>> >> bye.
>> >>
>> >> -----------------------------------
>> >>
>> >> -----------------------------------
>> >> To Join: Send an email to
>> >>
>> >> To Post: Send an email to
>> >>
>> >> To Leave: Send an email to
>> >>
>> >> Archives: http://www.egroups.com/group/c54x
>> >>
>> >> Other Groups: http://www.dsprelated.com
>> >>
>>
>> ------------------------
>> ------------------------
>>
>> ************************************************************************
>> You're just seconds away from playing the web's FREE Million Dollar slot
>> machine. Win MILLIONS in prizes INSTANTLY! Click Here Now!
>> http://adserv.internetfuel.com/cgi-bin/newredirect.cgi?AD=EMAIL-jackpot
>> ************************************************************************
>>
>> To Join: Send an email to
>>
>> To Post: Send an email to
>>
>> To Leave: Send an email to
>>
>> Archives: http://www.egroups.com/group/c54x
>>
>> Other Groups: http://www.dsprelated.com

------------------------
------------------------ ************************************************************************
You're just seconds away from playing the web's FREE Million Dollar slot
machine. Win MILLIONS in prizes INSTANTLY! Click Here Now!
http://adserv.internetfuel.com/cgi-bin/newredirect.cgi?AD=EMAIL-jackpot
************************************************************************



----- Original Message -----
From: "Mohamed Montasser" <>
To: <>; <>
Sent: Thursday, June 08, 2000 5:30 PM
Subject: RE: Re: [c54x] Still having problem with streaming data > I am using the HPI, i don't know about the JTAG port...Actually i am using
a Parallel port controller built on the DSK and through this PPC all
communications occur with the HPI, there is a DLL called evmdsk54x.dll
provided from texax, it contains functions that can be used to read/write to
the DSP memory, different HPI registers...etc
> I am using this DLL to read/write to the DSP memory, when the DSP is
halted it is just fine, otherwise problems occur...
> I don't have access to the bare pins of the DSP since it is surface
mounted on the DSK, so i cannot adjust the strobe signals, neither i have
access to the HCNTL pin,
> for example i am using a function called evmdsk54x_hpi_read() to read from
the DSP memory, this function takes as parameters a memory location from
which i want to read, a buffer to put the read data into and a HANDLE to the
DSK, which is aquired by calling another function called evmdsk54x_open(),
what i want to say is that i am doing the communication from a higher level,
I hope u have done this before because i am realy stuck...I don't insist on
continuing with this dll, it is just that i don't know what the other way
is, if there is another way.
> thanks for the help and waiting from u.
>


As far as I know, parralel port controller on 5402 DSK is a JTAG controller,
simular to what you find on JTAG emulators, and it's connected to JTAG port
of DSP, not HPI. I think you should doublecheck that.

Mike.




This is not true. The parallel port controller (PPC34C60) provides an ISA-like
local interface
between the parallel port and the DSK circuitry. The JTAG test bus controller
and the DSP's HPI port are both mapped into the local interface, so you can
access JTAG
TBC registers and HPI registers through the PC's parallel port. The PPC
provides multiple
chip selects, two of which are used to access the DSP HPI and the JTAG TBC.

There is no hardware reason why you can't talk to both devices in a time
division
fashion. However, there may be software driver limitations on who it can access

during a certain period of time.

Brian Mikhail F wrote:

>
> As far as I know, parralel port controller on 5402 DSK is a JTAG controller,
> simular to what you find on JTAG emulators, and it's connected to JTAG port
> of DSP, not HPI. I think you should doublecheck that.
>
> Mike. > Click here for savings: beMANY!
> http://click.egroups.com/1/4557/1/_/16164/_/960557826/ > To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://www.egroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com