Kévin Roussel
Kévin Roussel
re: 2) Maybe the vtimer module could be notified of overflow conditions by a callback mechanism? I too don't feel really comfortable with this hwtimer_set_absolute() function... As for the applications,...
Well, I have the impression we don't run through the board-dependent cc2420_spi_init() function; and since that function does (on the boards you mention) handle the correct configuration for the pins...
I just found an interesting article on TI web site: http://e2e.ti.com/support/microcontrollers/msp430/f/166/t/53319.aspx To summarize, it means that with MSP430s, one should always put a NOP after fiddling with the GIE bit...
Well, after checking the source code of FreeRTOS v8 (i.e. the current version), it seems they don't trust MSP-GCC primitives for handling interrupts. In their port for MSP430F449, you can...
Indeed, MSP-GCC (at least in the version 4.6.3 I use on Debian-stable) seems to put a NOP instruction after clearing the GIE bit (dINT) but not after setting it (eINT)......
Hmm... I think we're facing a complex problem: there are probably more than one issue here (the `hwtimer_wait()` problem is also bugging me for quite a time, but I can't...
Breaking news! After some low-level debugging (using JTAG and Cooja to do step-by-step execution), I figured out something that could explain our problems! I managed to go into step-by-step mode...
Here's a transcript of a crash I monitored on an emulated Z1 mote (Cooja), the one I mentioned just above: ``` > break thread_yield Breakpoint set at $03ae6 *** Break...
@thomaseichinger The `RETI` instruction at the end restores both SR then PC from the stack (it's the RETurn from Interrupt instruction).
This time, I think I found the solution to these problems: see #1618 and #1619. @thomaseichinger (26 Jun message) You were right: it seems the problem come from thread_yield() in...