On 27-12-2007 at 19:41, Anonymous wrote:
PB13 (SPI2_CLK) is used in the Evaluation board from ST (MB525) to drive the TFT LCD and is working fine on my board, I suggest you to re-check your code for sure you have something missing in the initilisation. :-)
On 28-12-2007 at 15:48, Anonymous wrote:
I think that you mising part is in line :
/* Enable SPI1 and GPIOA clocks */
RCC_APB2PeriphClockCmd(RCC_APB2Periph_SPI1 | RCC_APB2Periph_GPIOA, ENABLE);
// RCC_APB2PeriphClockCmd(RCC_APB1Periph_SPI2 | RCC_APB2Periph_GPIOB, ENABLE);
SPI2 is connected in APB1 and not like SPI1 which is connected to APB2 with all GPIOs.
So the right code to enbale SPI2 is something like :
/* Enable SPI2 and GPIOB clocks */
Tell me if it is working well now ;-) Magigimix ;-)
Retrieving data ...