cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO not getting controlled

HB
Associate II

Hello everyone,

In my project i am using STM32F107VCT6 MCU. When i tried to control gpio pin it is not changing state from low-high/ high-low.  I am only getting issue with PB3. In hardware i have connected this pin to SCK pin of W25Q16. I have enabled gpio clock and set the mode of this pin to output_PP(Implementing SoftSPI).

CODE SNIPPET:

Note: Code generated in keil. I have enabled CMSIS core & selected required device files(Startup + GPIO,RCC & FRAMEWORK from StdPeriph Drivers)

 

HB_0-1697433733759.png

 

I only want to use standard peripheral library(LL). I have tried it with other gpios & it is working absolutely fine. As well as PB3 is working fine if i use HAL. So please can you help what should be done in strandard peripheral library to make it work.

1 ACCEPTED SOLUTION

Accepted Solutions

In 'F1, PB3 is by default set as a JTAG pin.

JW

View solution in original post

3 REPLIES 3

In 'F1, PB3 is by default set as a JTAG pin.

JW

Thank you 

Can you please suggest from where I can learn concepts like this?

Data Sheet and Reference Manual. Identifying other potentially conflicting uses and then how to limit or change them.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..