element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
FPGA
  • Technologies
  • More
FPGA
Forum How to make "Embedded Design Tutorial" article compatible with ZCU104?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join FPGA to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 2 replies
  • Subscribers 559 subscribers
  • Views 821 views
  • Users 0 members are here
  • jtag
  • fpga
  • zcu104
  • smartlynq
  • usb to serial
Related

How to make "Embedded Design Tutorial" article compatible with ZCU104?

manili
manili over 7 years ago

Hey guys, what's up?

 

My last experience with an FPGA board was with a kiddies' Spartan 3E learning board (no USB PHY, no Ethernet PHY, no HDMI PHY and so on ...) from school days. So I decided to buy myself a ZCU104 as my first real life FPGA board with countless of good features (in comparison with my last experience). Also I bought a SmartLynq programmer to program the chip much faster.

I tried to find a good "Hello World" type document to learn how to use the board and the nearest one I found was "Embedded Design Tutorial" which is all about ZCU102 board but I tried to do the instructions step by step and make them compatible with my ZCU104 board. Everything was going fine until page 24 which described how to run the "Hello World" app on the Cortex-A53 processor (i.e. how to program and use the Zynq chip).

The problem is there are two USB micro connectors on the ZCU102 (one on J2 and the other on J83) so the user can use one of them for JTAG and the other for serial connection. But there is only one USB micro connector on the ZCU104 so I tried to use my SmartLynq programmer for JTAG connection on PC4 Header (J180) and use USB micro connector (J164) as my serial transceiver. After programming the chip in Xilinx SDK via the remote connection to my SmartLynq (I use USB connector to connect the programmer to my laptop, not the ethernet), I see a bunch of junks on my serial connection monitor screen.

 

@   €˜          A        ‚a       €$    @       @   )P†C @@ @`D  0€ €@     ˆ  I% @   € (  @    (0 
@     € ` €@D€€@  @  €  @`        R€@ ‚P   `A€€   `  €P  ¡€
                                                              € @B@ €€ à  A P   À€ € €   2 @ € €
  €$À  D ( Œ ` @ €    ˆ          €PI)(   €@I "€    ("€ˆ @  ¢    „ @  €       ‰B  0€„D       @% 
@ €  €  @  p€ €  € )€@ € @ € 
                              €,€  €   (€€  @
                                              ”"€  
                                                       @€     F       H           @ àD ` H €    @
 
  €  " €h@E"  !€ ‰ €`&   @ €@ €A @B€¤    €`b $        EA @ €@   @  B  ‚       €  Ã( „$ €R† 2      
  €c€$  (”     ˆ „   €     @`P  Ĩ%          € €   ˆ"€  €€   ` „€@€ º` B€ À€( €0 €€! ‚€€( €$ €  0
   ( €"€H €‚ f€  ee 
‚"°  €!˜ H€H €     €°` 0   @"€"Ä È   (€" B     
                                               9( 
                                                  € 
                                                   ¡1!€ €!  D€ 0  @‚@‚@    @    @1 ˆ@` ÀF  B €B €
@€  „€  "€ @ˆ+ @@  €ˆ"  € "€ À   ˆ   „  € € @ˆ  € ""„ b $ B„#€B€@"  @  ˆ& @€ 
                                                                                                 €
 À  @        @€D     "@ @   
                            Š Ä b@ "D   @ `D0 00 A)@F@`$        @
                                                                   ˆ@ R        $ @@ @ @€  €€@À0 A 
  `(° ` €À    "   œ#    A’  ~ `€XH       @   Å           €€8    @  0  Á       !€   À@D   ˆ€H@ H’  
  $ €     ‚$  @I   €€( H  
                         (  
                            ˆ„             @@@!   ¡„"  B  B$@  €  (  H$@        0      ˆ ˆ"DÁ    
@"€    @€ @     ‚‚    @ @ €       €   D  € ˆ€  I       I  À Á @@       B   A @  0      €0  €€  Xð
   B0 3 @  "I    $A P !  "À !€ À€ †D ň€B@åd@€€ È      f B € ˆ €  $I€0@Ð(   @  !Æ'4î
                                                                    @     €¢  €$  €   0€        @

 

There is much more of this kind of characters! The funny thing is as I disconnect the SmartLynq from my computer or from the board, the serial monitor stops showing junk characters on the screen. So I think it looks like the serial monitor is reading the SmartLynq datas not the Hello World app running on the chip (i.e. Cortex-A53)!

I asked this question in Xilinx forum but nobody answered that so I hope this community could help me just like before.

 

P.S. I set all SW6 switches up.

P.S. My laptop is MacBook Pro so I installed Win10 on Parallels desktop, however I tried to monitor the serial port via Raspbian with no luck.

 

Best regards,

Mohammad

  • Sign in to reply
  • Cancel
Parents
  • dougw
    0 dougw over 7 years ago

    I have no experience with this card.

    I assume you tried rebooting or re-powering the system without the programmer connected after it was programmed.

    It used to be if you saw garbage from a serial connection it meant the baud rate was wrong, but USB changed that diagnosis.

    Could it be that the card is sending some some sort of error message about the programming process, and it didn't actually program properly?

    Does the programmer verify that proper programming took place?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • dougw
    0 dougw over 7 years ago

    I have no experience with this card.

    I assume you tried rebooting or re-powering the system without the programmer connected after it was programmed.

    It used to be if you saw garbage from a serial connection it meant the baud rate was wrong, but USB changed that diagnosis.

    Could it be that the card is sending some some sort of error message about the programming process, and it didn't actually program properly?

    Does the programmer verify that proper programming took place?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • manili
    0 manili over 7 years ago in reply to dougw

    Thanks a lot Douglas,

     

    Well AFAIU the SmartLynq could/should be stay connected after programming the chip because you can use it as a debugger in some cases. However as I said, the funny thing is if I disconnect the SmartLynq I can not even see the garbages!

    I'm a newbie with these devices so if there is any spacial way of verifying the programming process, I still did not figure it out (however the Xilinx SDK shows everything's going fine and I can see errors when it can not program the board).

     

    BTW this was the first comment on this issue. thanks a lot.

     

    Mohammad

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube