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. OpenHardware.io
  3. 💬 MySensors NRF5 Platform

💬 MySensors NRF5 Platform

Scheduled Pinned Locked Moved OpenHardware.io
contest2017nrf52mysensorsnrf5nrf51
210 Posts 20 Posters 42.9k Views 18 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.
  • rmtuckerR rmtucker

    Well guys after all that :frowning:
    I had not installed the development version from git.:angry:
    After installling the development version the i2c is working fine.
    Suprised no one else has done this??

    From git (for core development)
    
    Follow steps from Board Manager section above
    cd <SKETCHBOOK>, where <SKETCHBOOK> is your Arduino Sketch folder:
    OS X: ~/Documents/Arduino
    Linux: ~/Arduino
    Windows: ~/Documents/Arduino
    Create a folder named hardware, if it does not exist, and change directories to it
    Clone this repo: git clone https://github.com/sandeepmistry/arduino-nRF5.git sandeepmistry/nRF5
    Restart the Arduino IDE```
    rmtuckerR Offline
    rmtuckerR Offline
    rmtucker
    wrote on last edited by
    #55

    @rmtucker

    Please can someone update the instructions below to mention installing the development version

    Preparing Arduino
    Arduino doesn't support the nRF5 platform in a standard setup. You have to add the arduino-nRF5 platform via Arduino's Board Manager like described in https://github.com/sandeepmistry/arduino-nRF5/#installing
    
    
    Nca78N 1 Reply Last reply
    0
    • rmtuckerR rmtucker

      @rmtucker

      Please can someone update the instructions below to mention installing the development version

      Preparing Arduino
      Arduino doesn't support the nRF5 platform in a standard setup. You have to add the arduino-nRF5 platform via Arduino's Board Manager like described in https://github.com/sandeepmistry/arduino-nRF5/#installing
      
      
      Nca78N Offline
      Nca78N Offline
      Nca78
      Hardware Contributor
      wrote on last edited by
      #56

      @rmtucker said in 💬 MySensors NRF5 Platform:

      Please can someone update the instructions below to mention installing the development version

      Preparing Arduino
      Arduino doesn't support the nRF5 platform in a standard setup. You have to add the arduino-nRF5 platform via Arduino's Board Manager like described in https://github.com/sandeepmistry/arduino-nRF5/#installing
      
      

      @d00616 maybe ? :)

      NeverDieN 1 Reply Last reply
      0
      • Nca78N Nca78

        @rmtucker said in 💬 MySensors NRF5 Platform:

        Please can someone update the instructions below to mention installing the development version

        Preparing Arduino
        Arduino doesn't support the nRF5 platform in a standard setup. You have to add the arduino-nRF5 platform via Arduino's Board Manager like described in https://github.com/sandeepmistry/arduino-nRF5/#installing
        
        

        @d00616 maybe ? :)

        NeverDieN Offline
        NeverDieN Offline
        NeverDie
        Hero Member
        wrote on last edited by NeverDie
        #57

        If there are multiple libraries with the same name (as there seem to be), then how does the compiler know which one to pick? Is it just the first one whose name matches in whatever pathway it follows? Since it obviously compiled even though rmtucker was missing the proper libraries... this just sounds like a heartache waiting to happen unless everything is setup just-so. rmtucker's case seems to prove there won't be any warnings if it picks the wrong one.

        1 Reply Last reply
        0
        • scalzS Offline
          scalzS Offline
          scalz
          Hardware Contributor
          wrote on last edited by
          #58

          looking at d00616 howto it's explained to use Mysensors development branch (or maybe he added it today :) ). but that makes sense as this port is newer than master branch.

          @NeverDie
          it uses the core libraries depending on the board used in Arduino.

          mfalkviddM 1 Reply Last reply
          0
          • scalzS scalz

            looking at d00616 howto it's explained to use Mysensors development branch (or maybe he added it today :) ). but that makes sense as this port is newer than master branch.

            @NeverDie
            it uses the core libraries depending on the board used in Arduino.

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

            @scalz: I think @rmtucker was discussing using the development version of the sandeepmistry nrf5 Arduino library, it was not related to the MySensors library.

            rmtuckerR 1 Reply Last reply
            1
            • mfalkviddM mfalkvidd

              @scalz: I think @rmtucker was discussing using the development version of the sandeepmistry nrf5 Arduino library, it was not related to the MySensors library.

              rmtuckerR Offline
              rmtuckerR Offline
              rmtucker
              wrote on last edited by
              #60

              @mfalkvidd
              Sorry i should have made it more understandable.
              When you follow the instructions below as per sandeeps site it does not install the latest NR5 libraries that you see on github.

              Installing
              
              Board Manager
              
              Download and install the Arduino IDE (At least v1.6.12)
              Start the Arduino IDE
              Go into Preferences
              Add https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json as an "Additional Board Manager URL"
              Open the Boards Manager from the Tools -> Board menu and install "Nordic Semiconductor nRF5 Boards"
              Select your nRF5 board from the Tools -> Board menu
              

              Following this you must install the development version aswell which is what you see on github by doing this.

              From git (for core development)
              
              Follow steps from Board Manager section above
              cd <SKETCHBOOK>, where <SKETCHBOOK> is your Arduino Sketch folder:
              OS X: ~/Documents/Arduino
              Linux: ~/Arduino
              Windows: ~/Documents/Arduino
              Create a folder named hardware, if it does not exist, and change directories to it
              Clone this repo: git clone https://github.com/sandeepmistry/arduino-nRF5.git sandeepmistry/nRF5
              Restart the Arduino IDE
              

              Otherwise you run into all kinds of problems using the old library.

              1 Reply Last reply
              1
              • d00616D Offline
                d00616D Offline
                d00616
                Contest Winner
                wrote on last edited by
                #61

                I have added a note at the end of the installation documentation. To make things easier, I have opened an issue to update the Arduino-nRF5 release.

                https://github.com/sandeepmistry/arduino-nRF5/issues/182

                d00616D 1 Reply Last reply
                1
                • d00616D d00616

                  I have added a note at the end of the installation documentation. To make things easier, I have opened an issue to update the Arduino-nRF5 release.

                  https://github.com/sandeepmistry/arduino-nRF5/issues/182

                  d00616D Offline
                  d00616D Offline
                  d00616
                  Contest Winner
                  wrote on last edited by
                  #62

                  I2C should be fixed now. Version 0.4.0 is released!

                  rmtuckerR NeverDieN 2 Replies Last reply
                  1
                  • d00616D d00616

                    I2C should be fixed now. Version 0.4.0 is released!

                    rmtuckerR Offline
                    rmtuckerR Offline
                    rmtucker
                    wrote on last edited by
                    #63

                    @d00616
                    So should i be able to delete the hardware folder that the development version created from github and just update from boards manager?.

                    d00616D 1 Reply Last reply
                    1
                    • rmtuckerR rmtucker

                      @d00616
                      So should i be able to delete the hardware folder that the development version created from github and just update from boards manager?.

                      d00616D Offline
                      d00616D Offline
                      d00616
                      Contest Winner
                      wrote on last edited by
                      #64

                      @rmtucker said in 💬 MySensors NRF5 Platform:

                      So should i be able to delete the hardware folder that the development version created from github and just update from boards manager?.

                      If this don't work, remove all folder created by hardware and boards manager, close Arduino IDE and reinstall it via Boards Manager.

                      1 Reply Last reply
                      0
                      • F Offline
                        F Offline
                        Fabien
                        wrote on last edited by
                        #65

                        Hi, I don't us nrf52 yet but as i'm a platformio supporter, There is a new release for nrf52 platform with initial arduino framework support ! Good news, i think I will test nrf52 in few weeks.
                        https://github.com/platformio/platform-nordicnrf52/releases/tag/v1.2.0

                        1 Reply Last reply
                        1
                        • d00616D d00616

                          I2C should be fixed now. Version 0.4.0 is released!

                          NeverDieN Offline
                          NeverDieN Offline
                          NeverDie
                          Hero Member
                          wrote on last edited by
                          #66

                          @d00616 said in 💬 MySensors NRF5 Platform:

                          I2C should be fixed now. Version 0.4.0 is released!

                          To help clarify for others who are reading this: the Arduino IDE board manager let me upgrade to 0.4.0 from 0.3.0 by just clicking on the board entry "Nordic Semiconductor NRF5 Boards by Sandeep Mistry", selecting the 0.4.0 version, and then clicking Install.

                          1 Reply Last reply
                          1
                          • d00616D Offline
                            d00616D Offline
                            d00616
                            Contest Winner
                            wrote on last edited by
                            #67
                            1. I have updated the radio driver with fixes for some hardware errata.
                            2. I have updated the https://github.com/mysensors/ArduinoHwNRF5 with an enhanced definition format. File name and contents are changed! The board description is compatible with the NRF5 variant provided by Arduino, but it's not possible to use this variant at the moment.
                            NeverDieN 1 Reply Last reply
                            3
                            • d00616D d00616
                              1. I have updated the radio driver with fixes for some hardware errata.
                              2. I have updated the https://github.com/mysensors/ArduinoHwNRF5 with an enhanced definition format. File name and contents are changed! The board description is compatible with the NRF5 variant provided by Arduino, but it's not possible to use this variant at the moment.
                              NeverDieN Offline
                              NeverDieN Offline
                              NeverDie
                              Hero Member
                              wrote on last edited by
                              #68

                              @d00616 said in 💬 MySensors NRF5 Platform:

                              I have updated the radio driver with fixes for some hardware errata.

                              Where do we find the update? i.e. is it baked into the regular MySensors development code thread, or is it elsewhere?

                              1 Reply Last reply
                              0
                              • NeverDieN Offline
                                NeverDieN Offline
                                NeverDie
                                Hero Member
                                wrote on last edited by
                                #69

                                I'm guessing it's this one? https://github.com/mysensors/ArduinoHwNRF5

                                NeverDieN 1 Reply Last reply
                                1
                                • NeverDieN NeverDie

                                  I'm guessing it's this one? https://github.com/mysensors/ArduinoHwNRF5

                                  NeverDieN Offline
                                  NeverDieN Offline
                                  NeverDie
                                  Hero Member
                                  wrote on last edited by NeverDie
                                  #70

                                  I refreshed all the libraries. I'm able to compile and upload my sketches, but now it complains a lot about "invalid libraries."

                                  WARNING: Spurious .ci folder in 'MySensors' library
                                  WARNING: Spurious .mystools folder in 'MySensors' library
                                  Sketch uses 3836 bytes (0%) of program storage space. Maximum is 524288 bytes.
                                  Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-10-10:13)
                                  Licensed under GNU GPL v2
                                  For bug reports, read
                                     http://openocd.org/doc/doxygen/bugs.html
                                  debug_level: 0
                                  0
                                  adapter speed: 10000 kHz
                                  cortex_m reset_config sysresetreq
                                  nrf52.cpu: target state: halted
                                  target halted due to debug-request, current mode: Thread 
                                  xPSR: 0x01000000 pc: 0x000006e8 msp: 0x20010000
                                  ** Programming Started **
                                  auto erase enabled
                                  wrote 4096 bytes from file C:\Users\David\AppData\Local\Temp\arduino_build_255419/Interrupt_button_test_v005.ino.hex in 0.800001s (5.000 KiB/s)
                                  ** Programming Finished **
                                  ** Verify Started **
                                  verified 3964 bytes in 0.060000s (64.518 KiB/s)
                                  ** Verified OK **
                                  ** Resetting Target **
                                  shutdown command invoked
                                  Invalid library found in C:\Users\David\Documents\Arduino\libraries\arduino-nRF5: C:\Users\David\Documents\Arduino\libraries\arduino-nRF5
                                  Invalid library found in C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5: C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5
                                  Invalid library found in C:\Users\David\Documents\Arduino\libraries\arduino-nRF5: C:\Users\David\Documents\Arduino\libraries\arduino-nRF5
                                  Invalid library found in C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5: C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5
                                  
                                  d00616D 1 Reply Last reply
                                  0
                                  • NeverDieN NeverDie

                                    I refreshed all the libraries. I'm able to compile and upload my sketches, but now it complains a lot about "invalid libraries."

                                    WARNING: Spurious .ci folder in 'MySensors' library
                                    WARNING: Spurious .mystools folder in 'MySensors' library
                                    Sketch uses 3836 bytes (0%) of program storage space. Maximum is 524288 bytes.
                                    Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-10-10:13)
                                    Licensed under GNU GPL v2
                                    For bug reports, read
                                       http://openocd.org/doc/doxygen/bugs.html
                                    debug_level: 0
                                    0
                                    adapter speed: 10000 kHz
                                    cortex_m reset_config sysresetreq
                                    nrf52.cpu: target state: halted
                                    target halted due to debug-request, current mode: Thread 
                                    xPSR: 0x01000000 pc: 0x000006e8 msp: 0x20010000
                                    ** Programming Started **
                                    auto erase enabled
                                    wrote 4096 bytes from file C:\Users\David\AppData\Local\Temp\arduino_build_255419/Interrupt_button_test_v005.ino.hex in 0.800001s (5.000 KiB/s)
                                    ** Programming Finished **
                                    ** Verify Started **
                                    verified 3964 bytes in 0.060000s (64.518 KiB/s)
                                    ** Verified OK **
                                    ** Resetting Target **
                                    shutdown command invoked
                                    Invalid library found in C:\Users\David\Documents\Arduino\libraries\arduino-nRF5: C:\Users\David\Documents\Arduino\libraries\arduino-nRF5
                                    Invalid library found in C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5: C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5
                                    Invalid library found in C:\Users\David\Documents\Arduino\libraries\arduino-nRF5: C:\Users\David\Documents\Arduino\libraries\arduino-nRF5
                                    Invalid library found in C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5: C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5
                                    
                                    d00616D Offline
                                    d00616D Offline
                                    d00616
                                    Contest Winner
                                    wrote on last edited by
                                    #71

                                    @NeverDie said in 💬 MySensors NRF5 Platform:

                                    I refreshed all the libraries. I'm able to compile and upload my sketches, but now it complains a lot about "invalid libraries."

                                    At the moment, I cannot reproduce this with Linux and Arduino 1.8.2. I try to find out what's wrong.

                                    d00616D 1 Reply Last reply
                                    0
                                    • d00616D d00616

                                      @NeverDie said in 💬 MySensors NRF5 Platform:

                                      I refreshed all the libraries. I'm able to compile and upload my sketches, but now it complains a lot about "invalid libraries."

                                      At the moment, I cannot reproduce this with Linux and Arduino 1.8.2. I try to find out what's wrong.

                                      d00616D Offline
                                      d00616D Offline
                                      d00616
                                      Contest Winner
                                      wrote on last edited by d00616
                                      #72

                                      @d00616 said in 💬 MySensors NRF5 Platform:

                                      @NeverDie said in 💬 MySensors NRF5 Platform:

                                      I refreshed all the libraries. I'm able to compile and upload my sketches, but now it complains a lot about "invalid libraries."

                                      At the moment, I cannot reproduce this with Linux and Arduino 1.8.2. I try to find out what's wrong.

                                      Can you try to remove the .ci and .mystools folders?

                                      NeverDieN 1 Reply Last reply
                                      0
                                      • d00616D d00616

                                        @d00616 said in 💬 MySensors NRF5 Platform:

                                        @NeverDie said in 💬 MySensors NRF5 Platform:

                                        I refreshed all the libraries. I'm able to compile and upload my sketches, but now it complains a lot about "invalid libraries."

                                        At the moment, I cannot reproduce this with Linux and Arduino 1.8.2. I try to find out what's wrong.

                                        Can you try to remove the .ci and .mystools folders?

                                        NeverDieN Offline
                                        NeverDieN Offline
                                        NeverDie
                                        Hero Member
                                        wrote on last edited by
                                        #73

                                        @d00616 said in 💬 MySensors NRF5 Platform:

                                        Can you try to remove the .ci and .mystools folders?

                                        Done. So, here it is now:

                                        Archiving built core (caching) in: C:\Users\David\AppData\Local\Temp\arduino_cache_16539\core\core_MySensors_nRF5_MyBoard_nRF52832_bootcode_none,lfclk_lfxo,reset_notenable_2d457965a40837233e636c052c58b359.a
                                        Sketch uses 3872 bytes (0%) of program storage space. Maximum is 524288 bytes.
                                        Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-10-10:13)
                                        Licensed under GNU GPL v2
                                        For bug reports, read
                                        	http://openocd.org/doc/doxygen/bugs.html
                                        debug_level: 0
                                        0
                                        adapter speed: 10000 kHz
                                        cortex_m reset_config sysresetreq
                                        nrf52.cpu: target state: halted
                                        target halted due to debug-request, current mode: Thread 
                                        xPSR: 0x01000000 pc: 0x0000070c msp: 0x20010000
                                        ** Programming Started **
                                        auto erase enabled
                                        wrote 4096 bytes from file C:\Users\David\AppData\Local\Temp\arduino_build_610023/Interrupt_button_test_v006.ino.hex in 0.800001s (5.000 KiB/s)
                                        ** Programming Finished **
                                        ** Verify Started **
                                        verified 4000 bytes in 0.060000s (65.104 KiB/s)
                                        ** Verified OK **
                                        ** Resetting Target **
                                        shutdown command invoked
                                        Invalid library found in C:\Users\David\Documents\Arduino\libraries\arduino-nRF5: C:\Users\David\Documents\Arduino\libraries\arduino-nRF5
                                        Invalid library found in C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5: C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5
                                        Invalid library found in C:\Users\David\Documents\Arduino\libraries\arduino-nRF5: C:\Users\David\Documents\Arduino\libraries\arduino-nRF5
                                        Invalid library found in C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5: C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5
                                        

                                        BTW, I'm using the Windows version of Arduino IDE 1.8.5, which is the most current.

                                        d00616D 1 Reply Last reply
                                        0
                                        • NeverDieN NeverDie

                                          @d00616 said in 💬 MySensors NRF5 Platform:

                                          Can you try to remove the .ci and .mystools folders?

                                          Done. So, here it is now:

                                          Archiving built core (caching) in: C:\Users\David\AppData\Local\Temp\arduino_cache_16539\core\core_MySensors_nRF5_MyBoard_nRF52832_bootcode_none,lfclk_lfxo,reset_notenable_2d457965a40837233e636c052c58b359.a
                                          Sketch uses 3872 bytes (0%) of program storage space. Maximum is 524288 bytes.
                                          Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-10-10:13)
                                          Licensed under GNU GPL v2
                                          For bug reports, read
                                          	http://openocd.org/doc/doxygen/bugs.html
                                          debug_level: 0
                                          0
                                          adapter speed: 10000 kHz
                                          cortex_m reset_config sysresetreq
                                          nrf52.cpu: target state: halted
                                          target halted due to debug-request, current mode: Thread 
                                          xPSR: 0x01000000 pc: 0x0000070c msp: 0x20010000
                                          ** Programming Started **
                                          auto erase enabled
                                          wrote 4096 bytes from file C:\Users\David\AppData\Local\Temp\arduino_build_610023/Interrupt_button_test_v006.ino.hex in 0.800001s (5.000 KiB/s)
                                          ** Programming Finished **
                                          ** Verify Started **
                                          verified 4000 bytes in 0.060000s (65.104 KiB/s)
                                          ** Verified OK **
                                          ** Resetting Target **
                                          shutdown command invoked
                                          Invalid library found in C:\Users\David\Documents\Arduino\libraries\arduino-nRF5: C:\Users\David\Documents\Arduino\libraries\arduino-nRF5
                                          Invalid library found in C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5: C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5
                                          Invalid library found in C:\Users\David\Documents\Arduino\libraries\arduino-nRF5: C:\Users\David\Documents\Arduino\libraries\arduino-nRF5
                                          Invalid library found in C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5: C:\Users\David\Documents\Arduino\libraries\ArduinoHwNRF5
                                          

                                          BTW, I'm using the Windows version of Arduino IDE 1.8.5, which is the most current.

                                          d00616D Offline
                                          d00616D Offline
                                          d00616
                                          Contest Winner
                                          wrote on last edited by
                                          #74

                                          @NeverDie said in 💬 MySensors NRF5 Platform:

                                          BTW, I'm using the Windows version of Arduino IDE 1.8.5, which is the most current.

                                          I don't know the correct path on an Windows system. On my system the Sketches are in the ~/Arduino folder in my home directory (~). The arduino-nrf5 is in ~/.arduino15/packages/sandeepmistry/hardware/nRF5/0.4.0 and the ArduinoHwNRF5 files are in ~/.arduino15/packages/MySensors/hardware/nRF5/0.2.1

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


                                          12

                                          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