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. compiling issue with MYSBootloader.

compiling issue with MYSBootloader.

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 4 Posters 3.0k 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.
  • D Offline
    D Offline
    Dheeraj
    Plugin Developer
    wrote on last edited by Dheeraj
    #1

    @tekka need your help here...

    not sure i'm missing something. getting following error while compiling MYSBootloader. OTABootloader working fine for me..

    Any idea what is the difference between two bootloaders.

    make: [clean] Error 1 (ignored)
    "avr-gcc" -x c -mno-interrupts -funsigned-char -funsigned-bitfields -DF_CPU=16000000L-Os -fno-inline-small-functions -fno-split-wide-types -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -Wall -mmcu=atmega328p -c -std=gnu99 -MD -MP -MF "MYSBootloader.d" -MT"MYSBootloader.d" -MT"MYSBootloader.o" -I../libraries/MySensors MYSBootloader.c -o MYSBootloader.o
    In file included from MYSBootloader.c:35:0:
    MYSBootloader.h:11:18: fatal error: boot.h: No such file or directory
    #include "boot.h"
    ^
    compilation terminated.
    make: *** [MYSBootloader.o] Error 1

    hekH 1 Reply Last reply
    0
    • D Dheeraj

      @tekka need your help here...

      not sure i'm missing something. getting following error while compiling MYSBootloader. OTABootloader working fine for me..

      Any idea what is the difference between two bootloaders.

      make: [clean] Error 1 (ignored)
      "avr-gcc" -x c -mno-interrupts -funsigned-char -funsigned-bitfields -DF_CPU=16000000L-Os -fno-inline-small-functions -fno-split-wide-types -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -Wall -mmcu=atmega328p -c -std=gnu99 -MD -MP -MF "MYSBootloader.d" -MT"MYSBootloader.d" -MT"MYSBootloader.o" -I../libraries/MySensors MYSBootloader.c -o MYSBootloader.o
      In file included from MYSBootloader.c:35:0:
      MYSBootloader.h:11:18: fatal error: boot.h: No such file or directory
      #include "boot.h"
      ^
      compilation terminated.
      make: *** [MYSBootloader.o] Error 1

      hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      @Dheeraj

      You should probably ping @tekka here.

      D 1 Reply Last reply
      0
      • hekH hek

        @Dheeraj

        You should probably ping @tekka here.

        D Offline
        D Offline
        Dheeraj
        Plugin Developer
        wrote on last edited by
        #3

        @hek said:

        h

        ok thanks.

        tekkaT 1 Reply Last reply
        0
        • D Dheeraj

          @hek said:

          h

          ok thanks.

          tekkaT Offline
          tekkaT Offline
          tekka
          Admin
          wrote on last edited by tekka
          #4

          @Dheeraj try changing in MYSBootloader.h

          #include "boot.h"

          to

          #include <avr/boot.h>

          that should eliminate the reported error.

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vikasjee
            wrote on last edited by vikasjee
            #5

            By any chance, can we change the CE and CSN pins from 9-10 to 7-8 in the MYSBootloader safely and easily? I tried running through the code but stopped short at MYSBootloaderHW.h file where
            #define SPI_CSN 2 // Arduino Pin 10 <-> Bit 2 of port B
            #define SPI_CE 1 // Arduino Pin 9 <-> Bit 1 of port B
            have been defined and since pins 7-8 change would mean the port change the operations may differ.
            I am using the 9-10 pins elsewhere for their PWM.

            tekkaT 1 Reply Last reply
            0
            • V vikasjee

              By any chance, can we change the CE and CSN pins from 9-10 to 7-8 in the MYSBootloader safely and easily? I tried running through the code but stopped short at MYSBootloaderHW.h file where
              #define SPI_CSN 2 // Arduino Pin 10 <-> Bit 2 of port B
              #define SPI_CE 1 // Arduino Pin 9 <-> Bit 1 of port B
              have been defined and since pins 7-8 change would mean the port change the operations may differ.
              I am using the 9-10 pins elsewhere for their PWM.

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

              @vikasjee Moving CSN and CE to PORTA should work - do not forget to set DDRA accordingly.

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


              29

              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