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. SecurityPersonalizer will not compile

SecurityPersonalizer will not compile

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 2 Posters 889 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.
  • rzyliusR Offline
    rzyliusR Offline
    rzylius
    wrote on last edited by
    #1

    hi,

    I am having trouble to compile security personalizer sketch for Sensebender GW
    https://github.com/mysensors/MySensors/tree/development/examples/SecurityPersonalizer

    I receive error log. any advise?

    regards, rimantas

    Arduino: 1.8.5 (Linux), Board: "Sensebender Gateway"
    
    /root/Arduino/SecurityPersonalizer_v11/SecurityPersonalizer_v11.ino: In function 'void write_eeprom_checksum()':
    SecurityPersonalizer_v11:697: error: 'EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS' was not declared in this scope
      hwWriteConfigBlock((void*)&hash[0], (void*)EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS, 1);
                                                 ^
    /root/Arduino/SecurityPersonalizer_v11/SecurityPersonalizer_v11.ino: In function 'void probe_and_print_peripherals()':
    SecurityPersonalizer_v11:1327: error: 'unique_id_t' was not declared in this scope
      unique_id_t uniqueID;
      ^
    SecurityPersonalizer_v11:1327: error: expected ';' before 'uniqueID'
      unique_id_t uniqueID;
                  ^
    SecurityPersonalizer_v11:1352: error: 'uniqueID' was not declared in this scope
      if (hwUniqueID(&uniqueID)) {
                      ^
    SecurityPersonalizer_v11:1352: error: 'hwUniqueID' was not declared in this scope
      if (hwUniqueID(&uniqueID)) {
                              ^
    exit status 1
    'EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS' was not declared in this scope
    
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.
    
    mfalkviddM 1 Reply Last reply
    0
    • rzyliusR rzylius

      hi,

      I am having trouble to compile security personalizer sketch for Sensebender GW
      https://github.com/mysensors/MySensors/tree/development/examples/SecurityPersonalizer

      I receive error log. any advise?

      regards, rimantas

      Arduino: 1.8.5 (Linux), Board: "Sensebender Gateway"
      
      /root/Arduino/SecurityPersonalizer_v11/SecurityPersonalizer_v11.ino: In function 'void write_eeprom_checksum()':
      SecurityPersonalizer_v11:697: error: 'EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS' was not declared in this scope
        hwWriteConfigBlock((void*)&hash[0], (void*)EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS, 1);
                                                   ^
      /root/Arduino/SecurityPersonalizer_v11/SecurityPersonalizer_v11.ino: In function 'void probe_and_print_peripherals()':
      SecurityPersonalizer_v11:1327: error: 'unique_id_t' was not declared in this scope
        unique_id_t uniqueID;
        ^
      SecurityPersonalizer_v11:1327: error: expected ';' before 'uniqueID'
        unique_id_t uniqueID;
                    ^
      SecurityPersonalizer_v11:1352: error: 'uniqueID' was not declared in this scope
        if (hwUniqueID(&uniqueID)) {
                        ^
      SecurityPersonalizer_v11:1352: error: 'hwUniqueID' was not declared in this scope
        if (hwUniqueID(&uniqueID)) {
                                ^
      exit status 1
      'EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS' was not declared in this scope
      
      This report would have more information with
      "Show verbose output during compilation"
      option enabled in File -> Preferences.
      
      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @rzylius which version of the MySensors library do you have installed? The sketch needs to match the library version (use the 2.1.1 sketch with MySensors 2.1.1, or the development sketch with the development version of MySensors).

      1 Reply Last reply
      0
      • mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by mfalkvidd
        #3

        The sketch compiles fine for me:

        Using board 'mysensors_gw_native' from platform in folder: C:\Users\Micke\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.5
        Using core 'arduino' from platform in folder: C:\Users\Micke\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.17
        ...
        Using library MySensors at version 2.2.0-rc.2 in folder: R:\Documents\Arduino\libraries\MySensors 
        Using library Wire at version 1.0 in folder: C:\Users\Micke\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.17\libraries\Wire 
        Sketch uses 20764 bytes (7%) of program storage space. Maximum is 262144 bytes.
        

        (Arduino IDE 1.8.5)

        rzyliusR 1 Reply Last reply
        0
        • mfalkviddM mfalkvidd

          The sketch compiles fine for me:

          Using board 'mysensors_gw_native' from platform in folder: C:\Users\Micke\AppData\Local\Arduino15\packages\MySensors\hardware\samd\1.0.5
          Using core 'arduino' from platform in folder: C:\Users\Micke\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.17
          ...
          Using library MySensors at version 2.2.0-rc.2 in folder: R:\Documents\Arduino\libraries\MySensors 
          Using library Wire at version 1.0 in folder: C:\Users\Micke\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.17\libraries\Wire 
          Sketch uses 20764 bytes (7%) of program storage space. Maximum is 262144 bytes.
          

          (Arduino IDE 1.8.5)

          rzyliusR Offline
          rzyliusR Offline
          rzylius
          wrote on last edited by
          #4

          @mfalkvidd I tested now on my windows machine with fresh install of arduino185. Mysenors library 2.1.1 , mysensors SAMD boards.

          the same outcome

          Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "Sensebender Gateway"
          
          Build options changed, rebuilding all
          C:\Users\rzylius\Documents\Arduino\SecurityPersonalizer\SecurityPersonalizer.ino: In function 'void write_eeprom_checksum()':
          
          SecurityPersonalizer:697: error: 'EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS' was not declared in this scope
          
            hwWriteConfigBlock((void*)&hash[0], (void*)EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS, 1);
          
                                                       ^
          
          C:\Users\rzylius\Documents\Arduino\SecurityPersonalizer\SecurityPersonalizer.ino: In function 'void probe_and_print_peripherals()':
          
          SecurityPersonalizer:1327: error: 'unique_id_t' was not declared in this scope
          
            unique_id_t uniqueID;
          
            ^
          
          SecurityPersonalizer:1327: error: expected ';' before 'uniqueID'
          
            unique_id_t uniqueID;
          
                        ^
          
          SecurityPersonalizer:1352: error: 'uniqueID' was not declared in this scope
          
            if (hwUniqueID(&uniqueID)) {
          
                            ^
          
          SecurityPersonalizer:1352: error: 'hwUniqueID' was not declared in this scope
          
            if (hwUniqueID(&uniqueID)) {
          
                                    ^
          
          exit status 1
          'EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS' was not declared in this scope
          
          This report would have more information with
          "Show verbose output during compilation"
          option enabled in File -> Preferences.
          
          
          mfalkviddM 1 Reply Last reply
          0
          • rzyliusR rzylius

            @mfalkvidd I tested now on my windows machine with fresh install of arduino185. Mysenors library 2.1.1 , mysensors SAMD boards.

            the same outcome

            Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "Sensebender Gateway"
            
            Build options changed, rebuilding all
            C:\Users\rzylius\Documents\Arduino\SecurityPersonalizer\SecurityPersonalizer.ino: In function 'void write_eeprom_checksum()':
            
            SecurityPersonalizer:697: error: 'EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS' was not declared in this scope
            
              hwWriteConfigBlock((void*)&hash[0], (void*)EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS, 1);
            
                                                         ^
            
            C:\Users\rzylius\Documents\Arduino\SecurityPersonalizer\SecurityPersonalizer.ino: In function 'void probe_and_print_peripherals()':
            
            SecurityPersonalizer:1327: error: 'unique_id_t' was not declared in this scope
            
              unique_id_t uniqueID;
            
              ^
            
            SecurityPersonalizer:1327: error: expected ';' before 'uniqueID'
            
              unique_id_t uniqueID;
            
                          ^
            
            SecurityPersonalizer:1352: error: 'uniqueID' was not declared in this scope
            
              if (hwUniqueID(&uniqueID)) {
            
                              ^
            
            SecurityPersonalizer:1352: error: 'hwUniqueID' was not declared in this scope
            
              if (hwUniqueID(&uniqueID)) {
            
                                      ^
            
            exit status 1
            'EEPROM_PERSONALIZATION_CHECKSUM_ADDRESS' was not declared in this scope
            
            This report would have more information with
            "Show verbose output during compilation"
            option enabled in File -> Preferences.
            
            
            mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by mfalkvidd
            #5

            @rzylius you opened the security personalizer sketch from File->Examples->MySensors ?
            Could you post the sketch?

            My suspicion is that you are still using the development version of the sketch.

            rzyliusR 1 Reply Last reply
            0
            • mfalkviddM mfalkvidd

              @rzylius you opened the security personalizer sketch from File->Examples->MySensors ?
              Could you post the sketch?

              My suspicion is that you are still using the development version of the sketch.

              rzyliusR Offline
              rzyliusR Offline
              rzylius
              wrote on last edited by
              #6

              @mfalkvidd , yes, I see. As I wrote in the first post I was using https://github.com/mysensors/MySensors/tree/development/examples/SecurityPersonalizer code.

              I checked with the Personizer code in the Library examples - it does compile, thanks.

              What I find a bit confusing - in the sketch in exampla library you have to make two keys - USER_SOFT_KEY and USER_KEY (when you do not use hw hashing, and when you do).

              I have mixed configurations. Should those keys be the same in my network for mixed configuration to work?

              thanks for help and sorry for confusion

              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