[riot-notifications] [RIOT] switch to xtimer (#3525)

Oleg Hahm notifications at github.com
Wed Sep 9 14:24:04 CEST 2015


On the SAMR21 we face the same problem as for the iotlab-m3: hangs at at86rf2xx_reset:
```
(gdb) bt
#0  0x00005790 in timer_read (dev=dev at entry=1) at /home/oleg/git/RIOT/cpu/samd21/periph/timer.c:252
#1  0x00007614 in _xtimer_now () at /home/oleg/git/RIOT/sys/include/xtimer.h:392
#2  0x0000761e in xtimer_spin_until (value=305) at /home/oleg/git/RIOT/sys/include/xtimer.h:425
#3  0x000078fe in xtimer_set (timer=timer at entry=0x200007dc <main_stack+1328>, offset=offset at entry=1) at /home/oleg/git/RIOT/sys/xtimer/xtimer_core.c:125
#4  0x0000791e in _xtimer_set64 (timer=timer at entry=0x200007dc <main_stack+1328>, offset=offset at entry=1, long_offset=long_offset at entry=0) at /home/oleg/git/RIOT/sys/xtimer/xtimer_core.c:92
#5  0x000079f6 in _xtimer_sleep (offset=offset at entry=1, long_offset=long_offset at entry=0) at /home/oleg/git/RIOT/sys/xtimer/xtimer.c:50
#6  0x00007b10 in xtimer_usleep (offset=1) at /home/oleg/git/RIOT/sys/include/xtimer.h:436
#7  at86rf2xx_reset (dev=dev at entry=0x200012cc <at86rf2xx_devs>) at /home/oleg/git/RIOT/drivers/at86rf2xx/at86rf2xx.c:100
#8  0x00007c6c in at86rf2xx_init (dev=dev at entry=0x200012cc <at86rf2xx_devs>, spi=spi at entry=SPI_0, spi_speed=spi_speed at entry=SPI_SPEED_1MHZ, cs_pin=cs_pin at entry=1090536607, 
    int_pin=int_pin at entry=1090536576, sleep_pin=sleep_pin at entry=1090536468, reset_pin=reset_pin at entry=1090536591) at /home/oleg/git/RIOT/drivers/at86rf2xx/at86rf2xx.c:85
#9  0x00000db4 in auto_init_at86rf2xx () at /home/oleg/git/RIOT/sys/auto_init/netif/auto_init_at86rf2xx.c:49
#10 0x00000d92 in auto_init () at /home/oleg/git/RIOT/sys/auto_init/auto_init.c:148
#11 0x0000069a in main_trampoline (arg=<optimized out>) at /home/oleg/git/RIOT/core/kernel_init.c:54
#12 0x0000025c in sched_switch (other_prio=<optimized out>) at /home/oleg/git/RIOT/core/sched.c:180
#13 0x200007cc in main_stack ()
```
Increasing the `RESET_DELAY` to 10 fixes the issue.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3525#issuecomment-138893034
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150909/f72a7aee/attachment.html>


More information about the notifications mailing list