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

    @neverdie
    Where is myBoardNrf5 so i can check?

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

    @rmtucker said in 💬 MySensors NRF5 Platform:

    @neverdie
    Where is myBoardNrf5 so i can check?

    https://github.com/d00616/ArduinoHwNRF5

    rmtuckerR 1 Reply Last reply
    0
    • NeverDieN NeverDie

      @rmtucker said in 💬 MySensors NRF5 Platform:

      @neverdie
      Where is myBoardNrf5 so i can check?

      https://github.com/d00616/ArduinoHwNRF5

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

      @neverdie
      That explains it i am not using code from d00616.
      I am only using the mysensors library and sandeeps stuff.
      Sorry mate.

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

        Well, in general, it's very handy for handling the pin mappings. Up until the latest release, it has worked fine. It still works fine now, except for the I2C pin mappings.

        rmtuckerR 1 Reply Last reply
        0
        • NeverDieN NeverDie

          Well, in general, it's very handy for handling the pin mappings. Up until the latest release, it has worked fine. It still works fine now, except for the I2C pin mappings.

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

          @neverdie
          Hmmm at what cost?
          Maybe i will stick with what i have got as it just works.:relaxed:

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

            @d00616 Maybe you can just make it like it was before, where there was only one pair of I2c pins, not two as in your upgraded version? Maybe then it would work again.

            1 Reply Last reply
            0
            • rmtuckerR rmtucker

              @neverdie
              That explains it i am not using code from d00616.
              I am only using the mysensors library and sandeeps stuff.
              Sorry mate.

              scalzS Offline
              scalzS Offline
              scalz
              Hardware Contributor
              wrote on last edited by scalz
              #114

              @rmtucker said in 💬 MySensors NRF5 Platform:

              That explains it i am not using code from d00616.
              I am only using the mysensors library and sandeeps stuff.
              Sorry mate.

              If you're using mysensors, then you're using d00616 code :) (i'm kidding)

              @NeverDie I can only confirm, it is related to the ArduinoHwNRF5 code as I have not the problem (I'm not using this part yet. I'm still using my own custom board definitions for the moment).
              This should be fixed soon (december can be a busy month..)

              1 Reply Last reply
              0
              • rmtuckerR rmtucker

                @neverdie
                Where is myBoardNrf5 so i can check?

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

                @rmtucker said in 💬 MySensors NRF5 Platform:

                Where is myBoardNrf5 so i can check?

                This is the better repository: https://github.com/mysensors/ArduinoHwNRF5

                @neverdie said in 💬 MySensors NRF5 Platform:

                @d00616 Maybe you can just make it like it was before, where there was only one pair of I2c pins, not two as in your upgraded version? Maybe then it would work again.

                Please give me some time. After an debug session with @scalz and @Yveaux, I think this is a tool chain (GCC 5.3) problem. The pin mapping array is part of the binary, but the Wire constructor gets an array with 0 while the Wire instance has pin mapping information.

                Yesterday, I had a try to port ArduinoHwNRF5 back to the same tool chain (GCC 4.8) used by Arduino Primo and SAMD boards. I think for compatibility, this is the best option.

                If I have no luck, I either remove the option of the pin remapping table or I go back to the old version. I think going back is no good idea, because the NRF52840 has more than one 32 GPIO, which requires advanced parameters.

                d00616D 1 Reply Last reply
                2
                • d00616D d00616

                  @rmtucker said in 💬 MySensors NRF5 Platform:

                  Where is myBoardNrf5 so i can check?

                  This is the better repository: https://github.com/mysensors/ArduinoHwNRF5

                  @neverdie said in 💬 MySensors NRF5 Platform:

                  @d00616 Maybe you can just make it like it was before, where there was only one pair of I2c pins, not two as in your upgraded version? Maybe then it would work again.

                  Please give me some time. After an debug session with @scalz and @Yveaux, I think this is a tool chain (GCC 5.3) problem. The pin mapping array is part of the binary, but the Wire constructor gets an array with 0 while the Wire instance has pin mapping information.

                  Yesterday, I had a try to port ArduinoHwNRF5 back to the same tool chain (GCC 4.8) used by Arduino Primo and SAMD boards. I think for compatibility, this is the best option.

                  If I have no luck, I either remove the option of the pin remapping table or I go back to the old version. I think going back is no good idea, because the NRF52840 has more than one 32 GPIO, which requires advanced parameters.

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

                  @d00616 said in 💬 MySensors NRF5 Platform:
                  Back from the compiler hell. There is no chance getting the GCC 4.8 to work without forking the arduino-nrf5 code. Compiling with GCC 4.8 has the same result.

                  I have changed the templates a little bit and moved the code for pin mapping generation. Now it works for me. Please give me some time to clear the code and create a new package (0.3.0). With the new package, you have to add '#include <compat_pin_mapping.h>' before '#end" in MyBoardNRF5.cpp. You have to rename the '#ifdefs' and '#define' in both board files to match MYBOARDNRF5 instead of MYNRF5BOARD.

                  d00616D 1 Reply Last reply
                  1
                  • d00616D d00616

                    @d00616 said in 💬 MySensors NRF5 Platform:
                    Back from the compiler hell. There is no chance getting the GCC 4.8 to work without forking the arduino-nrf5 code. Compiling with GCC 4.8 has the same result.

                    I have changed the templates a little bit and moved the code for pin mapping generation. Now it works for me. Please give me some time to clear the code and create a new package (0.3.0). With the new package, you have to add '#include <compat_pin_mapping.h>' before '#end" in MyBoardNRF5.cpp. You have to rename the '#ifdefs' and '#define' in both board files to match MYBOARDNRF5 instead of MYNRF5BOARD.

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

                    @d00616 said in 💬 MySensors NRF5 Platform:

                    I have changed the templates a little bit and moved the code for pin mapping generation. Now it works for me. Please give me some time to clear the code and create a new package (0.3.0). With the new package, you have to add '#include <compat_pin_mapping.h>' before '#end" in MyBoardNRF5.cpp. You have to rename the '#ifdefs' and '#define' in both board files to match MYBOARDNRF5 instead of MYNRF5BOARD.

                    Now, there is a new Version 0.3.0 for MyBoardNRF5 available. It can be installed via the Board Manager. Please change the templates like described above. I think, now the board definition is stable and ready to support other Arduino variants without changing the board definition.

                    NeverDieN 1 Reply Last reply
                    3
                    • d00616D d00616

                      @d00616 said in 💬 MySensors NRF5 Platform:

                      I have changed the templates a little bit and moved the code for pin mapping generation. Now it works for me. Please give me some time to clear the code and create a new package (0.3.0). With the new package, you have to add '#include <compat_pin_mapping.h>' before '#end" in MyBoardNRF5.cpp. You have to rename the '#ifdefs' and '#define' in both board files to match MYBOARDNRF5 instead of MYNRF5BOARD.

                      Now, there is a new Version 0.3.0 for MyBoardNRF5 available. It can be installed via the Board Manager. Please change the templates like described above. I think, now the board definition is stable and ready to support other Arduino variants without changing the board definition.

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

                      @d00616

                      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.
                      
                      d00616D 1 Reply Last reply
                      0
                      • NeverDieN NeverDie

                        @d00616

                        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.
                        
                        d00616D Offline
                        d00616D Offline
                        d00616
                        Contest Winner
                        wrote on last edited by
                        #119

                        @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 1 Reply Last reply
                        0
                        • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          11

                                          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