Forums

TMS470 Jtag

Started by iddq...@gmail.com April 20, 2009
Greeting

Has anyone ever used the TI TMS470 chip with the XDS510 and CCS??
I connect my XDS510 to the TI TMS470. In CCS the emulator connects to the target board but I can't read any memory address at all. I am not sure if I connect the Jtag in the right way (I connected it as I connect to the TMS320C6722), Does anyone have a schematic or can give me a hand on this issue? Thanks in advance.

Best regards
Peter

_____________________________________
Peter,

Although this message is a bit off topic...

On Mon, Apr 20, 2009 at 7:07 AM, wrote:
> Greeting
>
> Has anyone ever used the TI TMS470 chip with the XDS510 and CCS??

Yes.
> I connect my XDS510 to the TI TMS470. In CCS the emulator connects to the
> target board but I can't read any memory address at all. I am not sure if I
> connect the Jtag in the right way (I connected it as I connect to the
> TMS320C6722), Does anyone have a schematic or can give me a hand on this
> issue? Thanks in advance.

The pin connection is the same.
The last TMS470 that I used was an ARM7 an it was important to use the
correct GEL file.
Q1. Can you r/w registers??
Q2. Can you halt and run the target??

mikedunn

>
> Best regards
> Peter

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php

_____________________________________
Hi Mike

Thanks for your reply. Sorry about off the topic.

It's good to know that TMS470 can be used with the XDS510.
The board we used is a custom board which we don't have a GEL file yet.
What I have right now is just a emulator that connects to the target, and
have no code and no GEL file yet. I want to test that if the target can be correctly connected to the CCS.

Right now, I can connect to the target board, but the disassembly window shows all 0x00000000 at all memory location. I can't change any of them.

I can change the register (e.g. PC, R1), but I am not sure I really change it in the chip or just change the value that shows on the screen.

I haven't loaded any code yet, so I haven't try to run it.

Best regards
Peter

Peter,

Although this message is a bit off topic...

On Mon, Apr 20, 2009 at 7:07 AM, wrote:
> Greeting
>
> Has anyone ever used the TI TMS470 chip with the XDS510 and CCS??

Yes.
> I connect my XDS510 to the TI TMS470. In CCS the emulator connects to the
> target board but I can't read any memory address at all. I am not sure if
I
> connect the Jtag in the right way (I connected it as I connect to the
> TMS320C6722), Does anyone have a schematic or can give me a hand on this
> issue? Thanks in advance.

The pin connection is the same.
The last TMS470 that I used was an ARM7 an it was important to use the
correct GEL file.
Q1. Can you r/w registers??
Q2. Can you halt and run the target??

mikedunn

>
> Best regards
> Peter

_____________________________________
Peter,

On Thu, Apr 23, 2009 at 6:13 PM, wrote:
> Hi Mike
>
> Thanks for your reply. Sorry about off the topic.
>
> It's good to know that TMS470 can be used with the XDS510.
> The board we used is a custom board which we don't have a GEL file yet.
> What I have right now is just a emulator that connects to the target, and
> have no code and no GEL file yet. I want to test that if the target can be
> correctly connected to the CCS.
>
> Right now, I can connect to the target board, but the disassembly window
> shows all 0x00000000 at all memory location. I can't change any of them.
>
> I can change the register (e.g. PC, R1), but I am not sure I really change
> it in the chip or just change the value that shows on the screen.

After you make a change in CCS, if you refresh the window, CCS will
update the screen with 'freshly read data' from the target.
Is your external memory static RAM?? If not, you will need to set up
the EMIF before you access memory.

mikedunn
>
> I haven't loaded any code yet, so I haven't try to run it.
>
> Best regards
> Peter
>
> Peter,
>
> Although this message is a bit off topic...
>
> On Mon, Apr 20, 2009 at 7:07 AM, wrote:
>> Greeting
>>
>> Has anyone ever used the TI TMS470 chip with the XDS510 and CCS??
>
> Yes.
>> I connect my XDS510 to the TI TMS470. In CCS the emulator connects to the
>> target board but I can't read any memory address at all. I am not sure if
> I
>> connect the Jtag in the right way (I connected it as I connect to the
>> TMS320C6722), Does anyone have a schematic or can give me a hand on this
>> issue? Thanks in advance.
>
> The pin connection is the same.
> The last TMS470 that I used was an ARM7 an it was important to use the
> correct GEL file.
> Q1. Can you r/w registers??
> Q2. Can you halt and run the target??
>
> mikedunn
>
>>
>> Best regards
>> Peter

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php

