Skip to main content
eLuigi
Associate
May 15, 2017
Solved

Nucleo STM32F103RB : cannot blink a led on GPIO B3

  • May 15, 2017
  • 6 replies
  • 2169 views
Posted on May 15, 2017 at 20:37

Hi everybody,

I can't blink a led on GPIO B3 (PB3) port , the code works well on another ports like PB5 PA5... but not on PB3.

I have buy another nucleo board cause I was thinking I have an issue with my previous board but same issue on the new board. Anyone have a explanation.

FYI I need this port to emulate an aim board which use this port for a status led so...

Thanks for your help

Etienne

    This topic has been closed for replies.
    Best answer by Max
    Posted on May 16, 2017 at 09:34

    PB3 is the SWO pin and is connected to the on board STLink.

    remove SB15 if you want to use it in your application.

    You should have checked the schematic before buying a new board.

    You can get it

    http://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-eval-tools/stm32-mcu-eval-tools/stm32-mcu-nucleo/nucleo-f103rb.html

    .

    6 replies

    Max
    MaxBest answer
    ST Employee
    May 16, 2017
    Posted on May 16, 2017 at 09:34

    PB3 is the SWO pin and is connected to the on board STLink.

    remove SB15 if you want to use it in your application.

    You should have checked the schematic before buying a new board.

    You can get it

    http://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-eval-tools/stm32-mcu-eval-tools/stm32-mcu-nucleo/nucleo-f103rb.html

    .
    AvaTar
    Senior III
    May 16, 2017
    Posted on May 16, 2017 at 09:53

    PB3 is the SWO pin and is connected to the on board STLink.

    remove SB15 if you want to use it in your application.

    While technically correct, I would never ever recommend that to an inexperienced user.

    Else you have him back with more serious issues one hour later ...

    eLuigi
    eLuigiAuthor
    Associate
    May 16, 2017
    Posted on May 16, 2017 at 21:33

    Thank you for your answers, just two questions for my knowledge:

    1- what is SB15? (yes I know I'm just new on nucleo)

    2- Is it possible to desactivate the swo on the pb3 port and using another port connected to the stlink but on 'external device' connector?

    Tesla DeLorean
    Guru
    May 17, 2017
    Posted on May 17, 2017 at 00:25

    It is a Solder Bridge (basically a jumper using solder), you'd need to use a soldering iron and a solder wick or sucker to remove the solder an open the circuit.

    PB3 has defined functionality related to the debug interface, it can't use a different pin. The SWV (Serial Wire Viewer) it helps implement is optional. You will likely need to Remap the JTAG/SWD interface to use just the minimal SWDIO/SWCLK pins.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    eLuigi
    eLuigiAuthor
    Associate
    May 17, 2017
    Posted on May 17, 2017 at 08:34

    Pretty clear, thank you for your help!