element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development UART0 routed through PL - Rx not working
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 0 replies
  • Subscribers 327 subscribers
  • Views 204 views
  • Users 0 members are here
Related

UART0 routed through PL - Rx not working

ango42
ango42 over 7 years ago

Hi,

I routed the UART0 signals of the zynq available on the picozed board through the PL and make them externals to shift signals level to 3V3. 

On the PS side, I have a linux environment (4.4.0) generated with Yocto.

The UART1 is already used for the console and it is working perfectly. I would like to use UART0 for a custom application, but the Rx signal is not working.

First to check if the UART0 is working correctly I connected the RX and TX signals of UART0 to a 3V3 FTDI USB cable which is connected to my laptop.
After setting a correct configuration of the serial communication (115200, 8, 1, no parity) I used the following command to send a message to my laptop : 

echo "HelloWorld" > /dev/ttyPS0

And I received the following message on my computer (using putty) : 

HelloWorld

So the Tx signal of UART0 is working.

Then to check the RX signals I performed a similar operation and used the following command to read data : 

cat /dev/ttyPS0

This command is waiting for data.
On my laptop I enter any characters but I never received any data on the picozed board.

To check if the signal is routed correctly I double check the pinning in my vivado project and add an ILA to see RX signals in the chipscope.

When data are available I can see them in the chipscope and I can say that it isn't an hardware issue.

For both UART0 and UART1 the uartps driver is used and seems to work correctly for UART1. I don't understant why it is not working for UART0. 

Tx is working but not RX so I think about interruptions. To see any interruption, I see the /proc/interrupts file and have the following : 

           CPU0       CPU1
 16:          0          0       GIC  27 Edge      gt
 17:          0          0       GIC  43 Level     ttc_clockevent
 18:     599772     119714       GIC  29 Edge      twd
142:          1          0       GIC  57 Level     cdns-i2c
143:         20          0       GIC  80 Level     cdns-i2c
145:          0          0       GIC  35 Level     f800c000.ocmc
146:          1          0       GIC  59 Level
147:          3          0       GIC  82 Level
148:         26          0       GIC  58 Level     e0006000.spi
149:          2          0       GIC  81 Level     e0007000.spi
150:       2064          0       GIC  51 Level     e000d000.spi
151:      32639          0       GIC  54 Level     eth0
152:       7111          0       GIC  79 Level     mmc0
153:          0          0       GIC  45 Level     f8003000.dmac
154:          0          0       GIC  46 Level     f8003000.dmac
155:          0          0       GIC  47 Level     f8003000.dmac
156:          0          0       GIC  48 Level     f8003000.dmac
157:          0          0       GIC  49 Level     f8003000.dmac
158:          0          0       GIC  72 Level     f8003000.dmac
159:          0          0       GIC  73 Level     f8003000.dmac
160:          0          0       GIC  74 Level     f8003000.dmac
161:          0          0       GIC  75 Level     f8003000.dmac
162:          0          0       GIC  40 Level     f8007000.devcfg
171:          0          0       GIC  68 Level     xilinx-vdma-controller
IPI1:          0          0  Timer broadcast interrupts
IPI2:       8754      10100  Rescheduling interrupts
IPI3:          0          0  Function call interrupts
IPI4:         24         18  Single function call interrupts
IPI5:          0          0  CPU stop interrupts
IPI6:          1          0  IRQ work interrupts
IPI7:          0          0  completion interrupts
Err:          0
 

IRQ 59 and 82 are used for UART0 and 1 but not listed for uartps (yesterday it was listed only for IRQ 82).

To check if the configuration is well done on the UART0 I used the utils devmem2 to read and write UART Controller Registers (Appendix B.33 ug585). I found out that UART0 is not configured like UART1. But when I try to change its settings, nothing happens and I can't receive any data.

Thanks for your help.

  • Sign in to reply
  • 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