• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » OMAP™ Processors » OMAP35x Processors Forum » OMAP35x burst problem operation in linux
Share
OMAP™ Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Resources
  • OMAP-L1x DSP+ARM9™-based Processors Product Folder
  • OMAP3525/30 DSP+ARM Cortex™-A8-based SOCs Product Folder

  • Top OMAPL Wiki Links
  • OMAPL3x Schematic Review Checklist
  • OMAPL13x Boot resources

  • OMAPL Document Resources
  • OMAPL137 Technical reference manual
  • OMAPL138 Technical reference manual
  • OMAPL Boot loader App Notes
  • OMAP35x burst problem operation in linux

    OMAP35x burst problem operation in linux

    This question is answered
    jinhu wu
    Posted by jinhu wu
    on Mar 01 2010 02:09 AM
    Prodigy70 points

    Hi all

    I use omap3530  connect to my FPGA chip with GPMC, and config GPMC at burst mode.

    And now I want to know in linux, which linux function of read and write causes cpu  operating at burst mode.

    I try some functions of multiread : readsb,readsw,readsl and memcpy.

    But checkd with an oscilloscope, it seems that omap3530 still opeartes at none burst mode.

    ps: The time parameter of GPMC has been configed according to gpmc burst read mode in omap35x user manual. I config that omap burst at 16 words burst mode and multiplex addr/data.

    For example I want to read 16 words

    In none burst mode, I use single read linux function readw, it will be 16 times cs, that is 16 times reads. And observe with an oscilloscope, that is right.

    In burst mode, I use multiread linux function readw/memcpy, it also be 16 time cs, but in my opinion,  it should be 1 time cs.

    thanks!

    OMAP3530 GPMC Burst Linux
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Steven Shade
      Posted by Steven Shade
      on Apr 23 2010 12:19 PM
      Prodigy30 points

       

      I found a few ways to do this for bursting 4-words.  I haven't figured out how to get a burst of 16.

       

      1. Use a 64-bit pointer. 

      u64 *ptr = fpga_address_location;

      *return_data = *ptr; // generates burst of 4 16-bit words if GPMC is configured correctly.

       

      2. Use inline assembly:

      u64 *ptr = fpga_address_location;

        asm volatile (
               "ldmia %[in]!, {r3-r10} \n\t"
               "stmia %[out]!, {r3-r10} \n\t"
               :[out]"+r" (return_data)
               :[in]"r" (ptr)
               :"r3","r4","r5","r6","r7","r8","r9","r10","memory"
          );

      I believe this should do a burst of 16 words, but it ends up doing 4 bursts of 4 words.  Better than individual reads, but still not what I want.

       

      Hope this helps.

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Brad Griffis
      Posted by Brad Griffis
      on Apr 27 2010 21:04 PM
      Verified Answer
      Verified by jinhu wu
      Guru57330 points

      Jinhu,

      The short answer is that you should use System DMA to generate bursts larger than 64 bits on the L3 interconnect.  See this post for a deeper explanation.

      Brad

      ---------------------------------------------------------------------------------------------------------

      Please click the Verify Answer button on this post if it answers your question.
      --------------------------------------------------------------------------------------------------------- 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Xiaolin Zou
      Posted by Xiaolin Zou
      on Jun 05 2012 03:53 AM
      Prodigy160 points

      hi,brad,

      I read so many materials on this forum,I found you have answered so many questions about GPMC.I just want to do 64bits burst,but it seems the dataline are driven down,only zeros.please help me,If you need all the source code,I can email to you. 

      sinceI do the single read and write well.but I met a problem when I do the sync burst read:

      I export the function gpmc_cs_set_timings ,and add some code like below to do the sync burst read:

      l = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1);
      l=l|GPMC_CONFIG1_READTYPE_SYNC;
      l=l|GPMC_CONFIG1_READMULTIPLE_SUPP;
      l=l|GPMC_CONFIG1_CLKACTIVATIONTIME(1);
      gpmc_cs_write_reg(cs, GPMC_CS_CONFIG6, 0x0);

      I call this function in my driver code,print the register,the result is look like below,I only want to do sync burst read,but I can't read anything on the D[0]-D[15] lines

      I am looking forward to your reply.please help me,if you can give me some source code about sync burst read,It would be better for me to understand.Thanks again.

      GPMC_CS_CONFIG1=62001001
      GPMC_CS_CONFIG2=001c0b00
      GPMC_CS_CONFIG3=00010900
      GPMC_CS_CONFIG4=16090b00
      GPMC_CS_CONFIG5=02091e0b
      GPMC_CS_CONFIG6=00000000
      GPMC_CS_CONFIG7=00000f6c

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use