Posted on February 09, 2015 at 04:16
Hi all,
I was able to use the code below to init the SPI and read the values fromaccelerometer
SPI_InitTypeDef SPI_InitTypeDefStruct;
GPIO_InitTypeDef GPIO_InitTypeDefStruct;
RCC_APB2PeriphClockCmd(...
Posted on February 09, 2015 at 23:20I decided just to add the SPI_DeInit(...) before SPI_Init(...). This seems to solve the problem. I still dont understand why it wont reset itself though. Could someone explain this? Thanks