[riot-users] STM32F3Discovery + CC1101 radio

Kaspar Schleiser kaspar at schleiser.de
Thu Jan 28 13:49:55 CET 2016


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


More information about the users mailing list