Skip to main content
Visitor II
February 9, 2022
Solved

STM32 Bootloader via SPI

  • February 9, 2022
  • 2 replies
  • 1467 views

I made a firmware download project using a factory bootloader according to AN4286. Everything works fine.

I have only one ambiguity - in the description of the bootloader in AN2606 there is a picture on which the SCK signal is pulled-down to the ground and in the description it is written that there must be a 10k resistor.

0693W00000JPAHwQAP.png 

Please explain the need to use a pull-down of the SCK to the ground.

Is it possible to do without it?

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    If you don't connect a pull-down to SCK and, for example, boot into the bootloader without a host connected, the sensitive SCK input will interpret noise as a clock and the bootloader may assume you have a host connected.

    With the pull-down connected, there will be no activity without host and the bootloader can continue to scan the list of possible interfaces.

    Does it answer your question?

    Regards

    /Peter

    2 replies

    Technical Moderator
    February 9, 2022

    If you don't connect a pull-down to SCK and, for example, boot into the bootloader without a host connected, the sensitive SCK input will interpret noise as a clock and the bootloader may assume you have a host connected.

    With the pull-down connected, there will be no activity without host and the bootloader can continue to scan the list of possible interfaces.

    Does it answer your question?

    Regards

    /Peter

    Super User
    February 9, 2022

    If you can ensure SCK is driven low while the target is in bootloader mode, it is not needed.