Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

JTAG UART dyslexia

Hi All,

I made a very small design and I got some problem with the JTAG UART terminal output. I compiled a simple "Hello world" and everything works fine excepted that JTAG UART is "dyslexic" : instead of "Hello World" I get "HHello World" in the JTAG UART console.

Anybody can help ?

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by bigboss25@Jan 28 2007, 02:17 PM

    hi all,

    i made a very small design and i got some problem with the jtag uart terminal output. i compiled a simple "hello world" and everything works fine excepted that jtag uart is "dyslexic" : instead of "hello world" i get "hhello world" in the jtag uart console.

    anybody can help ?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20966)

    --- quote end ---

    --- Quote End ---

    Well, I found the solution, but I don&#39;t know why it works ... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/mad.gif

    Originally my master clock was 12 MHz, including JTAG UART. Then I changed only the JTAG UART input clock to 50 MHz... and it works . Strange. Is there something hard coded into JTAG UART which need a clock faster than 12 MHz ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yes.... The SOPC Builder system clock has to be greater than twice the maximum JTAG clock. Depending on what download cable you&#39;re using, you might see up to 10MHz on the JTAG clock.

    - slacker
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by slacker@Feb 1 2007, 06:57 AM

    yes.... the sopc builder system clock has to be greater than twice the maximum jtag clock. depending on what download cable you&#39;re using, you might see up to 10mhz on the jtag clock.

    - slacker

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=21112)

    --- quote end ---

    --- Quote End ---

    Brilliant http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif

    Works fine at 25 MHz now. Thx
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by slacker@Feb 1 2007, 06:57 AM

    yes.... the sopc builder system clock has to be greater than twice the maximum jtag clock. depending on what download cable you&#39;re using, you might see up to 10mhz on the jtag clock.

    - slacker

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=21112)

    --- quote end ---

    --- Quote End ---

    Is there a way to slown down the JTAG clock (let&#39;s say downto 5MHz) via software option or does it only rely on my PC hardware?

    Thx.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by bigboss25+feb 3 2007, 04:16 am--><div class='quotetop'>quote (bigboss25 @ feb 3 2007, 04:16 am)</div>

    --- quote start ---

    <!--quotebegin-slacker@Feb 1 2007, 06:57 AM

    yes.... the sopc builder system clock has to be greater than twice the maximum jtag clock. depending on what download cable you&#39;re using, you might see up to 10mhz on the jtag clock.

    - slacker

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=21112)

    --- quote end ---

    --- Quote End ---

    Is there a way to slown down the JTAG clock (let&#39;s say downto 5MHz) via software option or does it only rely on my PC hardware?

    Thx.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=21179)</div>

    [/b]

    --- Quote End ---

    Unfortunately no; I believe its actually a function of the download cable (USB Blaster, etc.). I could be wrong on this one, but I seem to remember that if you have access to an older cable (byteblaster, parallel port cable) this may have a slower Tck (JTAG clock) frequency.