_____________________________________
Might be the emulator driver? I got the same problem while i use it on a 672 torget,until the driver changed.
在2009-04-248...@gmail.com 写道

Hi Mike

Thanks for your reply. Sorry about off the topic.

It's good to know that TMS470 can be used with the XDS510.
The board we used is a custom board which we don't have a GEL file yet.
What I have right now is just a emulator that connects to the target, and
have no code and no GEL file yet. I want to test that if the target can be correctly connected to the CCS.

Right now, I can connect to the target board, but the disassembly window shows all 0x00000000 at all memory location. I can't change any of them.

I can change the register (e.g. PC, R1), but I am not sure I really change it in the chip or just change the value that shows on the screen.

I haven't loaded any code yet, so I haven't try to run it.

Best regards
Peter

Peter,

Although this message is a bit off topic...

On Mon, Apr 20, 2009 at 7:07 AM, wrote:
> Greeting
>
> Has anyone ever used the TI TMS470 chip with the XDS510 and CCS??

Yes.
> I connect my XDS510 to the TI TMS470. In CCS the emulator connects to the
> target board but I can't read any memory address at all. I am not sure if
I
> connect the Jtag in the right way (I connected it as I connect to the
> TMS320C6722), Does anyone have a schematic or can give me a hand on this
> issue? Thanks in advance.

The pin connection is the same.
The last TMS470 that I used was an ARM7 an it was important to use the
correct GEL file.
Q1. Can you r/w registers??
Q2. Can you halt and run the target??

mikedunn

>
> Best regards
> Peter

_____________________________________
> Subject: Re: TMS470 Jtag
> Posted by: i......@gmail.com i.....
> Date: Thu Apr 23, 2009 8:52 pm ((PDT))
>
> It's good to know that TMS470 can be used with the XDS510.
> The board we used is a custom board which we don't have a GEL file yet.
> What I have right now is just a emulator that connects to the target, and
> have no code and no GEL file yet. I want to test that if the target can be
> correctly connected to the CCS.
>
> Right now, I can connect to the target board, but the disassembly window
> shows all 0x00000000 at all memory location. I can't change any of them.
>
> I can change the register (e.g. PC, R1), but I am not sure I really change
> it in the chip or just change the value that shows on the screen.
>
> I haven't loaded any code yet, so I haven't try to run it.

Peter,

Please find attached a couple of gel files that you can probably use as
an example. I found these in my CCS3 installation, have no idea what the
"helen" board is - sorry.

Unfortunately I've never worked with a 470 hardware and I may guess it would
have got other peripherals than for example peripherals of an ARM926 found in
DaVinci chips, but the main idea remains the same - upon reset you have to
init configuration registers (if there are any), external memory controller
(emif - see memif_init() function in TMS470_helen.gel), init CP15 - the
system coprocessor (is it No 15?), set up physical memory map and set up
virtual memory mapping (although I've never done VA2PA, always work with
physical addresses) and that should be all. If your CPU has an internal
SRAM, it should be immediately ready for storing code/data without any
additional configuring. In debug mode these tasks are usually offloaded
to a .gel code, otherwise all the init phases should be done in software that
is internal memory resident and running in a privilege mode.

I forgot to mention an interrupt controller - AIC/VIC/AINTC - whichever your
TMS470 has, is also set up in a privilege mode.

Just out of curiosity, could you specify the datasheet file for your processor?

Rgds,
Andrew

_____________________________________
Hi Mike

If I don't load the GEL file into the TMS470R1B1M (which is the chip I am using), I can change the register (the value still there after I refreshed the register window).

But when I try to read or write the value to the memory window. I can only real 0x00000000. Is that normal if I don't have the GEL file??

I can connect to it, but I can do nothing (write memory, load program).
Could you please give me a hand on this. Thank you.

Best regards
Peter

>>Peter,

On Thu, Apr 23, 2009 at 6:13 PM, wrote:
> Hi Mike
>
> Thanks for your reply. Sorry about off the topic.
>
> It's good to know that TMS470 can be used with the XDS510.
> The board we used is a custom board which we don't have a GEL file yet.
> What I have right now is just a emulator that connects to the target, and
> have no code and no GEL file yet. I want to test that if the target can be
> correctly connected to the CCS.
>
> Right now, I can connect to the target board, but the disassembly window
> shows all 0x00000000 at all memory location. I can't change any of them.
>
> I can change the register (e.g. PC, R1), but I am not sure I really change
> it in the chip or just change the value that shows on the screen.

