EmbDev.net

Forum: ARM programming with GCC/GNU tools JTAG(adaptive clocking) timeout during DCC write


Author: Nils Soderman (nilswed)
Posted on:

Rate this post
0 useful
not useful
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

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 useful
not useful
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.

Author: Nils Soderman (nilswed)
Posted on:

Rate this post
0 useful
not useful
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

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.