Hey, On 01/28/2016 12:22 PM, Viktor Váczi wrote: > The whole thing freezes up in the netdev2_cc110x_setup function. It goes > for a while, then it calls cc110x_setup, and the first step is to > initialize the CS gpio pin, so it calls gpio_init(dev->params.cs, > GPIO_DIR_OUT, GPIO_NOPULL); > The error occures at this line: port->PUPDR |= (pushpull << (2 * pin_num)); > I've ran a debugger an its seems that its trying to do a contexts switch.
Hm. Maybe somehow messing with the pin parameters triggers an interrupt. Could you try adding "disableIRQ();" in cc110x.c before the gpio_* calls? (And, double check Port 0 Pin 15 and if it's maybe used for something else...) Kaspar _______________________________________________ users mailing list [email protected] https://lists.riot-os.org/mailman/listinfo/users
