VxWorks 7: kprintf Debug Function

Learn how to use kprintf to debug boot issues.

Limited availability | See below

rate limit

Code not recognized.

About this course

The kprintf() API is a lightweight logging mechanism that is useful for debugging target boot problems. You will see how to enable this, and what issues arise when using it to troubleshoot problems during the VxWorks boot timeline. While kprintf() usually outputs to a serial device, it can be redirected to other target hardware devices too. The lab will allow you use kprintf() yourself.

Product: VxWorks 7
Based on: SR540
Applicable for: All VxWorks 7

Learning Objectives

While a debugger is preferred when debugging embedded software, sometimes you need to insert printf() calls into code to get status information from it. This course introduces an alternative way of doing this, presented by VxWorks and called kprintf(). 

 kprintf() is easy to include in your kernel, and it produces debug output, just as printf() does. But you can use it where traditional printf() cannot be used.

In this course, you will:

    1. Understand the purpose of kprintf().
    2. Understand the difference between kprintf() and logMsg().
    3. Understand the different between kprintf() and kputs().


Course Syllabus:

  •  

About this course

The kprintf() API is a lightweight logging mechanism that is useful for debugging target boot problems. You will see how to enable this, and what issues arise when using it to troubleshoot problems during the VxWorks boot timeline. While kprintf() usually outputs to a serial device, it can be redirected to other target hardware devices too. The lab will allow you use kprintf() yourself.

Product: VxWorks 7
Based on: SR540
Applicable for: All VxWorks 7

Learning Objectives

While a debugger is preferred when debugging embedded software, sometimes you need to insert printf() calls into code to get status information from it. This course introduces an alternative way of doing this, presented by VxWorks and called kprintf(). 

 kprintf() is easy to include in your kernel, and it produces debug output, just as printf() does. But you can use it where traditional printf() cannot be used.

In this course, you will:

    1. Understand the purpose of kprintf().
    2. Understand the difference between kprintf() and logMsg().
    3. Understand the different between kprintf() and kputs().


Course Syllabus:

  •