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.
hi all,
i am using keil as IDE. i want programmer for programming tm4c129 and tm4c123.i am using tiva launch pad for programming my kit.But problem is that when i try to program my kit (tm4c129) from tiva launch pad some time it works and some time it fail.
It gives error as unable to initialise target.After to many attempts programming is done.
When i try to program it with tiva launch pad ,after some percent of downloding it hangs and show error unable to initialise target.
thanks,
Dhanush
Hello Dhanush,
It is unclear as to you are using Keil to program or LMFlashProgrammer to program.
Also it is unclear whether you are using TM4C123 LaunchPad as a debugger for the TM4C129?
If you can draw how the debugger is connected to your board then it would be useful.
Regards
Amit
hii Amit,
I am using LM FLASH Programmer for programming not keil. Yes i am using TM4C123 LaunchPad programming.
For connecting JTAG I am using
my kit -> launch pad
TCK- >TCK
TMS ->TMS
TDI ->TDI
TDO- >TDO
GND- >GND
Regards,
Dhanush
Hello Dhanush,
Are you sure that the connectors between the two boards are well soldered down and the JTAG Pull Up's are OK. Secondly on the TM4C123 Launch Pad which you are using as a debugger, is the main MCU shut down by removing the VDD Header between H24 and H25.
Regards
Amit
Hi Amit,
Yes Amit JTAG connectors are correct and JTAG pull ups are also OK.
I am using window 8 and EK-TM4C123GXL launch pad as debugger.
When i try to program my kit with this lauchpad many times it shows unable to initialise target.Some times during programming it hangs up and show error as "Programming Error 0x1".
Hello Dhanush
What about
"Secondly on the TM4C123 Launch Pad which you are using as a debugger, is the main MCU shut down by removing the VDD Header between H24 and H25."
Can you snapshot the boards and attach it?
Regards
Amit
Hello Dhanush,
1. The TM4C123 board looks OK.
2. Did you try using LMFlashProgrammer version 1613?
3. If even after step-2 it does not work then the following things you would need to check
a> Is the VDDC on TM4C129 at 1.2V
b> Is the RST_N held high
c> Is the external oscillator soldered down, and if not are the oscillator pads connected to GND
d> Take a scope plot of what is happening on JTAG Lines at TM4C129 side.
Regards
Amit
hi Amit ,
I have already checked this things except scope plot of JTAG. When i am using LUMINARY LM3S3748 EVB board every thing is working fine,without hanging i am able to program my kit many times without any error.
I am using 47K ohm pull up at JTAG is it right selection?
Regards,
Dhanush
Hello Dhanush,
Now that is a vital information. LM3S3748 EVB as a debugger works fine but not EK-TM4C123GXL. The Pull Up that I normally use on JTAG is 10K. I think we need to see the JTAG lines on a scope to understand what is happening.
Regards
Amit
hi Amit,
I have found this link ,is this related to my problem.But that solution is also not working.
http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/243551.aspx
Please tell me how to check JTAG lines on scope.
Regards,
Dhanush
Hello Dhanush,
Connect the scope probes to the JTAG Lines while the JTAG from the TM4C123 is connected to the TM4C129. Then see if the TCK toggles like a clock with TMS and TDI toggling at a lower rate and TDO toggling after the TDI toggles.
What is important is that TMS and TDI must be stable at the rising edge of TCK
Regards
Amit