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. Troubleshooting
  3. mysbootloader not working with nano? [solved]

mysbootloader not working with nano? [solved]

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 3 Posters 899 Views 2 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.
  • Z Offline
    Z Offline
    zen85
    wrote on last edited by zen85
    #1

    Hello,

    did anybody successfully get mysbootloader for fota get to work on a nano? i burned the bootloader via an uno (arduino as isp)... everything seemed to work fine...

    but nothing changes actually - the log on myscontroller says nothing about a new bootloader whenever i try to click the node > settings > Board with mysbootloader i see the functions. when i click anything like "reassign ID" it just reboots with the old ID - when i try to load a new sketch via "assign firmware" it is the same. it just reboots and nothing changed.

    i tried different gateways (rpi and nodemcu), i tried different mysbootloaders with different channels from the github repository, ... it seems to be the same everytime...

    did anybody run into the same issues or has a hint - i tried now for 2 days without progress...

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zen85
      wrote on last edited by
      #2

      ok... i once again report back to my own entry since i became a little smarter.

      i found out 2 things:

      • in the boards.txt i have to set the right fuse-settings. for the 16mhz nano i used:
      MYSBL.menu.frequency.MYSBL16.bootloader.low_fuses=0xFF
      MYSBL.menu.frequency.MYSBL16.bootloader.high_fuses=0xDA
      MYSBL.menu.frequency.MYSBL16.bootloader.extended_fuses=0xFD
      
      • i used a screw-terminal board where the ce and cs pins are switched. in the usual sketch i define
      // Set custom pins for Nano-Radio-Board
      #define MY_RF24_CE_PIN 10 
      #define MY_RF24_CS_PIN 9
      

      i am sure the mysbootloader needs to know that too... so am i right that i have to compile a new bootloader where i have to put:
      #define RF24_CE_PIN 10
      #define RF24_CS_PIN 9
      ?

      i am really having a hard time compiling one since i have zero experience with that and eclipse doesn't seem of much help here. so if anybody can confirm this before i go through this fruitless struggle again i would be very glad...

      T mfalkviddM 2 Replies Last reply
      0
      • Z zen85

        ok... i once again report back to my own entry since i became a little smarter.

        i found out 2 things:

        • in the boards.txt i have to set the right fuse-settings. for the 16mhz nano i used:
        MYSBL.menu.frequency.MYSBL16.bootloader.low_fuses=0xFF
        MYSBL.menu.frequency.MYSBL16.bootloader.high_fuses=0xDA
        MYSBL.menu.frequency.MYSBL16.bootloader.extended_fuses=0xFD
        
        • i used a screw-terminal board where the ce and cs pins are switched. in the usual sketch i define
        // Set custom pins for Nano-Radio-Board
        #define MY_RF24_CE_PIN 10 
        #define MY_RF24_CS_PIN 9
        

        i am sure the mysbootloader needs to know that too... so am i right that i have to compile a new bootloader where i have to put:
        #define RF24_CE_PIN 10
        #define RF24_CS_PIN 9
        ?

        i am really having a hard time compiling one since i have zero experience with that and eclipse doesn't seem of much help here. so if anybody can confirm this before i go through this fruitless struggle again i would be very glad...

        T Offline
        T Offline
        tekka
        Admin
        wrote on last edited by
        #3

        @zen85 correct, if the radio pins are different you have to recompile the bootloader.

        Z 1 Reply Last reply
        0
        • Z zen85

          ok... i once again report back to my own entry since i became a little smarter.

          i found out 2 things:

          • in the boards.txt i have to set the right fuse-settings. for the 16mhz nano i used:
          MYSBL.menu.frequency.MYSBL16.bootloader.low_fuses=0xFF
          MYSBL.menu.frequency.MYSBL16.bootloader.high_fuses=0xDA
          MYSBL.menu.frequency.MYSBL16.bootloader.extended_fuses=0xFD
          
          • i used a screw-terminal board where the ce and cs pins are switched. in the usual sketch i define
          // Set custom pins for Nano-Radio-Board
          #define MY_RF24_CE_PIN 10 
          #define MY_RF24_CS_PIN 9
          

          i am sure the mysbootloader needs to know that too... so am i right that i have to compile a new bootloader where i have to put:
          #define RF24_CE_PIN 10
          #define RF24_CS_PIN 9
          ?

          i am really having a hard time compiling one since i have zero experience with that and eclipse doesn't seem of much help here. so if anybody can confirm this before i go through this fruitless struggle again i would be very glad...

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @zen85 maybe https://github.com/mysensors/MySensorsBootloaderRF24/pull/36/files?file-filters[]=.c&file-filters[]=.d&file-filters[]=.elf&file-filters[]=.h&file-filters[]=.o&file-filters[]=.original&file-filters[]=.sh&file-filters[]=No+extension&file-filters[]=dotfile can be useful

          1 Reply Last reply
          0
          • T tekka

            @zen85 correct, if the radio pins are different you have to recompile the bootloader.

            Z Offline
            Z Offline
            zen85
            wrote on last edited by zen85
            #5

            @tekka @mfalkvidd

            ok... some success but not really. The bootloader does not seem to work using my custom-boards where the ce and cs pin are switched? where does one have to put something like:

            #define RF24_CE_PIN 10
            #define RF24_CS_PIN 9
            ?

            should it be in the mysbootloader.c? because this did not work... or somewhere else?

            the line "#define SPI_PINS_CE9_CSN10" in the mysbootloader.c also worries me? but just switching the numbers does not work either and throws an error...

            T 1 Reply Last reply
            0
            • Z zen85

              @tekka @mfalkvidd

              ok... some success but not really. The bootloader does not seem to work using my custom-boards where the ce and cs pin are switched? where does one have to put something like:

              #define RF24_CE_PIN 10
              #define RF24_CS_PIN 9
              ?

              should it be in the mysbootloader.c? because this did not work... or somewhere else?

              the line "#define SPI_PINS_CE9_CSN10" in the mysbootloader.c also worries me? but just switching the numbers does not work either and throws an error...

              T Offline
              T Offline
              tekka
              Admin
              wrote on last edited by
              #6

              @zen85 You have to create a new CE/CSN definition here and adjust the init code here.

              Z 1 Reply Last reply
              1
              • T tekka

                @zen85 You have to create a new CE/CSN definition here and adjust the init code here.

                Z Offline
                Z Offline
                zen85
                wrote on last edited by zen85
                #7

                @tekka
                EDITED ANSWER*: it worked!

                • it did not work because of a typo... sorry for that....
                1 Reply Last reply
                1

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                16

                Online

                12.0k

                Users

                11.2k

                Topics

                113.4k

                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