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.

Cannot run any TivaWare example projects

Other Parts Discussed in Thread: TM4C129XNCZAD

I just got the TM4C129x dev kit yesterday. I was able to compile, link and debug the very basic project in the "C:\ti\TivaWare_C_Series-2.1.0.12573\examples\project" folder, which just toggles the state of an i/o bit.


However, when I try to run any of the example projects in the board-specific folder ("C:\ti\TivaWare_C_Series-2.1.0.12573\examples\boards\dk-tm4c129x") they compile and link fine, but when I try to run the debugger IAR hangs up with a "Programming flash memory" box that never goes away.

I am using the IAR tools(version 6.60.1.5104) on Windows 8 64-bit.

Any ideas what I might be doing wrong?

tivaware example project

  • BTW, the debug log info suggests that the code was loaded properly:

    Tue Apr 21, 2015 11:48:00: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\config\flashloader\TexasInstruments\FlashTC4.mac
    Tue Apr 21, 2015 11:48:00: JTAG Speed is set to: 500 kHz
    Tue Apr 21, 2015 11:48:00: JTAG IDCODE = 0x0BA00477
    Tue Apr 21, 2015 11:48:00: AHB-AP ID = 0x00000000
    Tue Apr 21, 2015 11:48:00: AHB-AP ROM = 0x00000000
    Tue Apr 21, 2015 11:48:00: ROM Component ID = 0x00000000
    Tue Apr 21, 2015 11:48:00: Device ID = 0x00000000 (Unknown)
    Tue Apr 21, 2015 11:48:00: Software reset was performed
    Tue Apr 21, 2015 11:48:00: Initial reset was performed
    Tue Apr 21, 2015 11:48:00: Turning off watchdog timers
    Tue Apr 21, 2015 11:48:00: 1024 bytes downloaded and verified (7.14 Kbytes/sec)
    Tue Apr 21, 2015 11:48:00: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench 6.5\arm\config\flashloader\TexasInstruments\FlashTC4_256KB.out
    Tue Apr 21, 2015 11:48:00: Target reset
    Tue Apr 21, 2015 11:50:26: Debug session aborted.

    The "Debug session aborted" is what was logged when I finally aborted the "Programming flash memory" dialog box.
  • I was finally able to debug the example projects by selecting Project>Debug without Downloading after aborting the "Programming..." dialog box. While it is quite annoying to have to do this every time, at least it allows me to move forward. If anyone has a suggestion how to actually fix the problem, though, I would be very appreciative!

  • Another tidbit of information. I noticed that the project that works specifies "TexasInstruments LM4F232H5BB" in  the General Options>Target>Device field. If I change the device type to that, then the problem goes away, even though the device is really a TM4C129XNCZAD.

  • It turns out the dev kit had a nearly 2-year-old version of the tools! I finally managed to fix this by downloading the latest version of the IAR tools (7.40). Now everything works fine.

  • Hello Dave,

    We have recommended removing the older version from the launchpads but it still a surprise why the drivers do not work.

    Regards
    Amit