JTAG(adaptive clocking) timeout during DCC write

OP #1174244
Hi all, i am trying to use SAM-ICE and SAMBA 2.6 to program my
AT91SAM7S256 board. I can program via Olimex JTAG and OpenOCD but cannot
debug (for some odd reason) via Olimex ( it loads forever, 27% done...).
I can debug via SAM-ICE but not load flash! I get the error reason as
written in the subject line when I hit the "Send file" button and after
a looong while the Samba loader times out. Anyone have a solution???
Thanks in any case for looking into the problem!
Regards
Nils
Moderator
Nils Soderman wrote:
> Hi all, i am trying to use SAM-ICE and SAMBA 2.6 to program my
> AT91SAM7S256 board. I can program via Olimex JTAG and OpenOCD but cannot
> debug (for some odd reason) via Olimex ( it loads forever, 27% done...).
> I can debug via SAM-ICE but not load flash! I get the error reason as
> written in the subject line when I hit the "Send file" button and after
> a looong while the Samba loader times out. Anyone have a solution???
> Thanks in any case for looking into the problem!
> Regards
> Nils

Maybe a problem with the handling of RTCK. I don't know much about the
Segger J-Link/SAM-ICE but as far as I know the adaptive clocking can be
disabled and fixed clocking can be used which should help. I also do not
use SAM-BA and don't know if or where the clocking-mode can be
configured in SAM-BA. If there is no option in SAM-BA try if you can
used JLINK.EXE from the Segger Software-Package to change the setting.
OP
Martin Thomas wrote:
> Nils Soderman wrote:
>> Hi all, i am trying to use SAM-ICE and SAMBA 2.6 to program my
>> AT91SAM7S256 board. I can program via Olimex JTAG and OpenOCD but cannot
>> debug (for some odd reason) via Olimex ( it loads forever, 27% done...).
>> I can debug via SAM-ICE but not load flash! I get the error reason as
>> written in the subject line when I hit the "Send file" button and after
>> a looong while the Samba loader times out. Anyone have a solution???
>> Thanks in any case for looking into the problem!
>> Regards
>> Nils
>
> Maybe a problem with the handling of RTCK. I don't know much about the
> Segger J-Link/SAM-ICE but as far as I know the adaptive clocking can be
> disabled and fixed clocking can be used which should help. I also do not
> use SAM-BA and don't know if or where the clocking-mode can be
> configured in SAM-BA. If there is no option in SAM-BA try if you can
> used JLINK.EXE from the Segger Software-Package to change the setting.

Thanks Martin,
I tried changing the settings, to no avail. In Samba NOTHING can be set,
Changing in JLINK gave the same error, even down to 2 kHz clocking! I
will now skip the Samba approach and run with ARM-JTAG-USB and Open-OCD
instead. Although I have a little problem starting up the debug session.
It continuous load 27% !!! Jim Lynch tip with Norwegian reset
(power-off/power-on) does not help. Sigh...
Best regards,
Nils

Reply

A question of your own? This thread is over 18 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.