• 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 » Is there any F035 Flash API sample code?
Share
Hercules™ Safety Microcontrollers
  • Forum
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

Is there any F035 Flash API sample code?

This question has suggested answer(s)
Zuyuan Li
Posted by Zuyuan Li
on Feb 26 2012 08:26 AM
Prodigy150 points

i would like to develop a bootloader for TMS470MF066. Is there any sample code which uses F035 Flash API? If my bootloader code is running in Bank 0 Sector 0, can i flash other sectors within Bank0 or the bootloader code must run in RAM? 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 09:05 AM
    Expert5255 points

    Hello Zuyuan,

    I have forwarded your request to one of our Flash API experts.  In case you were not already aware, we have an example bootloader for TMS570 that uses the F021 API and SPI.  This may be a starting point for you as the code is modular and replacing the FlashAPI and/or the SPI driver should be straight forward.  Let me know if you are interested in this code.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • John Hall
    Posted by John Hall
    on Feb 27 2012 09:19 AM
    Suggested Answer
    Expert5235 points

    Hello Zuyuan,

    There is only one document I know of that shows example code using the Platform F035a Flash API, but it is written towards the TMS570LS20xxx/10xxx devices though it is still useful for the TMS470M devices.  http://www.ti.com/mcu/docs/litabsmultiplefilelist.tsp?sectionId=96&tabId=1502&literatureNumber=spna117a&docCategoryId=1&familyId=1870

    For your use case you presented, you will need to execute the code from RAM.

    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.
  • Zuyuan Li
    Posted by Zuyuan Li
    on Feb 27 2012 20:11 PM
    Prodigy150 points

    Dear Mr. Fortman,

    Thank you very much! It would be very helpful for me to develop my code. 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Zuyuan Li
    Posted by Zuyuan Li
    on Feb 27 2012 20:24 PM
    Prodigy150 points

    Hello John,

    Thank you for your answer! I have more questions: During the programming, I need to record some registration data in sector 1 of bank 0. After programming this sector, can I call Fapi_HardwareCalculateEcc() to get the ECC code for this sector and then program the ECC code to corresponding area? I read a doc, it says On Cortex-R4 in non strongly order Flash memory, the incorrect ECC may be returned. It seems for TMS470MF no such problem. Could you please give me more info. Thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • John Hall
    Posted by John Hall
    on Feb 28 2012 06:06 AM
    Expert5235 points

    Hello Zuyuan,

    The current version of the API, the Fapi_HardwareCalculateEcc() only works on Cortex R4 devices.  The next release of the API, this will be corrected and also work on Cortex M3 devices.  This new version should be released within the next 2 weeks.

    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.
  • Zuyuan Li
    Posted by Zuyuan Li
    on Feb 28 2012 20:09 PM
    Prodigy150 points

    Hello John,

    Thank you very much for your help. I don't know whether the ECC calculate algorithm is available or not. If we can get the algorithm code ( i.e. C code ), we can implement it in our PC program. In this way we can dynamically update register data and calculate ECC code before we download it to MCU. Could you please give me some suggestion? Thanks a lot!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shelford Zhu
    Posted by Shelford Zhu
    on Jul 04 2012 03:08 AM
    Intellectual1040 points

    Hi john,

        I also want to know whether TI's customer can get the ECC calculation algorithm. I need your reply, thanks a lot!

    Regards,

      Shelford

    flash ecc issue
    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