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.

LM4F232 EVK ICDI debug

Hi

Have difficulty to use Stellaris ICDI to debug on LM4F232 EVK. It always complains one of the following:

Load "C:\\TI\\EKLM4F232\\boards\\ek-lm4f232\\blinky\\rvmdk\\blinky.AXF"
Connecting: Mode=JTAG, Speed=1000000Hz
Connection failed!, error code=&d


Load "C:\\TI\\EKLM4F232\\boards\\ek-lm4f232\\blinky\\rvmdk\\blinky.AXF"
Connecting: Mode=SWD, Speed=1000000Hz
Connection failed!, error code=&d

Does this EVK require JTAG to debug? Or I have got wrong settings with my KEIL uVision4 IDE?

Thanks,

-Hailin

  • Hi Halin,

    The error message that you have reported indicates that the debugger can not communicate with the ICDI interface on the EK-LM4F232 board. This could happen because of several reasons. Let's look at the most obvious ones first. If you still experience the problem, we will look at the other less likely ones thereafter.

    1) There is a POWER SELECT jumper on the EK-LM4F232 board. Make sure that the POWER SELECT jumper is connected at ICDI position instead of the OTG position.

    2) There are two USB connectors, J8 (mini USB) and J2 (micro USB), on the EK-LM4F232 board.  Please use type-A-male to type-B-male USB cable to connect J8 to the computer's USB.

    3) The EK-LM4F232 board should power on. When EK-LM4F232 is connected to the computer for the first time via ICDI port, Windows New Hardware Found wizard will appear. The wizard will prompt you to install drivers for:


    a) Stellaris Virtual Serial Port
    b) Stellaris ICDI DFU Device
    c) Stellaris JTAG/SWD Device

    Above drivers (collectively known as Stellaris ICDI drivers) can be downloaded from http://www.ti.com/tool/stellaris_icdi_drivers Upon successful installation, the drivers will be listed in Windows ® Device Manager.

    4) Open an example project like "hello" from StellarisWare using Keil uVision, build it, and program the binary file in to the flash of the MCU.

    If you can successfully program the flash, you should be able to use Stellaris ICDI to debug your code. Please let me know how that works.

    Note: I found a similar thread from you here: http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/471/t/178870.aspx

  • Hi Ashish

    According to the steps,

    1) That is at ICDI position.

    2) J8 is used.

    3) I have downloaded the drivers and update all of them.

    4) When I open the uVision, I can't download the program, no debugging at all and same complaint. But I can download the code with TI LM Flash Progammer.

    The other thread is because I tried to attached several captures for the uVision settings.

    Any idea?

    -Thanks,

    -Hailin

  • Hi Halin,

    Good, thanks for performing those basis tests. Your results confirm that there is a good connection between your computer and your evaluation board.

    Are you using the latest version of Keil uVision? The older version of Keil uVision will probably not allow you to connect to Stellaris M4F devices. Would you please update your Keil uVision to 4.22a and test again?

     

  • Hi Ashish

    The version 4.22a works like a breeze after upgrading.

    Thank you,

    -Hailin