[quote user="David Martens"]I have a connetion with my rfm70, but the data that the slave sends mir isn't stored in the RXBUF ? Why?[/quote]P3.1 on the MSP430F5310 is UCB0SOMI, i.e. the output from the slave. However, the spi_init function isn't setting the P3SEL.1 bit:
[quote] P3SEL |= BIT0 |BIT2 |BIT3; // P3.0,1 option select[/quote]This means the UCB0 SPI module isn't configured to read from the P3.1 pin. Try changing the spi_init function to set P3SEL.1. i.e.:
[quote] P3SEL |= BIT0 |BIT1|BIT2 |BIT3; // UCB0SIMO, UCB0SOMI, UCB0CLK, UCA0TXD option select[/quote]