• 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 » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » using flash for data storage (as EEPROM)
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS
Helpful Stellaris® LM4F Series Links
  • LM4F Series
  • Stellaris PinMux Utility
  • Stellaris® LM4F120 LaunchPad
  • LM4F MCU Applications
  • LM4F MCU Video
  • ARM Cortex-M4F Whitepaper
  • Stellaris MCU Brochure
  • LM4F232 Eval Kit
  • Forums

    using flash for data storage (as EEPROM)

    • Pallavaggarwal
      Posted by Pallavaggarwal
      on Dec 25 2006 11:19 AM
      Prodigy130 points
      How to read flash?nothing found on reading either on datasheet nor on device driver pdf
      FMA is 32bit register but has only 15bits(0-14 and writable) so in LMS811 64k memory access how to write the address..... ?

      if i have programed a word on alocation and if want to reprogramm that location with different data whether i have erase that block first to reprogramm?

      Please help as soon as possible
      thanks and regards
      pallav aggarwal
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TI - Eric Hewing
      Posted by TI - Eric Hewing
      on Dec 27 2006 10:13 AM
      Expert4160 points
      I have replied to the support request you created.

      For anyone else wondering, you can read any flash location just as you read SRAM or any other memory mapped area.

      You can also use the FMA register to look at the contents of the flash. There are only 15 bits because 64k represents addresses 0-0xFFFF.
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Pallavaggarwal
      Posted by Pallavaggarwal
      on Dec 27 2006 10:54 AM
      Prodigy130 points
      thanks for you reply
      to represent 0xFFFF address i think we need 16bits and not 15bits please correct me if i am wrong.

      also please tell me how to access flash memory
      tell me if i want to read memory location 0x0000FC00

      also tell me if we have to erase the block every time if we want to reprogram some bytes stored..

      Again thankyou very much

      Pallav Aggarwal
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TI - Eric Hewing
      Posted by TI - Eric Hewing
      on Dec 27 2006 11:15 AM
      Expert4160 points
      Oops, you're correct - we do need 16 bits. It's been a long 3 day vacation :)

      Looking at the documentation, the FMA does have 16 bits to represent the address offset, so I don't see where you're getting the 15 bits from. Try downloading the latest datasheet.

      To read any memory, the following will work (this is the HWREG macro in DriverLib):

      data = (*((volatile unsigned long *)(x))), where x is the address you want to read.
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Pallavaggarwal
      Posted by Pallavaggarwal
      on Dec 27 2006 11:19 AM
      Prodigy130 points
      thanks a lot let me check if this solves my prob i will tell u soon..

      Thanks and Regards
      Pallav Aggarwal
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Pallavaggarwal
      Posted by Pallavaggarwal
      on Dec 27 2006 11:35 AM
      Prodigy130 points
      hey dear u please see in datasheet..101 page in FMA...16bit is white but written RO(readonly i think)...
      this is what is latest on website.i downloaded right now.

      i had older that has 16thbit in orange and RO written too....please help what the hell it is?

      Reagards
      Pallav Aggarwal
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TI - Eric Hewing
      Posted by TI - Eric Hewing
      on Dec 27 2006 11:40 AM
      Expert4160 points
      It should be R/W. It's a typo.
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Pallavaggarwal
      Posted by Pallavaggarwal
      on Dec 27 2006 11:42 AM
      Prodigy130 points
      thanks for nice help
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Pallavaggarwal
      Posted by Pallavaggarwal
      on Dec 28 2006 03:47 AM
      Prodigy130 points
      Solved my problem thanks
      is there any way to program few bytes at the time of programming flash....suppose i have to programm a new code to chip but the datastorage flash space(i have use 0x0000fc00-8bytes) will be eraased so is there any way to programm this portion while downloading the progamm to chip..

      Thanks & Regards
      Pallav Aggarwal
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • igorp
      Posted by igorp
      on Dec 28 2006 15:25 PM
      Intellectual370 points
      Never the less there is an arror in documentation. The datasheet of LM3S811 says in page 37, Table 3-1 (mine is from October, 8) that on-chip flash is from 0x0000 to 0x 7FFF.

      Regards

      Igor
      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