Hello,
I need help with getting the Blink application to run with atemu.
Situation:
- installed TinyOS 2.1 from cureent sources with svn ($Date: 2010-01-20
20:00:48 $)
- installed atemu-0.4
- succedded running the Blink.srec program that came precompiled with atemu
(see output below)
- succedded compiling the Blink programm that commes with TinyOS under
apps/Blink/
using (cd apps/Blink; make mica2) it generates main.exe and main.srec in
apps/Blink/build/mica2
- can run main.exe (and main.srec) with atemu and debug on the assembler and
(with
main.exe) on the source level.
- However it does not blink! (see output below)
- - it goes to sleep in async command void McuSleep.sleep()
in the line asm volatile ("sleep" : : : "memory");
called from McuSleepC_McuSleep,
called from RealMainP__Scheduler_taskloop
called from main
and never wakes up again
Any suggestion?
output of atemu with the precompiled Blink:
-----------------------------------------------------------------------------
[ATmega128L Emulator 0.4]
Number of chips: 1
Loading Chip "Chip 0" (1 of 1)
Model: /home/ruckert/TinyOS/atemu-0.4/config/mica2.xconf
Flash: /home/ruckert/TinyOS/atemu-0.4/Blink.srec
CPU: AVR Atmega128L
LED: Red Green Yellow
Warning: Register EIND not found.
000 0 opcode A0x000000: JMP 0x00008c
Call stack 0 begin:
addr: 00000000
[atemu]('?' for help) g
000 180 event led Red on
000 182 event led Yellow on
000 184 event led Green on
000 222 event led Red off
000 224 event led Yellow off
000 226 event led Green off
000 435 debug CPU entering sleep mode 'Idle'
000 8192662 debug CPU exiting sleep
000 8192663 debug Interrupt 16 has been triggered, notifying
processor.
000 8192704 event led Red on
000 8192749 debug CPU entering sleep mode 'Idle'
000 16384662 debug CPU exiting sleep
000 16384663 debug Interrupt 16 has been triggered, notifying
processor.
000 16384703 event led Red off
000 16384750 debug CPU entering sleep mode 'Idle'
000 24576662 debug CPU exiting sleep
000 24576663 debug Interrupt 16 has been triggered, notifying proces
and continues blinking . . .
---------------------------------------------------------------------------------
output of atemu with main.exe compiled from TinyOs apps/Blink/build/micaz2
-------------------------------------------------------------------------------------
[ATmega128L Emulator 0.4]
Number of chips: 1
Loading Chip "Chip 0" (1 of 1)
Model: /home/ruckert/TinyOS/atemu-0.4/config/mica2.xconf
Flash: /home/ruckert/TinyOS/atemu-0.4/apps/main.exe
CPU: AVR Atmega128L
LED: Red Green Yellow
Warning: Register EIND not found.
000 0 opcode A0x000000: JMP 0x000092
Call stack 0 begin:
addr: 00000000
[atemu]('?' for help) g
000 8008968 event led Red on
000 8009009 event led Green on
000 8009050 event led Yellow on
000 8009091 event led Red off
000 8009132 event led Green off
000 8009173 event led Yellow off
000 8009624 debug radio radio Programming address too short.
000 8009777 debug radio radio Beginning programming cycle.
000 8010963 debug radio radio Beginning program write cycle to 0x00
000 8012072 debug radio radio Wrote a 0x3F to radio address 0x00
000 8012339 debug radio radio Beginning programming cycle.
000 8013525 debug radio radio Beginning program write cycle to 0x0B
000 8014634 debug radio radio Wrote a 0x00 to radio address 0x0B
000 8014634 debug radio radio Output power set to 0 mW
000 8023068 debug CPU entering sleep mode 'Standby'
and thats it.
----------------------------------------------------------------------------------
Any help is appreciated!
Martin
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help