I'm trying to write a new platform for TinyOS using a f5438 and a CC2520.
I manage to compile Blink (the example app of TOS), but it's not working. I enabled just Timer0 and led0.
The problem is that the PC and SR values pushed before executing the Timer ISR (I tried TimerA0 and A1, with the same results), are not right.
At first I thought that might be a problem when waking up, so I added a task with an infinit loop to keep the system up, and the same happends.
(Tools mspgcc-4.4.5, tinyos-2.1.1, mspdebug 0.13, MSP-FETU430IF, Ubuntu 10.10.)
Start of the program
(mspdebug) regs
( PC: 05c00) ( R4: 00b80) ( R8: 00001) (R12: 00334)
( SP: 05bfe) ( R5: 00000) ( R9: 00001) (R13: 00000)
( SR: 00000) ( R6: 00002) (R10: 000ff) (R14: 000f8)
( R3: 00000) ( R7: 00005) (R11: 00005) (R15: 00001)
05c00: 31 40 00 5c MOV #0x5c00, SP
05c04: b2 40 80 5a 5c 01 MOV #0x5a80, &0x015c
05c0a: 3f 40 00 00 CLR R15
05c0e: 0f 93 TST R15
I've also tried on a different 5438, but the problem is exactly the same.
Thanks in advance
Jorge