• 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 » Embedded Software » Linux » Linux forum » EZSDK Memory Map
Share
Linux
  • Forum
Options
  • Subscribe via RSS

Forums

EZSDK Memory Map

This question is answered
Vladimir Karakozov
Posted by Vladimir Karakozov
on May 10 2012 06:12 AM
Expert1310 points

Hi, all!

I have custom board, based on DM816x EVM. On board have  512MB DDR3 connected to the EMIF1 at address 0xC0000000. At this moment I work only with ARM processor and Linux. But I need write some DSP program and have some questions about SDK components.

1) Must I change EZSDK memory map to do this task or not?

2) On this wiki page http://processors.wiki.ti.com/index.php/EZSDK_Memory_Map in section "H/W and S/W limitations to consider for deciding memory map" in "Hardware Limitations"  said: "Media Controller cannot access any program memory above 0xA0000000". What does it mean? In my board I can't use MC at all? Or I misunderstood something?

3) What should I change to sys_top working correctly. sys_top output  message:

# ./sys_top
Unhandled fault: Precise External Abort on non-linefetch (0x1818) at 0x400d0000
Bus error

Thank you.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Mike Whittaker
    Posted by Mike Whittaker
    on May 11 2012 05:23 AM
    Intellectual410 points

    From just reading that web page, it suggests that you should map the memory to exist at both 8000 and A000, see diagram and mapping settings further down:

    "For a 512MB system, we create 2 system address spaces of length 512MB and map to the same physical memory. On Media Controllers, the first address range is used to access DDR with cache enabled and the second address is used to access the same DDR with cache disabled.
    • System Address 0x80000000 is mapped to physical address 0x00000000
    • System Address 0xA0000000 is mapped to physical address 0x00000000"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vladimir Karakozov
    Posted by Vladimir Karakozov
    on May 12 2012 01:56 AM
    Expert1310 points

    Hi, Mike!

    Thank you for your answer! I have some questions.  Please, answer me

    1) system addresses - it is addresses from processor side, while u-boot or Linux running on it?

    2) In wiki diagram for 512MB systems DDR3 memory connected to the EMIF0, EMIF1, but on my board connected only EMIF1. Please, tell me, how I must set correct values of LISA_MAP_x registers in u-boot?

    Now I set:

     __raw_writel(0, DMM_LISA_MAP__0);
     __raw_writel(0, DMM_LISA_MAP__1);
     __raw_writel(0, DMM_LISA_MAP__2);
     __raw_writel(0xC0500200, DMM_LISA_MAP__3);
    i.e. map system address 0xC0000000 to physical address 0x0, 512MB size, non interleaved. And I changed u-boot and linux load and start address from 0x80000000 to 0xC0000000 (with offsets). It is correct?
    
    
    Thank you.
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vladimir Karakozov
    Posted by Vladimir Karakozov
    on May 14 2012 07:48 AM
    Expert1310 points

    Hi, all!

    I read documentation about DMM from sprugx9.pdf and from sprs680a.pdf about EMIF adresses. And I still don't understand how my device is working :)

    Please help me to understand my mistakes.

    1) I have board based on C6A8168 processor. DDR3 connected to EMIF1 CS0 (size 512 MB). When I change some files in u-boot:

    in board/ti/ti8168/config.mk

    TEXT_BASE = 0xC0700000 

    in board/ti/ti8168/evm.c set all LISA mapping (and some changes specific, to my board)

    DMM_LISA_MAP__[0:2] = 0x0
    DMM_LISA_MAP__[3] = 0xC0500200

    in include/configs/ti8168_evm.h set 

    #define PHYS_DRAM_2 0xC0000000 /* DRAM Bank #2 */

    #define PHYS_DRAM_2_SIZE 0x20000000 /* 512 MB */

    rebuild u-boot, burn it on SPI or NAND it is working fine. Linux boot successfully (it start address 0xC0X00000)

    2) If I set all addresses (As note in EZSDK Memory Map):

    TEXT_BASE = 0x80700000 

    DMM_LISA_MAP__[0:1] = 0x0
    DMM_LISA_MAP__2 = 0x80400200
    DMM_LISA_MAP__3 = 0xA0400210
    or
    DMM_LISA_MAP__[0:2] = 0x0
    DMM_LISA_MAP__3 = 0x80500200

    #define PHYS_DRAM_2 0x80000000 /* DRAM Bank #2 */

    #define PHYS_DRAM_2_SIZE 0x20000000 /* 512 MB */

    system hung at u-boot stage.

    3) Why system don't work in the second 2) case? To my mind it should not work in the first 1) case, because EMIF1 CS0 starting at address 0x80000000 (or 0xC0000000). Please explain me. I'm confused.

    4) How  I can set DMM_LISA_MAP_x registers properly to work with EZSDK system map for 512 MB board? Please help!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Vladimir Karakozov
    Posted by Vladimir Karakozov
    on Jun 06 2012 04:50 AM
    Verified Answer
    Verified by Vladimir Karakozov
    Expert1310 points

    Hi, All!

    I found solution for my custom board. I must change all DMM_LISA_MAP__x registers in this manner:

    __raw_writel(0x0, DMM_LISA_MAP__0);
    __raw_writel(0x80500200, DMM_LISA_MAP__1);
    __raw_writel(0xA0500200, DMM_LISA_MAP__2);
    __raw_writel(0xC0500200, DMM_LISA_MAP__3);

    If I set DMM_LISA_MAP__3 to 0x0 nothing is working. May be it was useful for someone.

    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