• 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 » C2000™ Microcontrollers » C2000 32-bit Microcontrollers Forum » TMS320F28335 Boot from Flash Problem
Share
C2000™ Microcontrollers
  • Forums
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
C2000 Resources
  • Product Folder
  • C2000 Training Portal
  • C2000 Technical Training Catalog
  • C2000 Datasheets, App Notes, User Guides
  • C2000 Hardware Design Kits
  • controlSUITE for C2000 Software Library


  • InstaSPIN Resources
  • What is InstaSPIN?
  • Videos and Support


  • InstaSPIN-FOC and InstaSPIN-MOTION Resources
  • What is InstaSPIN-FOC?
  • What is InstaSPIN-MOTION?
  • Product Folder: F28069F, F28068F, F28062F, F28068M, F28069M
  • User’s Guide
  • Technical User’s Manual
  • Tools
  • TMS320F28335 Boot from Flash Problem

    TMS320F28335 Boot from Flash Problem

    This question is answered
    Paul Raine
    Posted by Paul Raine
    on Apr 17 2012 17:42 PM
    Intellectual310 points

    I have a simple application that runs out of flash on a TMS320F28335.The application runs fine when executed from the debugger/emulator environment.

    However after I reset the power, the device does not boot up the application correctly.

    I.e. It runs out of flash when executed from the debugger, but not after a power reset.

    I have run other sample applications from flash after a reboot and they run just fine. I've tried comparing the project settings and they look the same as my application.

    What special considerations do I need to make (project settings) to allow my application to run after a power reset?

    I have code composer studio CCS v5 and USB2000 Emulator.

    thanks in advance,

    Paul

    F28335 boot Code Composer Studio F2833x TMS320F28335 eZdsp TMS320F28335 TMS320F28335 controlCARD Delfino F28xx Reset eZdsp™ F28335 flash 28335 eZdspF28335 28xx Flash JTAG Flash API F28xx
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Paul Raine
      Posted by Paul Raine
      on Apr 24 2012 18:46 PM
      Intellectual310 points

      The problem seems to be the following line of code in my .CMD file

                .rts  { -lrts2800_fpu32_eh.lib (.text) }  >> RAML1   PAGE = 0

      when I remove it it boots up correctly after a power cycle, however I need load the math library functions into RAM for better performance.

      Can anyone suggest a solution?

      thanks,

      Paul

      TMS320F28335 Delfino F28xx flash 28335
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Roman Ermakov
      Posted by Roman Ermakov
      on Apr 26 2012 09:07 AM
      Expert1020 points

      Hello Paul

       

      Have you read this? http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=spra958&fileType=pdf 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul Raine
      Posted by Paul Raine
      on May 08 2012 09:45 AM
      Intellectual310 points

      Thanks for your response,.
      The document is very useful and I have been able to run several of my application’s functions from RAM (loading from FLASH on startup.
      The thing I am having difficulty with is loading the math library functions from FLASH to RAM on startup.

      The following command I have used to place the library in a specific section of FLASH (FLASHH):

      .rts  { -lrts2800_fpu32_eh.lib (.text) }  >> FLASHH   PAGE = 0

      Now I need to load this FLASHH section to RAM on power up. I have tried the following, but this doesn’t work:

      rts                 : LOAD = FLASHH,
                               RUN = RAML1,
                               LOAD_START(_rts_LoadStart),
                               LOAD_END(_rts_LoadEnd),
                               RUN_START(_rts_RunStart),
                               PAGE = 0

      MemCopy(&rts_LoadStart, &rts_LoadEnd, &rts_RunStart);

      I think the issue is that I haven’t placed the functions into a linkable section. This would usually be done using the #pragma CODE_SECTION.
      In section 4.4 of SPRA958K this is done be placing a #pragma CODE_SECTION declaration above each function you want to add to the linkable section. Unfortunately I don’t have access to the code for the rts2800_fpu32_eh.lib so I can’t do that.

      So how do I define a linkable section for the functions that I need from this library?

      TMS320F28335 Delfino F28xx flash 28335
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lori Heustess
      Posted by Lori Heustess
      on May 15 2012 09:39 AM
      Verified Answer
      Verified by Paul Raine
      Guru50930 points

      Paul,

      Please try this syntax - this would put the rts library .text section from the object file shown into a section called text1.

      text1        : LOAD = FLASHD,

                         RUN = RAML0,

                         LOAD_START(_text1LoadStart),

                         LOAD_END(_text1LoadEnd),

                         RUN_START(_text1RunStart),

                         PAGE = 0

                         {

                          -l rts2800_fpu32.lib < fd_add.obj > (.text)

                         }

      Did a reply answer your question? If yes, please click the "yes" button located at the bottom of that post.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lori Heustess
      Posted by Lori Heustess
      on May 15 2012 09:47 AM
      Verified Answer
      Verified by Paul Raine
      Guru50930 points

      Also - there is a known CCS bug - if you get a "warning #10068-D: no matching section" then in the project options change the RTS lib from <automatic> to the library you are including.

      Did a reply answer your question? If yes, please click the "yes" button located at the bottom of that post.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul Raine
      Posted by Paul Raine
      on May 15 2012 10:07 AM
      Intellectual310 points

      Hi Lori,

      Thanks for the information. This is really helpful.

      I have a couple more questions -

      1.) with the syntax you suggest in the linker cmd file - do I still need to do a Memcopy in my startup code? (something like Memcopy (&text1LoadStart,&text1LoadEnd,&text1RunStart))???

      2.) with the syntax you suggest in the linker cmd file - do I still need add #pragma CODE_SECTION blocks in the code or does the linker already so this?

      3.) Is there a way to move all of the required objects from that library on startup, or do I need to name each one < fd_add.obj  fd_sub.obj > etc etc.

      Thanks in advance,

      Paul

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lori Heustess
      Posted by Lori Heustess
      on May 15 2012 10:11 AM
      Verified Answer
      Verified by Paul Raine
      Guru50930 points

      Paul Raine
      1.) with the syntax you suggest in the linker cmd file - do I still need to do a Memcopy in my startup code? (something like Memcopy (&text1LoadStart,&text1LoadEnd,&text1RunStart))???

      Yes - this just allocates it to the section.

      Paul Raine
      2.) with the syntax you suggest in the linker cmd file - do I still need add #pragma CODE_SECTION blocks in the code or does the linker already so this?

      No, the code section pragma is not needed.

      Paul Raine
      3.) Is there a way to move all of the required objects from that library on startup, or do I need to name each one < fd_add.obj  fd_sub.obj > etc etc.

      I *think* if you just specify (.text) you will get all of the text sections in the library.

      Did a reply answer your question? If yes, please click the "yes" button located at the bottom of that post.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul Raine
      Posted by Paul Raine
      on May 15 2012 12:03 PM
      Intellectual310 points

      Hi Lori,

      Yes this linker syntax seems to work, along with the Memcopy, as long as I specify the objects individually.

      I couldn't get it to work when I tried to load the whole library with just (.text) - CCS downloaded the program, but didnt give me an option to run. (??)

      However, I just specify the objects I really need then these are loaded into RAM at boot time. This gives much better performance.

      Thank you very much for your help.

      Regards,

      Paul

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lori Heustess
      Posted by Lori Heustess
      on May 15 2012 12:15 PM
      Guru50930 points

      Paul Raine
      I couldn't get it to work when I tried to load the whole library with just (.text) - CCS downloaded the program, but didnt give me an option to run. (??)

      hmm Looking at the assembler guide (www.ti.com/lit/spru513) I think you can use a wildcard to do this.

      ..... <*.obj> (.text)

      Did a reply answer your question? If yes, please click the "yes" button located at the bottom of that post.
      Visit these helpful C2000 Links!
      C2000 TI Wiki Pages
      TI Forum Sitemap
      ControlSUITE
      C2000 Getting Started
      CLA FAQs
      Workshop Material!
      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