This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Tiva Launchpad TM4C123 flash programming problem

Other Parts Discussed in Thread: EK-TM4C123GXL

Hello everyone,

I plan to use ARM MCU in my next application/project and I picked EK-TM4C123GXL board as a starting point. So far I've downloaded all document and software packages that are needed to work with and was able to get lab2 in the workshop package up and running. However, I've noticed something very unusual with my Launchpad board compared to the original condition from manufacturer.

If I loaded lab2 code and run it from the CCS Debugger, the Launchpad board worked just fine as it should even after I stopped the Debugger but still connected it to the computer USB port. However, if I did a hard reset or hardware reset, then the thing stopped working unless I start another Debugger section.

So I tried to program the board using LM flash programmer with lab2.bin file generated by CCS IDE. Everything went well with the flash programming process, but the Launchpad board still did nothing even after a hard reset. If I run the blank check on the LM flash programmer, it reported that the MCU is not blank. 

I've looked around to find the cause of this problem, but have not found anything yet. Did anyone experience the same problem or have any ideas what might cause the problem. Any inputs/suggestions are greatly appreciated. Thanks in advance and have a wonderful day.

Best Regards,

TLN 

  • Hello TLN,

    Does your CCS project have a cmd file. if yes, then check what is the APP Address programmed to. Please note that the reset vector must be at 0x0.

    If the file does not exist then that is a problem as well.

    Regards
    Amit
  • Hello Amit

    Yes, the project has cmd file. Here is the file:
    --retain=g_pfnVectors

    MEMORY
    {
    FLASH (RX) : origin = 0x00000000, length = 0x00040000
    SRAM (RWX) : origin = 0x20000000, length = 0x00008000
    }

    /* The following command line options are set as part of the CCS project. */
    /* If you are building using the command line, or for some reason want to */
    /* define them here, you can uncomment and modify these lines as needed. */
    /* If you are using CCS for building, it is probably better to make any such */
    /* modifications in your CCS project and leave this file alone. */
    /* */
    /* --heap_size=0 */
    /* --stack_size=256 */
    /* --library=rtsv7M4_T_le_eabi.lib */

    /* Section allocation in memory */

    SECTIONS
    {
    .intvecs: > 0x00000000
    .text : > FLASH
    .const : > FLASH
    .cinit : > FLASH
    .pinit : > FLASH
    .init_array : > FLASH

    .vtable : > 0x20000000
    .data : > SRAM
    .bss : > SRAM
    .sysmem : > SRAM
    .stack : > SRAM
    }

    __STACK_TOP = __stack + 512;

    BTW, what is the APP address? Thanks for a very promptly reply. :-)
  • Hello TLN,

    APP address is the same as the FLASH (it may be used in cmd files). When you download it via the debugger, can you check that the location 0x0 and 0x4 are programmed and do not have 0xFFFFFFFF in them?

    Regards
    Amit
  • Hi Amit,

    After programmed the board, I checked it against the original bin file and it was ok. There was no errors at all. I think there must be something with the setting of the IDE that I was not aware of. I'll dig into it again and see if I missed anything according to the workshop book. Thanks again for your assistance.
  • Hello TLN

    Sure. The issue that you did mention may primarily be because of a missing cmd file or incorrect intvecs address

    Regards
    Amit
  • Hello Amit,
    After reading/digging around, I think I found that the startup_ccs.c was missing in my project. Would it be the cause of my problem? Some members had claimed that CCS version 6 should fix this problem. For some unknown reasons version 5 didn't generate the startup file in my project, and If I copy the startup file from another project into the current one, I'll get some compiler error messages. Please advise. Thanks

    Best Regards,
    TLN
  • Hello TLN,

    Yes, it would be. You would need to copy one of the existing startup files to your poject

    Regards
    Amit