cancel
Showing results for 
Search instead for 
Did you mean: 
Newbie
Newbie
3,434 Views
Registered: ‎09-30-2009

How do I enable debug messages in Xilkernel

Hi,

I am currently debugging some issues using Xilkernel. I would like to enable the debug print messages that are included  in the source code which would be more useful than putting breakpoints all over the place.

For example in file 'sched.c' there is this snippet of code.


    if( current_pid == -1 ) {   
    DBG_PRINT ("XMK: Unable to find schedulable process. Kernel Halt.\r\n") ;
    while(1);
    } 

 

And in  include file 'decls.h' this is enabled by using the VERBOSE directive as below. I cannot edit and define this directive as it is generated by libgen?

 

How do I define this directive during compile of Xilkernel?

 

 

#ifdef VERBOSE
#define DBG_PRINT(string) print(string)
#define DPUTNUM(num)      putnum(num)
#define DPRINTF           xil_printf
#else
#define DBG_PRINT(string) // nothing
#define DPUTNUM(num)      // nothing
#define DPRINTF(...)      // nothing
#endif

 

thanks in advance

-ajoy

0 Kudos
1 Reply
Highlighted
3,415 Views
Registered: ‎08-21-2008

Re: How do I enable debug messages in Xilkernel

Hello.

Go to the following link mentioned below and visit page no. 15 and look for topic "Configuring Debug Options".

http://www.xilinx.com/ise/embedded/edk91i_docs/lwip_v2_00_a.pdf 

Best of luck.
--
Unlimited in my Limits.
0 Kudos