|
Hello,
I am using the ICE-INSIGHT debug interface and gcc
compiler to develop my TinyOs based application.
I recently began using both UART0 and UART1 in my
application and I encountered the following problem:
When I used my debugger/JTAG emulator to
execute my application, I found that I got "stuck" in the init function
in WSN_MainM at the point "for (i=0; i<20000;
i++)."
When I exited the debugger and ran my application
direct from the Flash, the program worked fine.
Even when I commented out the "for loops" in the
init function, my application ran correctly with the emulator.
Are my debug problems caused by an obscure debug
setting in TinyOs???
module WSN_MainM {
uses { interface StdControl; interface Leds; } provides
{
interface StdControl as MainControl; } } implementation {
command result_t MainControl.init()
{
uint16_t j; for (j=0; j<3;
j++) {
call Leds.redOn(); call Leds.yellowOn(); call Leds.greenOn(); #ifndef
PLATFORM_PC
{ uint16_t i; for (i=0; i<20000; i++) { asm volatile ("sleep" ::); } } Mike Looney |
_______________________________________________ Tinyos-users mailing list [EMAIL PROTECTED] http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
