• 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 » BIOS » BIOS forum » Is Flash API Compatible with SysBios
Share
BIOS
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Forums

Is Flash API Compatible with SysBios

This question is answered
Grant10435
Posted by Grant10435
on Apr 11 2012 10:02 AM
Intellectual340 points

I am working on a large development project with the Piccolo (TMS320F28027 and TMS320F28026) and have successfully implement many of the features in SysBios. I am now trying to save/load variables to/from the on-chip Flash, something I thought would be simple, but I am hitting a lot of snags.TI provides a 41 page document on Flash Programming (TMS320F2802x Flash API V2.01) and the application note on emulating EEPROM using the flash SPRAB69. I am having trouble translating TIs example code to my project . My questions are listed below:

  1. Will the Flash API work with a Sys Bios project? TI does not provide the API  source code so I can't tell. The *.cmd file and the API documents link to the PIE Vector Table which is forbidden in a SysBios project.  The application notes says that FlashCallbackVar must point to address 0x000D02, which is the memory map for INT1.
      UNION run = PIE_VECT, PAGE = 1
       {
          PieVectTableFile
          GROUP
          {
             EmuKeyVar
             EmuBModeVar
             FlashCallbackVar
             FlashScalingVar
          }
       }
     I replaced PieVectTableFile with .vecs, the PIE vector for SysBios, but  CCS gives me:
    a run placement fails for object "UNION_1", size 0x6 (page 1)
    .  I could really use some help getting the linker setup correctly since I really don't know what the FLASH API and what SysBios needs.
  2. Has anyone ever written a variable to Flash using SysBios, or I am I the only one in the world with this requirement?

flash SYSBIOS Piccolo
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Steven Connell
    Posted by Steven Connell
    on Apr 11 2012 21:10 PM
    Mastermind20580 points

    Hi Grant10435,

    Which version of SYS/BIOS are you using?

    Thanks,

    Steve

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Grant10435
    Posted by Grant10435
    on Apr 12 2012 11:14 AM
    Intellectual340 points

    My help documentation says Version 5.41.11.38.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steven Connell
    Posted by Steven Connell
    on Apr 13 2012 13:24 PM
    Verified Answer
    Verified by David Friedland
    Mastermind20580 points

    Hi Grant,

    I contacted someone familiar with the flash APIs.  Here's what they had to say:

    "The flash API does require some data to be loaded at the top of the PIE vector table.  This is reserved space and not actually used by the PIE (it is just RAM).  Because of this we used it as a fixed location for the flash API in the boot ROM to retrieve the information from the user’s application.

    To map the variables to these locations in the flash API example we have used the linker command file as shown below.    From what he says this is not doable in BIOS – I think its because BIOS auto generates a linker file with the PIE information. 

    The user could, instead, create a pointers in their application to those fixed locations and populate the data that way.   (ie hard code the address instead of letting the linker do it).  One is a pointer to a function and the other is a pointer to unsigned long:

    extern Uint32 Flash_CPUScaleFactor;

    extern void (*Flash_CallbackPtr) (void);

     "

    Can you give this a try and see if it helps solve the problem?

    Steve

    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