0
\$\begingroup\$

The board was working fine but all of the sudden I can't download any code on it from Keil. Whenever I try to download code on the board, I get

"Could not find Cortex-M device in the JTAG chain! Please check the JTAG cable and connection devices"

I tried a couple of different cables but didn't work. What can be causing the problem?

\$\endgroup\$
1
\$\begingroup\$

This is the suggestion from the Keil website:

No Cortex-M Device found in JTAG chain No Cortex-M processor-based device detected (using JTAG). Device is not connected, not powered, or the debug interface is not working. Enable the SWJ switch in the ULINK USB-JTAG/SWD Adapter section of the Target Driver Setup - Debug dialog.

Check you have power to the device, power cycle the probe, check the probe settings. If the target is crashed, its possible that you'd see this. Try lowering the JTAG frequency. Check the probe has a correct target voltage connection.

The Keil forums might have some more iseas you can try.

\$\endgroup\$
  • \$\begingroup\$ Thanks for answering! Can you please tell me how to "Enable the SWJ switch in the ULINK USB-JTAG/SWD Adapter section of the Target Driver Setup - Debug dialog."? \$\endgroup\$ – Mahmoud Khaled Oct 29 '16 at 6:24
  • \$\begingroup\$ Start here, and read the Keil documentation keil.com/support/man/docs/ulink2/ulink2_ctx_jtag_adapter.htm If you ask in the Keil forums, youu'll find people more familiar with these tools. \$\endgroup\$ – Sean Houlihane Oct 29 '16 at 9:41
1
\$\begingroup\$

Had the same issue. Tried various proposed solutions, in the end what worked for me was the solution proposed by splatapus on the TI page below: https://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/456894

For me and for the gentleman proposing that solution, it was a Windows registry issue, hence I only had to do the first step using the link provided in that answer, see: http://users.ece.utexas.edu/~valvano/Volume1/Window8KeilDebuggerFix.htm

\$\endgroup\$
1
\$\begingroup\$

I resolved the issue after I installed the Stellaris ICDI drivers:

Tiva™ C Series evaluation and reference design kits provide an integrated In-Circuit Debug Interface (ICDI) which allows programming and debugging of the onboard C Series microcontroller. The ICDI can be used with the LM Flash Programmer as well as any of the Tiva-supported toolchains such as Texas Instruments’ Code Composer Studio. Only JTAG is supported. To use the ICDI, follow the instructions in the Quick Start document (literature number SPMU287) on this page to install the appropriate drivers on the host computer.

\$\endgroup\$
1
\$\begingroup\$

in case you dont have drivers yet on devices.

solved the problem with this error.

http://www.ti.com/tool/STELLARIS_ICDI_DRIVERS

\$\endgroup\$
1
\$\begingroup\$

I faced the same issue and after breaking my head for a couple of days finally found the solution.

My PC os was Windows 10 and I had the tiva c 123GH6PM board connected to it.

  1. Go to Device manager and disable all the drivers for the device.
  2. You will find the drivers Under the PORTS TAB

image of windows menu

  1. Plugin the device now and the drivers are installed automatically,otherwise download the drivers and install them.

  2. Reboot your PC , clear out the temp files

  3. Plugin the device now , it works .Try a basic LED blink program for testing.

\$\endgroup\$
0
\$\begingroup\$

Solved:

In periperipheral settings under debug->settings please select connect under reset, reset after connect this will solve issues.enter image description here

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.