[riot-devel] vtimer on msp430

Milan Babel babel at inf.fu-berlin.de
Wed May 22 19:59:41 CEST 2013


Hi,

On 22.05.2013 15:57, Oleg Hahm wrote:
>> But whenever I use vtimer_sleep the thread never gets back.
>> As soon as I init vtimer I see an Interrupt for timer 2 fired every
>> ~35 ticks.
> Do you get any compiler or linker warnings?
yes a lot of integer overflows,

vtimer.c: In Funktion »update_shortterm«:
vtimer.c:64:42: Warnung: Ganzzahlüberlauf in Ausdruck [-Woverflow]
vtimer.c: In Funktion »vtimer_tick«:
vtimer.c:79:93: Warnung: Ganzzahlüberlauf in Ausdruck [-Woverflow]
vtimer.c: In Funktion »normalize_to_tick«:
vtimer.c:135:22: Warnung: Ganzzahlüberlauf in Ausdruck [-Woverflow]
vtimer.c:138:21: Warnung: Ganzzahlüberlauf in Ausdruck [-Woverflow]
vtimer.c:139:22: Warnung: Ganzzahlüberlauf in Ausdruck [-Woverflow]
vtimer.c: In Funktion »vtimer_init«:
vtimer.c:202:49: Warnung: Ganzzahlüberlauf in Ausdruck [-Woverflow]

unfortunally they did not disappeared when I tried to increase the 
integer type.
Any ideas?

>
>> I am really unsure what the problem could be. In general the timer
>> should work on the msp430f1611 the same way it works on the
>> msp430f1612. I hope I set the ACLK the right way, but if it would be
>> that high hwtimer_wait would not really pause a thread.
> Have you tested your code on a MSB-430-H?
>
No, I just assumed that the vtimers are working on the MSB-430H.
But I realised that the code has may changed a lot since the last use of 
the MSB-430H.

Regards,
   Milan



More information about the devel mailing list