After you make a change in CCS, if you refresh the window, CCS will
update the screen with 'freshly read data' from the target.
Is your external memory static RAM?? If not, you will need to set up
the EMIF before you access memory.

mikedunn
>
> I haven't loaded any code yet, so I haven't try to run it.
>
> Best regards
> Peter
>
> Peter,
>
> Although this message is a bit off topic...
>
> On Mon, Apr 20, 2009 at 7:07 AM, wrote:
>> Greeting
>>
>> Has anyone ever used the TI TMS470 chip with the XDS510 and CCS??
>
> Yes.
>> I connect my XDS510 to the TI TMS470. In CCS the emulator connects to
the
>> target board but I can't read any memory address at all. I am not sure
if
> I
>> connect the Jtag in the right way (I connected it as I connect to the
>> TMS320C6722), Does anyone have a schematic or can give me a hand on
this
>> issue? Thanks in advance.
>
> The pin connection is the same.
> The last TMS470 that I used was an ARM7 an it was important to use the
> correct GEL file.
> Q1. Can you r/w registers??
> Q2. Can you halt and run the target??
>
> mikedunn
>
>>
>> Best regards
>> Peter

_____________________________________
Peter,

On Wed, Apr 29, 2009 at 12:34 AM, wrote:
> Hi Mike
>
> If I don't load the GEL file into the TMS470R1B1M (which is the chip I am
> using), I can change the register (the value still there after I refreshed
> the register window).

In the case of the ARM, I believe that the driver is working if you
can read/write registers.
>
> But when I try to read or write the value to the memory window. I can only
> real 0x00000000. Is that normal if I don't have the GEL file??

My experience with ARM devices is limited - I never tried accessing
one without a GEL file.

Make sure that your memory map is enabled for reading and writing to
your memory addresses [you can disable it as a test].

You should also be able to modify an ARM GEL file for your device.

Also, make sure that your memory is at the correct address and that
the memory decode/enable logic is working properly. You can test this
by doing continuous reads of an address and scoping the signals [then
change to continuous writes and scope].

mikedunn
>
> I can connect to it, but I can do nothing (write memory, load program).
> Could you please give me a hand on this. Thank you.
>
> Best regards
> Peter
>
>>>Peter,
>
> On Thu, Apr 23, 2009 at 6:13 PM, wrote:
>> Hi Mike
>>
>> Thanks for your reply. Sorry about off the topic.
>>
>> It's good to know that TMS470 can be used with the XDS510.
>> The board we used is a custom board which we don't have a GEL file yet.
>> What I have right now is just a emulator that connects to the target, and
>> have no code and no GEL file yet. I want to test that if the target can be
>> correctly connected to the CCS.
>>
>> Right now, I can connect to the target board, but the disassembly window
>> shows all 0x00000000 at all memory location. I can't change any of them.
>>
>> I can change the register (e.g. PC, R1), but I am not sure I really change
>> it in the chip or just change the value that shows on the screen.
>
> After you make a change in CCS, if you refresh the window, CCS will
> update the screen with 'freshly read data' from the target.
> Is your external memory static RAM?? If not, you will need to set up
> the EMIF before you access memory.
>
> mikedunn
>>
>> I haven't loaded any code yet, so I haven't try to run it.
>>
>> Best regards
>> Peter
>>
>> Peter,
>>
>> Although this message is a bit off topic...
>>
>> On Mon, Apr 20, 2009 at 7:07 AM, wrote:
>>> Greeting
>>>
>>> Has anyone ever used the TI TMS470 chip with the XDS510 and CCS??
>>
>> Yes.
>>> I connect my XDS510 to the TI TMS470. In CCS the emulator connects to
> the
>>> target board but I can't read any memory address at all. I am not sure
> if
>> I
>>> connect the Jtag in the right way (I connected it as I connect to the
>>> TMS320C6722), Does anyone have a schematic or can give me a hand on
> this
>>> issue? Thanks in advance.
>>
>> The pin connection is the same.
>> The last TMS470 that I used was an ARM7 an it was important to use the
>> correct GEL file.
>> Q1. Can you r/w registers??
>> Q2. Can you halt and run the target??
>>
>> mikedunn
>>
>>>
>>> Best regards
>>> Peter

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php

_____________________________________