cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L152VBT6 SPI1 interface (to TI CC1101) restart problem.

pnk003
Associate
Posted on July 11, 2013 at 10:18

Dear experts.

I am developing RFID reader/tag using STM32L152VBT6 and TI CC1101 using SPI1 interface.

I would like to stop and to restart SPI1 interface to CC1101.

I used the following codes.

The SPI1 interface stops successfully when I call  BSP_433_Stop ().

However when I call BSP_433_Start(), I can't receive packets from CC1101 through SPI1 interface.

void BSP_433_Start (void) {    SPI_Cmd(SPI1, ENABLE);  }

void BSP_433_Stop (void) {    SPI_Cmd(SPI1, DISABLE);  }

I tried to reinitialize the SPI1 interface when I restart SPI1 interface as follows.

In this case, I can't receive packets from CC1101 through SPI1 interface too.

void BSP_433_Start       (void)

 {    SPI_CC1101_Init();        SPI_Cmd(SPI1, ENABLE);  }

I will appreciate to you if I can be given any suggestion & advices.

Thank you very much in advance.

Sincerely Yours,

Ick-Sung Choi.
0 REPLIES 0