Discussion in "General help Guidance and Discussion" started by    prajwalsnh    Jun 29, 2015.
Mon Jun 29 2015, 09:09 pm
#1
Hello everyone,
I wanted to know the basics of debugging in embedded systems. How it can be done. What are the types of debugging. In keil there is a debugger built in. Also wen searched in web I found JTAG is widely used for debugging in embedded system. What is JTAG? What's the difference between debugging in keil and JTAG? Also there are various debuggers on eshops. Which one to purchase and how to learn debugging.Please need a elaborated answer for these questions. As I don't know abcd of debugging.
Tue Jun 30 2015, 11:08 pm
#2
Debugging is the process of finding out why your program doesn't work

There is special hardware to let you see what is going in inside
the micro, this will help you see what is wrong.

This hardware is often expensive and will probably only confuse you more.
most people don't use it.

The best way to debug is in short steps.
Suppose your program to flash an LED using a timer does nothing.

Debug by writing code to just turn a LED on..
this tests the LED , the micro and the programmer.
Next write code to turn a LED on , then delay then off.

If it works you can move on to test the rest of the code bit by bit.


[ Edited Tue Jun 30 2015, 11:12 pm ]
Wed Jul 01 2015, 10:47 am
#3
@ExperimenterUK

Thank you for your simple and useful explanation 😊 But in a product development there will be thousands of lines of codes i believe. How will the debugging done in that case? I mean in any company how will this be done?
Mon Jul 13 2015, 03:26 pm
#4
I think the biggest code in embedded world today is Linux and for debugging Linux I use printk, so you can use printf or something you can print on uart.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Astorne
Tue Apr 16 2024, 08:52 pm
Williamjaf
Tue Apr 16 2024, 12:25 pm
best_yyPa
Tue Apr 16 2024, 09:42 am
ErnestoExpop
Tue Apr 16 2024, 02:57 am
Jamesclepe
Mon Apr 15 2024, 11:10 am
Aliciaelora
Mon Apr 15 2024, 07:59 am
btaletvpcu
Mon Apr 15 2024, 04:36 am
UbvpwcTib
Mon Apr 15 2024, 03:13 am