Hi 

I am having troubles with getting ATEMU to print the debug statements after 
applying the patch following the steps described here: 
http://www.hynet.umd.edu/research/atemu/patch.html

The only modification I did was to remove the last parameter (0) " fdevopen" 
function call to satisfy avr-gcc. 

I am using TinyOS 1.x and nesC 1.30. 

The problem is dbg( ) function doesn't get included in build/mica2/app.c. 
However, dbg_init() and dbg_putchar() gets included and the following # define 
"#define dbg(mode, format, ...) ((void)0)" 
gets included.

I tried with  compiler flags -O0 or -O1 and -g.  I made sure PLATFORM_MICA2 is 
defined and NDEBUG is not defined as expected by 
#elif (defined(PLATFORM_MICA2) || defined(PLATFORM_MICA2DOT)) && 
!defined(NDEBUG)

Has anyone used ATEMU dbg  patch successfully? If you can explain how you made 
it work, it will be really helpful.

Thanks
Mac


      

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to