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.
  • d00616D d00616

    @neverdie said in 💬 MySensors NRF5 Platform:

    I think I made the changes you recommended, but now I'm getting:
    Board MyBoard_nRF51822 (platform nRF5, package MySensors) is unknown

    Error compiling for board MyBoardNRF5 nRF51822.

    I had the same message. In my case, I have uninstalled arduino-nrf5, cleared files, which are not removed from packages directory (the 0.2.1 MyBoard files) and reinstalled arduino-nrf5. After restarting Arduino it was fine.

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

    @d00616
    I'm still getting the error. I tried deleting arduino-nrf5 library and re-installing it fresh, but I don't know how, on Windows, to clear files and remove them from the packages directory. I'm not even aware of their being a "packages directory." Sorry.

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

      @d00616 You mentioned that it works only with a particular version of GCC. Does that mean I need to have a particular version of the Arduino IDE installed? I'm currently running the latest version of Windows Arduino IDE, which is 1.8.5.

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

        The irony of it all is that the earlier setup from 3 or so weeks ago seemed to work just fine. Unfortunately, I no longer have any idea how to get back to that. :sob:

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

          @NeverDie
          C:\Users...\AppData\Local\Arduino15\packages\MySensors\

          NeverDieN 1 Reply Last reply
          0
          • scalzS scalz

            @NeverDie
            C:\Users...\AppData\Local\Arduino15\packages\MySensors\

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

            @scalz said in 💬 MySensors NRF5 Platform:

            @NeverDie
            C:\Users...\AppData\Local\Arduino15\packages\MySensors\

            Thanks!

            The good news is that it compiles now. Also, the pin mapping for an LED is working. However, the bad news is that pin mapping for Serial Rx and Tx doesn't seem to be working, so I can't read any serial debug messages. Therefore, not sure if I2C is working or not.

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

              I did another purge and reinsatall of the boards, and now serial is working. :)

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

                Unfortunately, it does not appear that I2C is working.

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

                  Curiously, I2c does seem to work on a nRF52 DK using the myboard board definition.

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

                    However, it doesn't seem to be working on the nrf51.

                    1 Reply Last reply
                    0
                    • NeverDieN NeverDie

                      @d00616 You mentioned that it works only with a particular version of GCC. Does that mean I need to have a particular version of the Arduino IDE installed? I'm currently running the latest version of Windows Arduino IDE, which is 1.8.5.

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

                      @neverdie said in 💬 MySensors NRF5 Platform:

                      @d00616 You mentioned that it works only with a particular version of GCC. Does that mean I need to have a particular version of the Arduino IDE installed? I'm currently running the latest version of Windows Arduino IDE, which is 1.8.5.

                      The GCC version is part of the arduino-nrf5 distribution.

                      @neverdie said in 💬 MySensors NRF5 Platform:

                      Unfortunately, it does not appear that I2C is working.

                      I have I2C and serial running with a NRF52832.
                      You can try to remove the compat_pin_mapping line and add the 0.1.0 pin map at this place. Then the board definition is nearly the 0.1.0 version.

                      @neverdie said in 💬 MySensors NRF5 Platform:

                      However, it doesn't seem to be working on the nrf51.

                      I check the NRF51 board. What do you mean with no working?

                      NeverDieN 4 Replies Last reply
                      0
                      • NeverDieN Offline
                        NeverDieN Offline
                        NeverDie
                        Hero Member
                        wrote on last edited by
                        #130

                        I hope that narrows down the likely cause of the problem. The fact that it's working on the nRF52 gives me some hope it can be made to work on the nRF51.

                        1 Reply Last reply
                        0
                        • d00616D d00616

                          @neverdie said in 💬 MySensors NRF5 Platform:

                          @d00616 You mentioned that it works only with a particular version of GCC. Does that mean I need to have a particular version of the Arduino IDE installed? I'm currently running the latest version of Windows Arduino IDE, which is 1.8.5.

                          The GCC version is part of the arduino-nrf5 distribution.

                          @neverdie said in 💬 MySensors NRF5 Platform:

                          Unfortunately, it does not appear that I2C is working.

                          I have I2C and serial running with a NRF52832.
                          You can try to remove the compat_pin_mapping line and add the 0.1.0 pin map at this place. Then the board definition is nearly the 0.1.0 version.

                          @neverdie said in 💬 MySensors NRF5 Platform:

                          However, it doesn't seem to be working on the nrf51.

                          I check the NRF51 board. What do you mean with no working?

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

                          @d00616 said in 💬 MySensors NRF5 Platform:

                          I check the NRF51 board. What do you mean with no working?

                          The nRF51 can't find the si7021 device, even though it's connected.

                          1 Reply Last reply
                          0
                          • d00616D d00616

                            @neverdie said in 💬 MySensors NRF5 Platform:

                            @d00616 You mentioned that it works only with a particular version of GCC. Does that mean I need to have a particular version of the Arduino IDE installed? I'm currently running the latest version of Windows Arduino IDE, which is 1.8.5.

                            The GCC version is part of the arduino-nrf5 distribution.

                            @neverdie said in 💬 MySensors NRF5 Platform:

                            Unfortunately, it does not appear that I2C is working.

                            I have I2C and serial running with a NRF52832.
                            You can try to remove the compat_pin_mapping line and add the 0.1.0 pin map at this place. Then the board definition is nearly the 0.1.0 version.

                            @neverdie said in 💬 MySensors NRF5 Platform:

                            However, it doesn't seem to be working on the nrf51.

                            I check the NRF51 board. What do you mean with no working?

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

                            @d00616 said in 💬 MySensors NRF5 Platform:

                            I have I2C and serial running with a NRF52832.

                            Yes, it does seem to work on the nRF52832. Just not presently on the nRF51822.

                            d00616D 1 Reply Last reply
                            0
                            • d00616D d00616

                              @neverdie said in 💬 MySensors NRF5 Platform:

                              @d00616 You mentioned that it works only with a particular version of GCC. Does that mean I need to have a particular version of the Arduino IDE installed? I'm currently running the latest version of Windows Arduino IDE, which is 1.8.5.

                              The GCC version is part of the arduino-nrf5 distribution.

                              @neverdie said in 💬 MySensors NRF5 Platform:

                              Unfortunately, it does not appear that I2C is working.

                              I have I2C and serial running with a NRF52832.
                              You can try to remove the compat_pin_mapping line and add the 0.1.0 pin map at this place. Then the board definition is nearly the 0.1.0 version.

                              @neverdie said in 💬 MySensors NRF5 Platform:

                              However, it doesn't seem to be working on the nrf51.

                              I check the NRF51 board. What do you mean with no working?

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

                              @d00616 said in 💬 MySensors NRF5 Platform:

                              I check the NRF51 board. What do you mean with no working?

                              I'm running the sparkfun si7021 code. When I run it on the nrf52832, it yields:

                              Si7021 Found
                              Temp:70.51F, Humidity:40.71%
                              

                              which is correct, but when I run it on the nRF51822, the result is:

                              No Devices Detected
                              Temp:-51.85F, Humidity:-5.81%
                              

                              which is incorrect.

                              1 Reply Last reply
                              0
                              • NeverDieN NeverDie

                                @d00616 said in 💬 MySensors NRF5 Platform:

                                I have I2C and serial running with a NRF52832.

                                Yes, it does seem to work on the nRF52832. Just not presently on the nRF51822.

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

                                @neverdie said in 💬 MySensors NRF5 Platform:

                                @d00616 said in 💬 MySensors NRF5 Platform:

                                I have I2C and serial running with a NRF52832.

                                Yes, it does seem to work on the nRF52832. Just not presently on the nRF51822.

                                Can you check, if the device works with the "Generic NRF51822" board? You can edit the variant files in the arduino-nrf5\variants directory.
                                C:\Users...\AppData\Local\Arduino15\packages\sandeepmistry\hardware\nRF5\0.4.0\variants\Generic

                                NeverDieN 1 Reply Last reply
                                0
                                • d00616D d00616

                                  @neverdie said in 💬 MySensors NRF5 Platform:

                                  @d00616 said in 💬 MySensors NRF5 Platform:

                                  I have I2C and serial running with a NRF52832.

                                  Yes, it does seem to work on the nRF52832. Just not presently on the nRF51822.

                                  Can you check, if the device works with the "Generic NRF51822" board? You can edit the variant files in the arduino-nrf5\variants directory.
                                  C:\Users...\AppData\Local\Arduino15\packages\sandeepmistry\hardware\nRF5\0.4.0\variants\Generic

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

                                  @d00616 said in 💬 MySensors NRF5 Platform:

                                  @neverdie said in 💬 MySensors NRF5 Platform:

                                  @d00616 said in 💬 MySensors NRF5 Platform:

                                  I have I2C and serial running with a NRF52832.

                                  Yes, it does seem to work on the nRF52832. Just not presently on the nRF51822.

                                  Can you check, if the device works with the "Generic NRF51822" board? You can edit the variant files in the arduino-nrf5\variants directory.
                                  C:\Users...\AppData\Local\Arduino15\packages\sandeepmistry\hardware\nRF5\0.4.0\variants\Generic

                                  I tried, but I guess I'm not doing it right. I couldn't even get it to blink an LED that way.

                                  NeverDieN 1 Reply Last reply
                                  0
                                  • d00616D d00616

                                    @neverdie said in 💬 MySensors NRF5 Platform:

                                    @d00616 You mentioned that it works only with a particular version of GCC. Does that mean I need to have a particular version of the Arduino IDE installed? I'm currently running the latest version of Windows Arduino IDE, which is 1.8.5.

                                    The GCC version is part of the arduino-nrf5 distribution.

                                    @neverdie said in 💬 MySensors NRF5 Platform:

                                    Unfortunately, it does not appear that I2C is working.

                                    I have I2C and serial running with a NRF52832.
                                    You can try to remove the compat_pin_mapping line and add the 0.1.0 pin map at this place. Then the board definition is nearly the 0.1.0 version.

                                    @neverdie said in 💬 MySensors NRF5 Platform:

                                    However, it doesn't seem to be working on the nrf51.

                                    I check the NRF51 board. What do you mean with no working?

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

                                    @d00616 said in 💬 MySensors NRF5 Platform:

                                    You can try to remove the compat_pin_mapping line and add the 0.1.0 pin map at this place. Then the board definition is nearly the 0.1.0 version.

                                    So, I take it you are suggesting that in myboardnrf5.cpp, where it says:

                                    #ifdef MYBOARDNRF5
                                    #include <variant.h>
                                    #include <compat_pin_mapping.h>
                                    

                                    I replace

                                    #include <compat_pin_mapping.h>
                                    

                                    with what exactly? At this point I'm not even sure where 0.1.0 pin-map is, or even what it's called.

                                    1 Reply Last reply
                                    0
                                    • NeverDieN NeverDie

                                      @d00616 said in 💬 MySensors NRF5 Platform:

                                      @neverdie said in 💬 MySensors NRF5 Platform:

                                      @d00616 said in 💬 MySensors NRF5 Platform:

                                      I have I2C and serial running with a NRF52832.

                                      Yes, it does seem to work on the nRF52832. Just not presently on the nRF51822.

                                      Can you check, if the device works with the "Generic NRF51822" board? You can edit the variant files in the arduino-nrf5\variants directory.
                                      C:\Users...\AppData\Local\Arduino15\packages\sandeepmistry\hardware\nRF5\0.4.0\variants\Generic

                                      I tried, but I guess I'm not doing it right. I couldn't even get it to blink an LED that way.

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

                                      @neverdie said in 💬 MySensors NRF5 Platform:

                                      I tried, but I guess I'm not doing it right. I couldn't even get it to blink an LED that way.

                                      After I modify the generic variant board definition, is there some trick to making it go "live"?

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

                                        @NeverDie
                                        there is no trick.. it should work.
                                        d00616 said, for a test, to not use his defines, the method that you're used to.
                                        So change the defines you need in the generic variant file, then in arduino:
                                        0_1512738526575_2017-12-08_14-02-29.jpg

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

                                          I think this must be where the disconnect is happening. Where do I find the files or directory for Generic nRF51? The closest I see is a directory called just "Generic":
                                          0_1512751626224_ss1.png
                                          That's the one I tried modifying:
                                          0_1512751648657_ss2.png
                                          and it had no effect. So, I suspect there must be a different "generic nRF51" somewhere which is closely tied with the menu item you show the picture of. However, I don't see where.

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


                                          10

                                          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