• 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 » Low Power RF & Wireless Connectivity » Low Power RF Proprietary Software & SimpliciTI Forum » Example for writing to FLASH on the cc1110, cc2510 or cc2430
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Example for writing to FLASH on the cc1110, cc2510 or cc2430

Example for writing to FLASH on the cc1110, cc2510 or cc2430

This question has suggested answer(s)
chuckwagon
Posted by chuckwagon
on Mar 25 2009 17:20 PM
Intellectual1690 points

Hi,

Has anyone put together an example piece of code that erases and writes the FLASH for any of the SoC devices, cc2510, cc1110 or cc2430?

thanks in advance,

Chuck

example Flash
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Kjetil
    Posted by Kjetil
    on Mar 26 2009 14:57 PM
    Suggested Answer
    Genius17705 points

    Hi.

    Have a look at the Basic Software Examples for the CC1110 and CC2510 here:
    http://focus.ti.com/docs/prod/folders/print/cc2510f32.html#toolssoftware

    Contains example codes for writing the flash using both DMA and CPU. Should be rather easy to port to the CC2430 as well, just keep in mind the Flash timings.

    Kjetil

    --
    PS. Thank you for clicking  Verify Answer  if this answered your question!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • rahul deo
    Posted by rahul deo
    on Apr 24 2012 05:36 AM
    Intellectual750 points

    The cpu example without modifying if downloaded to the CC1110 (26MHz Osc).

    The FWT = 0x11; which is here observing :

    datasheet CC1110 : Page no 88 of 244 : 12.3.5 Flash Write Timing:

    FWT = (21000*F)/(16*10⁹) = 21 x 26 / 16 = 0x22. Where F is 26MHz Osc frequency.

    but

    "The initial value held in FWT.FWT[5:0] after a reset is 0x11, which corresponds to 13 MHz system clock frequency ( calibrated HSRCOSC frequency for CC1110Fx when using a 26 MHz XOSC )."

    Makes me confused for 0x11. Neither 0x22 nor 0x11 work here. However It should not be 0x22. Because the Osc frequency is itself 26MHz so the clock can be the half of the Osc frequency at max. Hence 0x11 seems the number.

    FWT = (21000*F)/(16*10⁹) = 21 x 13 / 16 = 0x11.

    But not working.

    What could be the reason?

    CC1110 flash FWT
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Firefighter
    Posted by Firefighter
    on Apr 24 2012 13:49 PM
    Suggested Answer
    Expert5430 points

    What are you trying to do, write data to flash? Writing data to flash with the CPU can not be done while executing code from flash, so the function that writes to flash must be copied to RAM and executed from there. Please see:

    http://e2e.ti.com/support/low_power_rf/f/156/p/181715/659829.aspx#659829

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • rahul deo
    Posted by rahul deo
    on Apr 24 2012 17:23 PM
    Intellectual750 points

    Dear Firefighter,

    Thanks for your answer. As I've mentioned that I did not change the cpu flash code example. Just ran to check its output. I could not find the change in memory section of the IAR IDE. Where to look for change in flash memory in the IDE itself in debug mode?

    Or I might be doing something wrong. I want to save some data into a non-volatile memory of CC1110 and retain its values in power cycles. I want to do both read and write. Post which I'll do it with DMA.

    Thanks

    CC1110 "save data and retain during power cycle"
    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