STM32F103C8T6 GPIO Codes in Keil

Thread Starter

Chetan_Jadhav

Joined Mar 2, 2017
52
Hi Everyone,
I just bought STM32F103C8T6(BluePill) and ST-Link.V2(Not original one). and want to blink on board LED... Forgive my ignorance but even after searching through lot of examples and articles I didn't find a satisfying solution. I used CubeMX to get start up code then wrote main then every header file declaration were done and dumped hex file,but nothing is changing led is off... and pin PC_13 on which it is connected is at 1.7V while other pins are at 0V.
In short I want to know how to access gpio pins to write and read data from them.
Please provide a solution. I have attached the project file below.(Keil MDK5)
Thanks in anticipation.
 

Attachments

Last edited:

jpanhalt

Joined Jan 18, 2008
11,087
I think what he meant is that you provide no information for us to work from to find an error. It is customary with questions like this to ask the TS to post his code.
 
Top