STM32 programming and BOOT0 pin The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)STM32F102 USB ProgrammingSTM32F303RET's core is always halted after programmingST-Link debugger/programmer failed to find STM32L152 MCU on designed PCBSTM32 prototype unable to connect to PC using ST-Link/V2 SWDSTM32 'Connect under reset' suddenly stopped workingCannot Program a Custom STM32 BoardWhy is this hex file different than the code programmed onto the device?STM32F091 Jump to Bootloader from applicationSTM32 & ST-LINK - SWD connector not workingSTM32F0 - interrupt/breakpoint not working on certain hardware

Identify 80s or 90s comics with ripped creatures (not dwarves)

Is this wall load bearing? Blueprints and photos attached

My body leaves; my core can stay

Are spiders unable to hurt humans, especially very small spiders?

Button changing its text & action. Good or terrible?

What can I do if neighbor is blocking my solar panels intentionally?

When did F become S? Why?

Is there a writing software that you can sort scenes like slides in PowerPoint?

Was credit for the black hole image misappropriated?

Working through the single responsibility principle (SRP) in Python when calls are expensive

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Mortgage adviser recommends a longer term than necessary combined with overpayments

Is 'stolen' appropriate word?

Huge performance difference of the command find with and without using %M option to show permissions

Why did Peik Lin say, "I'm not an animal"?

What happens to a Warlock's expended Spell Slots when they gain a Level?

Can I visit the Trinity College (Cambridge) library and see some of their rare books

Student Loan from years ago pops up and is taking my salary

Is every episode of "Where are my Pants?" identical?

"... to apply for a visa" or "... and applied for a visa"?

Why can't devices on different VLANs, but on the same subnet, communicate?

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

How to support a colleague who finds meetings extremely tiring?

US Healthcare consultation for visitors



STM32 programming and BOOT0 pin



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)STM32F102 USB ProgrammingSTM32F303RET's core is always halted after programmingST-Link debugger/programmer failed to find STM32L152 MCU on designed PCBSTM32 prototype unable to connect to PC using ST-Link/V2 SWDSTM32 'Connect under reset' suddenly stopped workingCannot Program a Custom STM32 BoardWhy is this hex file different than the code programmed onto the device?STM32F091 Jump to Bootloader from applicationSTM32 & ST-LINK - SWD connector not workingSTM32F0 - interrupt/breakpoint not working on certain hardware



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2












$begingroup$


I am developing a STM32H7 board which will be programmed via SWD.



I am curious, is there any reason why I should connect BOOT0 pin to GND via resistor and not directly to GND?



I won't be using the bootloader but can it happen that I accidentally disable the debug port from software and then can't program the MCU via SWD anymore and need to use bootloader mode by putting BOOT0 high?










share|improve this question









$endgroup$







  • 1




    $begingroup$
    if you have a resistor to ground, then you can change the state of the pin by connecting it to Vcc ... if the pin is connected to ground directly, then you have to disconnect it before it can be pulled high
    $endgroup$
    – jsotola
    2 days ago

















2












$begingroup$


I am developing a STM32H7 board which will be programmed via SWD.



I am curious, is there any reason why I should connect BOOT0 pin to GND via resistor and not directly to GND?



I won't be using the bootloader but can it happen that I accidentally disable the debug port from software and then can't program the MCU via SWD anymore and need to use bootloader mode by putting BOOT0 high?










share|improve this question









$endgroup$







  • 1




    $begingroup$
    if you have a resistor to ground, then you can change the state of the pin by connecting it to Vcc ... if the pin is connected to ground directly, then you have to disconnect it before it can be pulled high
    $endgroup$
    – jsotola
    2 days ago













2












2








2





$begingroup$


I am developing a STM32H7 board which will be programmed via SWD.



I am curious, is there any reason why I should connect BOOT0 pin to GND via resistor and not directly to GND?



I won't be using the bootloader but can it happen that I accidentally disable the debug port from software and then can't program the MCU via SWD anymore and need to use bootloader mode by putting BOOT0 high?










share|improve this question









$endgroup$




