Discussion in "General help Guidance and Discussion" started by    prajwalsnh    Jun 29, 2015.
Mon Jun 29 2015, 03:39 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, 05:38 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, 05:42 PM ]
Wed Jul 01 2015, 05:17 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, 09:56 AM
#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

Conversation

Thu Nov 21 2019, 02:15 PM
raj2555
how to interface 8051 microcontroller with NRF24L01+ module
ExperimenterUK
Sun Oct 13 2019, 12:08 AM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 12:03 PM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 09:22 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 10:33 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 08:54 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 06:18 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 02:32 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 07:58 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.
ExperimenterUK
Thu Jul 11 2019, 09:40 PM
@ramos https://www.theengineeringprojects.com/2017/09/l298-motor-driver-library-proteus.html

Downloads

Comments

Istika
Thu Dec 12 2019, 12:04 PM
nabiha_anaya
Sun Dec 08 2019, 09:16 AM
ananyagupta
Tue Dec 03 2019, 07:53 AM
wells
Mon Nov 25 2019, 08:25 PM
auwal
Tue Nov 19 2019, 03:13 PM
ANKITPATEL
Mon Nov 18 2019, 11:00 AM
Casmir
Wed Nov 13 2019, 06:25 AM
DeepakBGattani
Mon Nov 11 2019, 01:31 PM

Online

Guests: 43, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38109
Newest member: Istika
Forum Activity
ilylily07 Avatar
Posted By ilylily07
Thu Dec 12 2019, 02:26 PM
wil do.thank you for your advice!
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Dec 12 2019, 07:13 AM
Something like this ?https://www.bing.com/videos/s...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Dec 12 2019, 06:58 AM
The layout is a bit different, but it is the same ...
ilylily07 Avatar
Posted By ilylily07
Thu Dec 12 2019, 04:38 AM
https://i.imgur.com/6S5FcwF.png right now im follo...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Dec 10 2019, 04:49 PM
ilylily07 Avatar
Posted By ilylily07
Sun Dec 08 2019, 01:24 PM
Hi .im humbly ask for your advice as i wrongly pur...
nabiha_anaya Avatar
Posted By nabiha_anaya
Sun Dec 08 2019, 09:19 AM
My teacher assign me a project on "voice control h...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Nov 29 2019, 04:24 AM
" Is it possible to interface a fingerprint scanne...
ilylily07 Avatar
Posted By ilylily07
Thu Nov 28 2019, 03:50 PM
You will not find any code for an 8051 as no one w...
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 26 2019, 05:44 PM
You will not find any code for an 8051 as no one w...