• 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 » OMAP-L13x, AM1x and C674x Processors Forum » OMAP-L138 MT46H128M16LFCK-6:A detection 256MB problem
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
  • OMAP-L138 MT46H128M16LFCK-6:A detection 256MB problem

    OMAP-L138 MT46H128M16LFCK-6:A detection 256MB problem

    This question is not answered
    Rishabh Jain
    Posted by Rishabh Jain
    on Aug 30 2012 07:59 AM
    Prodigy190 points

    Dear All,

    We have our own customized board where we are using omap-l138 with mDDR MT46H128M16LFCK-6:A.

    But we are facing a problem in proper reading of DRAM in u-boot.

    We are using 256MB of mDDR but we get value in u-boot of 128MB.Following is the debug at u-boot prompt:

    We have also gone through the arm ubl of 1.65 version. Where we have made change in th SDCR register i.e. page size set 2048 and IBANK set 4 banks, as per our mDDR settings.

    Please do correct where we are going wrong and for more info just reply the post.

    OMAP-L138 initialization passed!
    Booting TI User Boot Loader
            UBL Version: 1.65
    Device OPP (300MHz, 1.2V)
            UBL Flashtype: SPI
    Starting SPI Memory Copy...
    Valid magicnum, 0x55424CBB, found at offset 0x00010000.
       DONE
    Jumping to entry point at 0xC1080000.
    MMC:   davinci: 0
    SF: Detected M25P64 with page size 256, total 8 MiB
    *** Warning - bad CRC, using default environment

    In:    serial
    Out:   serial
    Err:   serial
    ARM Clock : 300000000 Hz
    DDR Clock : 132000000 Hz
    RAM Configuration:
    Bank #0: c0000000 128 MiB
    RAM size: 8000000
    SF: Detected M25P64 with page size 256, total 8 MiB

    Regards

    Rishabh Jain

    OMAP-L138 mDDR MT46H128M16
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Loc
      Posted by Loc
      on Aug 30 2012 14:37 PM
      Intellectual2470 points

      I don't think that this version auto detect mem size. Have you modified the line

      #define PHYS_SDRAM_1_SIZE (64 << 20) /* SDRAM size 64MB */

      in the file /u-boot<version>/include/configs/da850evm.h to reflect the new memory size?

      OMAP-L138 EVM U-BOOT
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Mariana
      Posted by Mariana
      on Aug 30 2012 16:18 PM
      Mastermind24340 points

      Hi Rishabh,

      If you are using the DSP side as well, the memory is shared and the memory map needs to be adjusted. If you are using DSPLink for DSP and ARM communication, please see:

      http://processors.wiki.ti.com/index.php/Changing_DSPLink_Memory_Map

      - Mariana

       

      ---------------------------------------------------------------------------------------------------------
      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.
    • Rishabh Jain
      Posted by Rishabh Jain
      on Aug 31 2012 01:43 AM
      Prodigy190 points

      Loc

      I don't think that this version auto detect mem size. Have you modified the line

      #define PHYS_SDRAM_1_SIZE (64 << 20) /* SDRAM size 64MB */

      We already change it to 256MB in our board header file da850evm.h

      #define PHYS_SDRAM_1_SIZE (256 << 20) /* SDRAM size changed to 256MB */

      But it is not effecting anything.

      Please correct us if we are going wrong as we can see the dram registers are configured in ubl itself.

      We have changed the configuration in SDCR register, earlier its value was - 0x08934832 - new value - 0x08934823.

      pagesize - 2048 and banks 4 according to datasheet.

      According to our analysis it uses "get_ram_size" function called by "dram_init" function from board.c file.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Adam Turowski
      Posted by Adam Turowski
      on Aug 31 2012 07:49 AM
      Prodigy120 points

      Can you provide your DDR clock frequency setting and the values programmed into DRPYC1R, SDCR, SDCR2, SDTIMR1, SDTIMR2 and SDRCR registers please?

      Best regards,

      Adam

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Rishabh Jain
      Posted by Rishabh Jain
      on Aug 31 2012 09:53 AM
      Prodigy190 points


      We are getting DDR clock = 132 Mhz.

      After setting the following values we are able to get DRAM size = 256MB.

      DRPYC1R = 0x000000C4,

      SDCR = 0x0A034623,

      SDTIMR1 = 0x184929CB,

      SDTIMR2 = 0x380FC700,

      SDRCR = 0x00000406,

      SDCR2 = 0x00000000.

      Debug is:

      ARM Clock : 300000000 Hz

      DDR Clock : 132000000 Hz                                                                                
      RAM Configuration:                                                                                      
      Bank #0: c0000000 256 MiB                                                                               
      RAM size: 10000000

      But after setting some variables in u-boot our u-boot hangs after some times.

      So please correct what may be the reason of hanging of u-boot.

      We think that there might be some Clock mis-match due to which it gets hangs.

      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