element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or 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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development problem facing Reading Data from the memory and Send it through the UART1
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 175 subscribers
  • Views 154 views
  • Users 0 members are here
Related

problem facing Reading Data from the memory and Send it through the UART1

Former Member
Former Member over 7 years ago

Hello,

Someone help me in C coding how to implement the below function:
1) sending data of 64 bit to the memory through the AXI_DMA to S_AXI_HP0 port and to transfer the data from memory to terminal by UART1.

2) this data transferring occurs when I "ON" one of the SW(7:0) (for ex: SW0) and the data has to appear on the terminal with '1' + other 63 bits. The '1' is the LSB of the data. and also if I switch "OFF" the SW0, then '0' has to appear on the terminal with some delay parameters.

Please help me, Thanking you in advance

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 7 years ago

    Hello,

     

    Moving the data to the AXI_HP0 port using DMA is going to depend on your hardware design.

     

    Writing the data out to the terminal using UART1 is pretty straight forward as is 'reading' the switch setting. Once you have exported your hardware design to the SDK and generated a BSP / application if you open the system.mss file you will see links to 'Documentation' and 'Import Examples' next to the 'Peripheral Drivers' listed there. You can click on these links to see complete documentation and example code to dirve these peripherals. As an example the UART1 example code link will be next to the 'ps7_uart_1' entry. The switch input will probably be either ps7_gpio_0 or axi_gpio_x, depending on how your hardware has implemented the switch interface. As mentioned before, the dma interface will also depend on your hardware implementation.

     

    -Gary

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

    I connected the M_AXI_DMA (S2MM) port to the S_AXI_HP0 and given BASE_MEMORY_ADDRESS as 0x00100000 and the ADDRESS_HIGH as 0x001FFFFF and connected a interrupt from DMA to CPU with ID(61). While writing a C code, is there any thing to deal with the xdmaPs interrupts to initialize or else can i only configure/initialize xscugic and xuartps drivers? Which ISR have to connect with the xscugic_connect or is there any other way to deal with the interrupts to read the data from memory...

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

    Take a look at the example code included in the Xilinx SDK and SDK installation. In addition to being able to 'Import' the example code within the SDK you can get them directly from your SDK installation directory. For a typical Xilinx SDK installation the example drivers and code for the peripherals will be located:

     

    c:/Xilinx/SDK/2015.4/data/embeddedsw/XilinxProcessorIPLib/drivers/

     

    There you can find example code for intiializing the DMA and Interrupt Controllers as well as sample ISRs.

     

    -Gary

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

    Thank you for ur support Mr.Gary. I already looked into these examples but not getting any idea which DMA can i use to read the data. Which DMA can i use in these two drivers like axidma example or dmaps example? Actually I am a starter in C-coding and new to interrupt handling logic. can you please help me in coding if i tell you the concept of my task? it will be very helpful to me if you help me.

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

    The drivers you use need to match the hardware you have implemented in your Zynq design. We are not in a position to help directly with your coding.

     

    You might want to go through the Avnet Speedway Workshops for Zynq Software and Hardware development so that you have a better concept of how the Zynq device and the development tools work:

     

    http://zedboard.org/support/trainings-and-videos

     

    -Gary

    • 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 © 2023 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