Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. Is a bootloader worth the limitations?

Is a bootloader worth the limitations?

Scheduled Pinned Locked Moved Development
6 Posts 4 Posters 1.0k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JohnRobJ Offline
    JohnRobJ Offline
    JohnRob
    wrote on last edited by
    #1

    Hi,

    I'm working on my first to be commissioned node (i.e. not just a test device). I am thinking of using the WDT to reset the system if the processor gets "lost". I am using a Mini Pro board and found the normal WDT reset instructions do not work. My investigation found at least one post that blamed it on the bootloader (not yet verified myself).

    My question is:

    Except for possible OTA reprogramming and maybe a slightly easier programming connection what does a boot loader gain you?
    I realize to perform ISP programming you need a different programmer (I have a AVR MKii clone).

    Am I missing something?

    dbemowskD 1 Reply Last reply
    0
    • JohnRobJ JohnRob

      Hi,

      I'm working on my first to be commissioned node (i.e. not just a test device). I am thinking of using the WDT to reset the system if the processor gets "lost". I am using a Mini Pro board and found the normal WDT reset instructions do not work. My investigation found at least one post that blamed it on the bootloader (not yet verified myself).

      My question is:

      Except for possible OTA reprogramming and maybe a slightly easier programming connection what does a boot loader gain you?
      I realize to perform ISP programming you need a different programmer (I have a AVR MKii clone).

      Am I missing something?

      dbemowskD Offline
      dbemowskD Offline
      dbemowsk
      wrote on last edited by dbemowsk
      #2

      @johnrob Another option would be an external hardware based WDT. I have read that they are more reliable than the software based WDTs. I have been working on a board for this, but haven't had the time to do any final testing, but here is a design that I found on the web that uses a 555 timer. I mapped out this schematic in EasyEDA:
      0_1521769762948_f716a8e4-3ed8-4e7c-91d1-e067ff8ccf1f-image.png

      Here is what I came up with for a board using through hole components:
      0_1521769832772_0f30564b-494b-4677-9936-3a200d610532-image.png
      This board could be made a fraction of the size using SMDs.

      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

      1 Reply Last reply
      0
      • JohnRobJ Offline
        JohnRobJ Offline
        JohnRob
        wrote on last edited by
        #3

        @dbemowsk

        Thank for the thought. I am familiar with the 555 (or in this case the 555C) but the WDT should work. BTW if I were to try an external device I would use the TPL5010 as this will be battery powered.

        Back to my point, It would be much easier to just use an ISP than to add an additional circuit. Hence my question, is the boot loaded providing some other function I've not not aware of (mentioned above)?

        1 Reply Last reply
        0
        • tbowmoT Offline
          tbowmoT Offline
          tbowmo
          Admin
          wrote on last edited by
          #4

          If you have an ISP device, then I would say no. The bootloader does not add extra value, and could be left out of the equation.

          JohnRobJ 1 Reply Last reply
          0
          • tbowmoT tbowmo

            If you have an ISP device, then I would say no. The bootloader does not add extra value, and could be left out of the equation.

            JohnRobJ Offline
            JohnRobJ Offline
            JohnRob
            wrote on last edited by
            #5

            @tbowmo

            Thanks for the response. I'll start to the ISP. All my non Arduino AVR projects were all programmed with ISP. I moved to Arduino specifically for MySensors.

            John

            1 Reply Last reply
            0
            • bjacobseB Offline
              bjacobseB Offline
              bjacobse
              wrote on last edited by bjacobse
              #6

              As I recall the "normal" bootloader have not configured the WDT (I guess it's too difficult for a newbire to understand and handle WDT)
              Optiboot have WDT configured and you can set it
              Remember to call this at for each less than 8sec, else you will get reboot via watchdog
              I recommend not to set the wdt time too short, as you then won't be able to upload a sketch, as the Arduino then will reset during sketch-upload (But this isn't a problem when using ISP)

              wdt_enable(WDTO_8S);

              https://github.com/Optiboot/optiboot/wiki/HowOptibootWorks

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              7

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              Posts


              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular