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.

Unable to Run from FLASH without CCS 5.4 in Debug Mode

Other Parts Discussed in Thread: TM4C123GH6PGE, UNIFLASH

Hello,

I have a new problem which appeared after I updated from CCS 5.3 to CCS 5.4.

I'm using a Tiva TM4C123GH6PGE (aka Stellaris LM4F232H5QD) on a custom board using an XDS100v2 ARM (10-pin) JTAG emulator and CCS 5.4.

My development was moving along just fine until I updated CCS to 5.4 ( Version: 5.4.0.00091 ).  The problem that I am now experiencing is that I can't run my programs without using CCS with Debug and the JTAG emulator.  In other words, I can program the Flash (using Debug, Run, Terminate, etc.) and my program continues to run when I halt (Terminate), but if I power cycle my board - my program does not start.

Prior to updating to CCS 5.4 (I believe I was running CCS 5.3), all was working as expected.  In fact, I have a number of these boards being used.  Now it's possible that I may have changed something in the process, but I believe this symptom is simply the result of just updating CCS.  Unfortunately, as I'm using CCS actively for my development I did not discover this problem until I attempted to deliver my latest change.

Like I said, everything works as expected until I power cycle the board. I'm stumped.

Is there some 'property' in CCS that would prevent the processor from executing from Flash after a power-on reset?

Thank you,

Kevin Taberski

  • Kevin,

    Kevin Taberski said:
    I have a new problem which appeared after I updated from CCS 5.3 to CCS 5.4.

    Did you do the update from within CCS or did you do a separate new install of CCS 5.4?

    I can't think of anything that would cause the program to not run from Flash when power cycled, especially if all that changed was an update from 5.3 to 5.4.
    The update process from within CCS has had a few glitches but I still wouldn't think that would cause this type of an issue.

    One recommendation would be to try programming the part using a standalone programmer such as LM Flash programmer or Uniflash and see if that allows the program to run when power-cycled. That could help identify if the issue lies in the tools or somewhere else.

     

  • Sorry for the slow response - I was expecting an e-mail alert which I did not receive.

    This was a new install of 5.4.

    I can't use the LM Flash programmer - as it does not support the XDS100v2 (at least hat I'm aware of).  I will take a look at Uniflash.

    Thank you,

    Kevin Taberski

  • I'm still trying to tackle this problem.  I have some additional information.

    On my laptop PC (running XP), I uninstalled CCSV5, downloaded and installed a fresh version.  Using the TI v5.04 compiler, I can compile and run on my target using the XDS100v2 emulator, but if I power cycle the board my program does not start.

    On my desktop PC (running Windows 7 Ultimate 64-bit - ift it matters), I get exactly the same results when I use the TI v5.04 compiler, but if I use either the TI v4.97 or TI v4.98 compilers it works as expected?  So I seem to be having a problem with upgrading to the TI v5.04 compiler.  Perhaps I missed a step when I moved from TI v4.9x to TI 5.0x.

    Any thoughts?

    Thank you,

    Kevin Taberski

  • Kevin Taberski said:

    On my desktop PC (running Windows 7 Ultimate 64-bit - ift it matters), I get exactly the same results when I use the TI v5.04 compiler, but if I use either the TI v4.97 or TI v4.98 compilers it works as expected?  So I seem to be having a problem with upgrading to the TI v5.04 compiler.  Perhaps I missed a step when I moved from TI v4.9x to TI 5.0x.

    Any thoughts?

    Is this desktop PC running CCS 5.4? Are you building using the same version of CCS but just adjusting the compiler version between 5.0.4 and 4.9.7?

    If yes, then the issue has likely been narrowed down to the compiler version being used for the build. The next step would be to take a closer look at why the program does not run correctly with 5.0.4 compiler tools. You may have to take a closer look by comparing the link map files for the two builds (such as exactly  where the code is being allocated in Flash) or compare the code generated for the two cases. If I understand correctly, the code built with 5.0.4 compiler still runs correctly when loaded and run from CCS, just not when run stand-alone after power up. Is that correct?

  • I don't think I have your answer.... but I had a similar problem.  We could flash and run the code from CCS but on power cycle of the board the application would not run.  We were missing the startup_ccs.c file.  Once we put in a startup_ccs.c everything worked as expected.

  • My apologies for the incredibly slow reply.  I thought I had the E2E forums set to e-mail any replies, but for some reason I was not alerted to your response.

    To answer your question - yes: I am running Version 5.4.0.00091 of CCS on my Desktop/Workstation (and the same version on my laptop) and adjusting compiler versions between 5.04 and 4.9.7 (or 4.9.8). 

    I originally started this project under a previous version of CCS on my Workstation then needed to install CCS on my laptop.  This is where the problem began as I now had the newer version of CCS on my laptop (along with the newer 5.04 compiler).  In my attempt to rectify this problem, I updated CCS on my Workstation to 5.4 and that's when I discovered that the compiler versions are a factor.  I'm willing to install a pre 5.04 version of the compiler on my laptop, but I can't find it to download and it's not clear to me if I can copy the compiler from one PC to the other (to further complicate matters my Workstation is running Windows 7 64-bit and my laptop uses Windows XP 32-bit).

    Preferably, I'd rather get everything working on a more current release, so I will take your suggestion and study the link map files.  Any insight as to what to look for?  What chages (if any) need to be made when moving from compiler version 4.9.7 (or 4.9.x) to 5.0.4?

    Thank you,

    Kevin Taberski

  • Andrew,

    Thank you for your input.  I've had a startup_ccs.c file all along as it contains all of my interrupt vectors.  The problem seems to be related to updating the compiler.  I'll keep digging.

    Kevin

  • Hello,

    I went ahead and copied the arm_4.9.7 compiler from the Workstation to my laptop and that "seems" to have temporarily solved this problem (i.e. I can now power cycle my board and it still runs from Flash).

    So, for some reason, I can't compile this design under the v5.04 compiler and have the board still run from flash after a power cycle (it runs fine from the debugger using an XDS 100v2 emulator).  I don't see the the differences in the link map files that would cause this.

    I've provided both .map files in the following .zip file.

    5466.ccs_code_maps.zip

    Can someone provide some insight as to what files of examine (if other than *.map) and what to look for?

    Thank you,

    Kevin Taberski

  • Andrew I too have the same problem. I am using CCS 7 and have tried 6.2 as well. The firmware runs once debugged but on recycling power it does not run from flash.

    That you succeeded in running it from flash  by putting in start _up CCS.c , may I request to enlighten me how and where did you put this in the code? I am a novice in CCS so your elaborate reply would be helpful.

    Cheers,

    Jayant Arora