• 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 » Cannot Write to Target Cortex_M3
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
  • Cannot Write to Target Cortex_M3

    Cannot Write to Target Cortex_M3

    This question is answered
    Paul 50485
    Posted by Paul 50485
    on Jul 28 2010 17:19 PM
    Expert1705 points

    I am attempting to load Flash onto a LM3S2B93 on my target board. I receive the following error- 

    CORTEX_M3_0: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x5e8 

    I modified a working project that was programming an Eval board RDK-IDM-SBC. I changed the GEL file and ARM target in the project from LM3S9B92 to the new processor LM3S2B93. The target board is running on a 8Meg oscillator. The Eval board used a 16Meg crystal. Is the clock the problem?

    Thanks

    Paul

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Paul 50485
      Posted by Paul 50485
      on Jul 28 2010 17:36 PM
      Expert1705 points

      I am using an LM3S811 as my JTAG emulator

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Eric Vanwyk
      Posted by Eric Vanwyk
      on Jul 28 2010 17:38 PM
      Intellectual1980 points

      Paul -

      Please identify the revision of the silicon you are working with, and read the associated errata fully.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul 50485
      Posted by Paul 50485
      on Jul 28 2010 17:43 PM
      Expert1705 points

      How do I determine the "revision of the silicon" What section of the chip part number identifies revision?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul 50485
      Posted by Paul 50485
      on Jul 28 2010 18:13 PM
      Expert1705 points

      LM3S2B93

      IQC80C1PA

      $A-01P091H

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Eric Vanwyk
      Posted by Eric Vanwyk
      on Jul 28 2010 18:19 PM
      Intellectual1980 points

      You have a C1.  Please review the errata for C1.

       

      Section 2 of http://focus.ti.com/lit/er/spmz442e/spmz442e.pdf

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul 50485
      Posted by Paul 50485
      on Jul 29 2010 14:25 PM
      Expert1705 points

      Hi,

       

      I am still getting the same error when I try to load a program. Any ideas?

       

      CORTEX_M3_0: Flash Programmer: Error while writing to Flash memory

      CORTEX_M3_0: Trouble Writing Memory Block at 0x1000 on Page 0 of Length 0x5f0 

      Cannot write to target

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul 50485
      Posted by Paul 50485
      on Jul 29 2010 15:31 PM
      Expert1705 points

      I assume that that loading the GEL file lm3s9b96.gel is okay for a LM3S2B93?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul 50485
      Posted by Paul 50485
      on Jul 29 2010 15:40 PM
      Expert1705 points

      When I try to read memory at 0x40004000 I get the following error

       

      CORTEX_M3_0: Trouble Reading Memory Block at 0x40004000 on Page 0 of Length 0x14: Debug Port error occurred.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul 50485
      Posted by Paul 50485
      on Jul 29 2010 15:45 PM
      Expert1705 points

      When I try to read memory at 0x20000000 It works. I can also modify RAM

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TI Alex
      Posted by TI Alex
      on Jul 30 2010 13:16 PM
      Expert8210 points

      Just to get on the same page as you confirm the following:

       

      1) Your using LMFLASH as your software programmer

      2) You’re using the 811 as the JTAG programmer for the RDK-IDM-SBC

       

      If the above is correct, are you seeing the DEBUG_OUT LED on the 811 illuminate when you try to program the SBC?

       

      -Alex

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul 50485
      Posted by Paul 50485
      on Jul 30 2010 13:21 PM
      Expert1705 points

      I am using 811 for both. What is LMFLASH? Is this software in CC4?

       

      ..1) Your using LMFLASH as your software programmer

      ..2) You’re using the 811 as the JTAG programmer for the RDK-IDM-SBC

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TI Alex
      Posted by TI Alex
      on Jul 30 2010 13:32 PM
      Expert8210 points

      The LMFLASH utility is a simple software GUI that TI gives out for free.

      It's a basic flash programmer that allows you to load binary's into memory, read out memory, ect.. when using Stellaris parts.

      Here is the link:

      http://focus.ti.com/mcu/docs/mcuorphan.tsp?contentId=87903

      It's called: "LMFlashProgrammer-1144"

      I would give it a try. One thing to remember is that the XTAL setting is always for the target board, not for the EK you're using to program the target (so for your case, set the XTAL value to the one present on the SBC).

       

      -Alex

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul 50485
      Posted by Paul 50485
      on Jul 30 2010 13:40 PM
      Expert1705 points

      It is possible to run this from CC4?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Paul 50485
      Posted by Paul 50485
      on Jul 30 2010 13:48 PM
      Expert1705 points

      Is Stellaris ARM flash programming integrated into CC4? If not is there a way to load this into CC4? 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TI Alex
      Posted by TI Alex
      on Jul 30 2010 14:01 PM
      Expert8210 points

      Please do not post the same question multiple times. It will NOT make us respond faster.

      And no, LMFLASH is a seperate tool and will not / should not be integrated into CCS4.

      Try the GUI as is, loading simple binary files onto the SBC. This will help us find your problem.

      -Alex

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    123
    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