It is possible to run code on a Stellaris device that causes the device to lose JTAG communication. The two most common causes are:
If you accidentally do either of these things, you can restore communication with your target device by running the Debug Port Unlock utility in LMFlash Programmer as shown below. Select the appropriate product class for your device. If you don't know the class for your device, you can find it by reading the Device Identification 0 (DID0) register at address 0x400F.E000. Then click on the "Unlock" button.
On Tempest- and Firestorm-class devices, the MAC address is erased by the Debug Port Unlock utility, so be sure to write down the number before running the utility.
For further advice on bringing up a board with JTAG, see this post from cb1.
I use a XDS 100v2 JATG emulator to connect the board. The emulator is made by Blackhawk. It has a cTI 20-pin header.
I ues a 20e_cTi-20t_ARM pin converter to connect it to a MDL-ADA210-pin to 20-pin JTAG adapter module, and then connect to Board.
The configuration is shown as below:
You cannot use the XDS100 with LMFlash programmer. You need to use another Stellaris evaluation board to do a debug port unlock sequence.
Could you recommend me what kind of Evakuation board that is duitable for that application ?
Any one will work, except for the EK-LM4F232 board. The EK-LM3S811 is the cheapest at around $50.
Is it suitable for febuging and programming LM3s9B92 based applications?
Yes it is, Alex.
I have the EKS-LM3S811. And I tried to unlock the board, but it shows an error: unable to initialize target -1! as shown below:
Could you please tell me what cause the problem. and how to solve it?
I'm sorry for the delay in responding - I was on vacation. What is your configuration on the front tab? You have to configure for the target (use EK-LM3S9B92), not the emulator.
Yes, I used LM3SB92 Evaluation Board as the target in confiuration.
I'm sorry this is causing you so much trouble! Did you carefully follow the directions in the "Using the In-Circuit Debugger Interface" section in the EK-LM3S811 User's Guide? Are you using the MDL-ADA2 to connect the 20-pin JTAG connector to the 10-pin JTAG connector? As stated in the User's Guide, it is important that even pins 4-20 must be connected to ground.
I did everything as per User's guide.
Here is the photo of my connection:
Here is the connection.
It appears you are doing everything correctly. A couple of questions for you:
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.