Skip to main content
Visitor II
October 16, 2023
Solved

GPIO not getting controlled

  • October 16, 2023
  • 1 reply
  • 1933 views

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.

    This topic has been closed for replies.
    Best answer by waclawek.jan

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

    JW

    1 reply

    Super User
    October 16, 2023

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

    JW

    HBAuthor
    Visitor II
    October 16, 2023

    Thank you 

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

    Graduate II
    October 16, 2023

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