I am developing a STM32H7 board which will be programmed via SWD.



I am curious, is there any reason why I should connect BOOT0 pin to GND via resistor and not directly to GND?



I won't be using the bootloader but can it happen that I accidentally disable the debug port from software and then can't program the MCU via SWD anymore and need to use bootloader mode by putting BOOT0 high?







stm32 bootloader






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









ningboningbo

343




343







  • 1




    $begingroup$
    if you have a resistor to ground, then you can change the state of the pin by connecting it to Vcc ... if the pin is connected to ground directly, then you have to disconnect it before it can be pulled high
    $endgroup$
    – jsotola
    2 days ago












  • 1




    $begingroup$
    if you have a resistor to ground, then you can change the state of the pin by connecting it to Vcc ... if the pin is connected to ground directly, then you have to disconnect it before it can be pulled high
    $endgroup$
    – jsotola
    2 days ago







1




1




$begingroup$
if you have a resistor to ground, then you can change the state of the pin by connecting it to Vcc ... if the pin is connected to ground directly, then you have to disconnect it before it can be pulled high
$endgroup$
– jsotola
2 days ago




$begingroup$
if you have a resistor to ground, then you can change the state of the pin by connecting it to Vcc ... if the pin is connected to ground directly, then you have to disconnect it before it can be pulled high
$endgroup$
– jsotola
2 days ago










2 Answers
2






active

oldest

votes


















4












$begingroup$

If you're making a board, why not provide for a resistor/jumper to connect Boot0 to +V and GND? Then only populate one of them? Leave your options open. You don't need a resistor. I prefer to use a jumper rather than a resistor.



You can use header shunts as jumpers that can be easily changed but that takes more PCB space, components and more assembly work. Or just place an SMD chip footprint you can either choose to use an SMD resistor or SMD jumper (zero ohm resistor) during assembly. Then you can fiddle with things all you want after-the-fact.






share|improve this answer











$endgroup$




















    4












    $begingroup$


    I won't be using the bootloader but can it happen that I accidentally disable the debug port from software and then can't program the MCU via SWD anymore and need to use bootloader mode by putting BOOT0 high?




    That's exactly why you might want to use a resistor and not a zero ohm jumper. With a resistor, you can manually override it with a piece of wire to the opposite rail start in bootloader mode once, without having to get out the hot air station and change the resistor.



    Granted, if you have the hardware reset line brought out, and an SWD probe that actually drives it, and a suitable SWD software config (both common points of failure - and specifically a failure that may not be noticed in routine use, but only when this kind of recovery fails to work) then that is another way to work around disabled SWD lines.






    share|improve this answer









    $endgroup$













      Your Answer






      StackExchange.ifUsing("editor", function ()
      return StackExchange.using("schematics", function ()
      StackExchange.schematics.init();
      );
      , "cicuitlab");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "135"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f431871%2fstm32-programming-and-boot0-pin%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4












      $begingroup$

      If you're making a board, why not provide for a resistor/jumper to connect Boot0 to +V and GND? Then only populate one of them? Leave your options open. You don't need a resistor. I prefer to use a jumper rather than a resistor.



      You can use header shunts as jumpers that can be easily changed but that takes more PCB space, components and more assembly work. Or just place an SMD chip footprint you can either choose to use an SMD resistor or SMD jumper (zero ohm resistor) during assembly. Then you can fiddle with things all you want after-the-fact.






      share|improve this answer











      $endgroup$

















        4












        $begingroup$

        If you're making a board, why not provide for a resistor/jumper to connect Boot0 to +V and GND? Then only populate one of them? Leave your options open. You don't need a resistor. I prefer to use a jumper rather than a resistor.



        You can use header shunts as jumpers that can be easily changed but that takes more PCB space, components and more assembly work. Or just place an SMD chip footprint you can either choose to use an SMD resistor or SMD jumper (zero ohm resistor) during assembly. Then you can fiddle with things all you want after-the-fact.






        share|improve this answer











        $endgroup$















          4












          4








          4





          $begingroup$

          If you're making a board, why not provide for a resistor/jumper to connect Boot0 to +V and GND? Then only populate one of them? Leave your options open. You don't need a resistor. I prefer to use a jumper rather than a resistor.



          You can use header shunts as jumpers that can be easily changed but that takes more PCB space, components and more assembly work. Or just place an SMD chip footprint you can either choose to use an SMD resistor or SMD jumper (zero ohm resistor) during assembly. Then you can fiddle with things all you want after-the-fact.






          share|improve this answer











          $endgroup$



          If you're making a board, why not provide for a resistor/jumper to connect Boot0 to +V and GND? Then only populate one of them? Leave your options open. You don't need a resistor. I prefer to use a jumper rather than a resistor.



          You can use header shunts as jumpers that can be easily changed but that takes more PCB space, components and more assembly work. Or just place an SMD chip footprint you can either choose to use an SMD resistor or SMD jumper (zero ohm resistor) during assembly. Then you can fiddle with things all you want after-the-fact.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 days ago

























          answered 2 days ago









          ToorToor

          1,629213




          1,629213























              4












              $begingroup$


              I won't be using the bootloader but can it happen that I accidentally disable the debug port from software and then can't program the MCU via SWD anymore and need to use bootloader mode by putting BOOT0 high?




              That's exactly why you might want to use a resistor and not a zero ohm jumper. With a resistor, you can manually override it with a piece of wire to the opposite rail start in bootloader mode once, without having to get out the hot air station and change the resistor.



              Granted, if you have the hardware reset line brought out, and an SWD probe that actually drives it, and a suitable SWD software config (both common points of failure - and specifically a failure that may not be noticed in routine use, but only when this kind of recovery fails to work) then that is another way to work around disabled SWD lines.






              share|improve this answer









              $endgroup$

















                4












                $begingroup$


                I won't be using the bootloader but can it happen that I accidentally disable the debug port from software and then can't program the MCU via SWD anymore and need to use bootloader mode by putting BOOT0 high?




                That's exactly why you might want to use a resistor and not a zero ohm jumper. With a resistor, you can manually override it with a piece of wire to the opposite rail start in bootloader mode once, without having to get out the hot air station and change the resistor.



                Granted, if you have the hardware reset line brought out, and an SWD probe that actually drives it, and a suitable SWD software config (both common points of failure - and specifically a failure that may not be noticed in routine use, but only when this kind of recovery fails to work) then that is another way to work around disabled SWD lines.






                share|improve this answer









                $endgroup$















                  4












                  4








                  4





                  $begingroup$


                  I won't be using the bootloader but can it happen that I accidentally disable the debug port from software and then can't program the MCU via SWD anymore and need to use bootloader mode by putting BOOT0 high?




                  That's exactly why you might want to use a resistor and not a zero ohm jumper. With a resistor, you can manually override it with a piece of wire to the opposite rail start in bootloader mode once, without having to get out the hot air station and change the resistor.



                  Granted, if you have the hardware reset line brought out, and an SWD probe that actually drives it, and a suitable SWD software config (both common points of failure - and specifically a failure that may not be noticed in routine use, but only when this kind of recovery fails to work) then that is another way to work around disabled SWD lines.






                  share|improve this answer









                  $endgroup$




                  I won't be using the bootloader but can it happen that I accidentally disable the debug port from software and then can't program the MCU via SWD anymore and need to use bootloader mode by putting BOOT0 high?




                  That's exactly why you might want to use a resistor and not a zero ohm jumper. With a resistor, you can manually override it with a piece of wire to the opposite rail start in bootloader mode once, without having to get out the hot air station and change the resistor.



                  Granted, if you have the hardware reset line brought out, and an SWD probe that actually drives it, and a suitable SWD software config (both common points of failure - and specifically a failure that may not be noticed in routine use, but only when this kind of recovery fails to work) then that is another way to work around disabled SWD lines.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 2 days ago









                  Chris StrattonChris Stratton

                  23.2k22865




                  23.2k22865



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Electrical Engineering Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f431871%2fstm32-programming-and-boot0-pin%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form