This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

why printf in embedded C?

i am using keil uvision 2.
plss tell me why we use printf in embedded c?
if its 4 debugging,HOW?
if its 4 serial commn/transmit characters to serial port,HOW?
plsssssssssssssss some1 help.........i searched everywere but i dint get answer..

Parents
  • We use it because we (or in this case you) have decided that it is better to use printf() than to use any other method for solving something.

    Different embedded projects has different needs. So what functions to use (or not use) is something you decide for each and every project. And also, what your needs are for debugging. Or if the device even have any interface that may receive the data from printf().

    So when giving the answer to the school assignment, you will yourself have to come up with advantages and disadvantages with printf() - and examples where it is good to use printf() and examples where it should be avoided.

Reply
  • We use it because we (or in this case you) have decided that it is better to use printf() than to use any other method for solving something.

    Different embedded projects has different needs. So what functions to use (or not use) is something you decide for each and every project. And also, what your needs are for debugging. Or if the device even have any interface that may receive the data from printf().

    So when giving the answer to the school assignment, you will yourself have to come up with advantages and disadvantages with printf() - and examples where it is good to use printf() and examples where it should be avoided.

Children
No data