• 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 » F021 API Questions
Share
Hercules™ Safety Microcontrollers
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS

F021 API Questions

F021 API Questions

This question is answered
Stefano Querin
Posted by Stefano Querin
on Apr 20 2012 04:16 AM
Prodigy50 points

Hello,
 I'm interfacing the F021 library to progam the TMS570LSxxx5 family and I have some questions:

1- Fapi_getBankSectors():

This function returns information about the bank starting address, number of sectors, sector sizes, and
bank technology type. The information is returned in a struct Fapi_FlashBankSectorsType. The members
are as follows:
• oFlashBankTech – Indicates if bank is an FLEP, FLEE or FLES bank type
• u32NumberOfSectors – Indicates the number of sectors in the bank
• u32BankStartAddress – Starting address of the bank
• au8SectorSizes[] – An array of sectors sizes for each sector in the bank

a- What mean FLEP, FLEE and FLES?
b- au8SectorSizes[] does not contain the sector size value. For example on Bank0 the first value is au8SectorSizes[0]=16 and the last au8SectorSizes[14]=64 could you explain me why?

2- Fapi_issueProgrammingCommand()

The supplied starting address to program at plus the data buffer length cannot exceed the bank data width. (Ex.
Programming 14 bytes on a 16 byte wide bank starting at address 0x4 is not allowed.)

a- Where can I found the bank data width information?
b- Can I program the same bank two time or I need to perform an erase before?

Best regards

Stefano Querin

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • John Hall
    Posted by John Hall
    on Apr 20 2012 10:36 AM
    Verified Answer
    Verified by Stefano Querin
    Expert5245 points

    1)

    a) These are the different types of bank technology we have in F021 devices.  Currently, all released TMS570LSx1xxx devices have only have FLEP type banks.

    b) This is an oversight on my part.  I need to include the following table in the API documentation:

    Sector Size,

    Bytes

    au8SectorSizes[x]

    Value

    0K 0X00
    2K 0X01
    4K 0X02
    8K 0X04
    16K 0X08
    32K 0X10
    64K 0X20
    128K 0X40
    256K 0X80

    2)

    a)  The bank size information is available in the F021 Flash Module chapter of the device's Technical Reference Manual.

    b) You may program a bank multiple times before erasing.  If programming the same location more than once before an erase, you can only program  bits with a 1 value  to 0.  If you try to program a 1 into a bit that is 0, the the programming operation will fail.

    John Hall

    Safety MCU Software Team

    If my reply answers your question please click on the green button "Verify Answer"

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chuck Davenport
    Posted by Chuck Davenport
    on May 03 2012 13:11 PM
    Expert6445 points

    This thread is being closed due to the time since the suggested answer was provided. The assumption is the answer was sufficient to resolve the posted question.

    Thanks and Regards,

    Chuck Davenport


    If this response answers your question, please indicate it by verifying the suggested answer when provided.

    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