• 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 » Microcontrollers » Hercules™ Safety Microcontrollers » Hercules™ Safety Microcontrollers Forum » about TMS570LS3137 code
Share
Hercules™ Safety Microcontrollers
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

about TMS570LS3137 code

This question has suggested answer(s)
zhangjie zhangjie
Posted by zhangjie zhangjie
on Feb 26 2012 07:35 AM
Prodigy170 points

hello,I want to know may I place the program code into extern prom?NOT in  tms570ls3137's flash.I don't know how to use? Please help me!THANKS!

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Brian Fortman
    Posted by Brian Fortman
    on Feb 27 2012 08:57 AM
    Suggested Answer
    Expert5255 points

    Hello,

    Can your code be stored in external flash?  Yes, you could achieve this with either a SPI flash or a linear/asynch flash (traditionally NOR flash).

    The question is do you want to execute directly from this storage?  If so, then the SPI flash is not an option.  

    The external asynch memory space is directly accessible by the CPU so fetches are supported as well as load, store.  However, please be aware that the MCU architecture was not designed for execution performance on this path:  

    Besides the obvious flash access delays, 

    You will incur several cycles of latency to access the EMIF controller, and 

    The EMIF Data bus width is only 16 bits wide

    The EMIF is not protected by ECC - so you could be opening a safety hole

    In general, we would advise using the EMIF as a mass data storage area.  If you have code that does not fit in the on chip flash space, consider copying it to on-chip RAM first and then executing from RAM.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • KGreb
    Posted by KGreb
    on Feb 27 2012 08:57 AM
    Expert5805 points

    Hello,

    The current products support only boot from internal flash.  If you wish to boot from external memory, you will need to make a small bootloader in the internal flash to handle initialization and then transfer program flow to the external memory.

    Regards,
    Karl 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • zhangjie zhangjie
    Posted by zhangjie zhangjie
    on Apr 09 2012 18:07 PM
    Prodigy170 points

    thank you for you answer. I need handle initialization in the internal,and then jump to extern memory?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • KGreb
    Posted by KGreb
    on Apr 10 2012 07:40 AM
    Expert5805 points

    Yes, this is correct.  The device will always boot from the internal flash memory.  To perform execution from external flash you will need to put code in the internal memory which boots the device, configures the EMIF, and transfers the execution stream to external memory.

    Regards,

    Karl

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • zhangjie zhangjie
    Posted by zhangjie zhangjie
    on Apr 10 2012 08:29 AM
    Prodigy170 points

    today,I try it.but I don't know how to transfer the execut stream to external memory.I want to place main function to external memory,but i don't know how to jump external memory,address is 0x60000000.thanks.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • KGreb
    Posted by KGreb
    on Apr 10 2012 09:51 AM
    Expert5805 points

    Hello,

    The simplest way to approach this in my opinion is to create two separate projects with CCS.  For the first project (bootloader), you will link the code to execute from 0x0.  For the second project (application), link the code to execute from the external memory space.  The final instruction of your bootloader would then be a call to the application routine which is linked in external memory.

    Regards,

    Karl

    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