Tigersharc TS203 and visualDSP 4 issue
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Tigersharc TS203 and visualDSP 4 issue

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP
Author Message
jerome0613
Guest





Posted: Tue Nov 29, 2005 1:16 am    Post subject: Tigersharc TS203 and visualDSP 4 issue Reply with quote

Hello
I'm having some problems to make my code running on 2 x TS203 rev 1.2 an
VisualDSP 4.0.
My small code toggles FLAG0 output pin, here are my results :

1- When simulating using TS203 : OK : I can see register FLAGREG togglin
according to the code.

2- When running on TS201 eval board with the same code (via JTAG) : OK :
can see both register FLAGREG and FLAG0 pin toggling according to th
code.

3- When running on TS203 own board with the same code (via JTAG) :
cannot see the register FLAGREG nor FLAG0 pin toggling according to th
code. The step by step debugger works fine, as well as the SDRAM (
performed successive write/read), but I cannot see the pin toggling, no
the register FLAGREG.

FLAGREG is supposed to be 0000 at reset, I read FFFF once the code i
transfered to the DSP via JTAG !?

4- I performed another test using TS201 processors in VisualDSP while m
board features TS203. In this case I can see the register FLAGREG properl
toggling but not the TS203 pin.

It sounds like it is a VisualDSP registers definition for TS203 which doe
not match the real TS203 registers.

Here is my small test code, working fine on TS201 eval board, as well a
when simulating on TS203 :

#include <defts203.h>
#include <sysreg.h>
#include <builtins.h>
#define SET_FLAG(x) asm("FLAGREGST=%0;;"::"y"(x))
#define CLR_FLAG(x) asm("FLAGREGCL=%0;;"::"y"(x))

void main(void){
int i;
SET_FLAG(FLAGREG_FLAG0_EN);
while(1)
{
SET_FLAG(FLAGREG_FLAG0_OUT);
for(i=0;i<10;i++);
CLR_FLAG(~FLAGREG_FLAG0_OUT);
for(i=0;i<10;i++);
}
} /* end main */

Please note I changed the following in the ADSP-TS203.xml file :

I had to modify the syscon default value

<Register Name="SYSCON" ResetValue="0x00009067" Core="Common" />
instead of
<Register Name="SYSCON" ResetValue="0x00189067" Core="Common" />

because of the 32bits bus and not 64 (otherwise I can see only eve
address working), now odd/even address are ok on the sdram


Any help would be greatly appreciated
Jerome
Back to top
Jim Thomas
Guest





Posted: Tue Nov 29, 2005 5:17 pm    Post subject: Re: Tigersharc TS203 and visualDSP 4 issue Reply with quote

jerome0613 wrote:
Quote:
It sounds like it is a VisualDSP registers definition for TS203 which does
not match the real TS203 registers.

Compare the defts203.h file to the TS203 user manual (or hardware
reference manual, I can never remember which one defines the regs). If
that looks good, take a look at the generated assembly code and see if
it's doing what you think it should be doing.

How are you looking at the flags when the system is running?

--
Jim Thomas Principal Applications Engineer Bittware, Inc
jthomas@bittware.com http://www.bittware.com (603) 226-0404 x536
Nothing is ever so bad that it can't get worse. - Calvin
Back to top
jerome0613
Guest





Posted: Tue Nov 29, 2005 11:17 pm    Post subject: Re: Tigersharc TS203 and visualDSP 4 issue Reply with quote

I'm looking the flag outputs using a scope.

It works now ... !
There was a confusion between DSPs IDs (0 and 1) and Device IDs i
VisualDSP which seems to be JTAG IDs (1 and 0) ... I was looking flag o
DSP0 instead of DSP1.


Quote:
jerome0613 wrote:
It sounds like it is a VisualDSP registers definition for TS203 whic
does
not match the real TS203 registers.

Compare the defts203.h file to the TS203 user manual (or hardware
reference manual, I can never remember which one defines the regs). If
that looks good, take a look at the generated assembly code and see if
it's doing what you think it should be doing.

How are you looking at the flags when the system is running?

--
Jim Thomas Principal Applications Engineer Bittware, Inc
jthomas@bittware.com http://www.bittware.com (603) 226-0404 x536
Nothing is ever so bad that it can't get worse. - Calvin
Back to top
Jerry Avins
Guest





Posted: Wed Nov 30, 2005 12:57 am    Post subject: Re: Tigersharc TS203 and visualDSP 4 issue Reply with quote

jerome0613 wrote:
Quote:
I'm looking the flag outputs using a scope.

It works now ... !

Thanks for letting everyone know.

Jerry
--
Engineering is the art of making what you want from things you can get.
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> DSP All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB