AnsweredAssumed Answered

GPIOs not functioning, what gives ?

Question asked by burger.ben.001 on Nov 19, 2011
Latest reply on Nov 20, 2011 by burger.ben.001
I`m fairly new to the STM32 family, not new to C or other micros:
I use: Keil Lite: V4.22.22.0, 4.22a with an ST-Link, this all works and compiles etc. I can run code on my board no problem !!
Now I`m trying to do something simple, ie to toggle pins on PORTC, nothing I have tried \
so far helped. here is my code simple strait-up (not all declerations are shown):
void main(void)
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_All;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(GPIOC, &GPIO_InitStructure);
GPIO_SetBits(GPIOC, GPIO_Pin_All);            !!!!Nothing the port pins are ALWAYS low
I used the EXAMPLE project as well in the Keil directory... I also tried DeInit etc....
Any suggestions ?
Also what I would like to know is that once a port is configured, how do you make changes to that port/pins without affecting the whole port structure? Will it change the whole port if I call same GPIO_Init(GPIOC, &GPIO_InitStructure) function with different pins and configurations ? Can`t find any reference to  that in the documentation