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. Controllers
  3. Domoticz
  4. nrf24l01+ RPi2 direct connection problem

nrf24l01+ RPi2 direct connection problem

Scheduled Pinned Locked Moved Domoticz
13 Posts 5 Posters 6.8k Views 5 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.
  • M Mediacj

    I didn't get it to work unfortunately.

    alexsh1A Offline
    alexsh1A Offline
    alexsh1
    wrote on last edited by alexsh1
    #4

    @Mediacj said:

    I didn't get it to work unfortunately.

    Damn! All google links are only to this website and it looks like there is no solution to this issue for now. Thanks for your reply though

    1 Reply Last reply
    0
    • S Offline
      S Offline
      salvato
      wrote on last edited by
      #5

      Hello.
      I think that the problem related to the messsage:
      error: invalid suffix "x" on integer constant
      come from a problem in the Makefile of the librf24-bcm.
      There you can find the following line:

      IOBASE := $(shell cat /proc/iomem | grep bcm2708_vcio | cut -f 1 -d "-")

      This try to find the memory base address of the peripherals in the Raspberry that is variable between the different models.

      In my Raspberry the /proc/iomem file does not contain any information about bcm2708_vcio and the string returned is empty (in my case should be 0x20000000)

      You could try to hard code the correct value in the Makefile.

      Hope this help

      1 Reply Last reply
      0
      • alexsh1A Offline
        alexsh1A Offline
        alexsh1
        wrote on last edited by
        #6

        @salvato Thanks very much!
        The makefile has to be changed to

        This is for the standard PI
        amend the following:
        #define BCM2835_PERI_BASE 0x3F000000

        I can confirm - now it works and everything compiles fine!

        S 1 Reply Last reply
        1
        • alexsh1A alexsh1

          @salvato Thanks very much!
          The makefile has to be changed to

          This is for the standard PI
          amend the following:
          #define BCM2835_PERI_BASE 0x3F000000

          I can confirm - now it works and everything compiles fine!

          S Offline
          S Offline
          salvato
          wrote on last edited by
          #7

          @alexsh1
          Happy to have solved your problem.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lubo
            wrote on last edited by
            #8

            Hi guys, i have the same problem with compiling librf24-bcm library on RPI2. I have changed line "#define BCM2835_PERI_BASE 0x20000000" to "#define BCM2835_PERI_BASE 0x3F000000" in bcm2835.h file but it didnt help. I still get compiling error "bcm2835.c:1253:79: error: invalid suffix "x" on integer constant
            Makefile:52: recipe for target 'bcm2835.o' failed". What else need to be changed ? thanks

            L 1 Reply Last reply
            0
            • L lubo

              Hi guys, i have the same problem with compiling librf24-bcm library on RPI2. I have changed line "#define BCM2835_PERI_BASE 0x20000000" to "#define BCM2835_PERI_BASE 0x3F000000" in bcm2835.h file but it didnt help. I still get compiling error "bcm2835.c:1253:79: error: invalid suffix "x" on integer constant
              Makefile:52: recipe for target 'bcm2835.o' failed". What else need to be changed ? thanks

              L Offline
              L Offline
              lubo
              wrote on last edited by
              #9

              @lubo
              oh i had to update CCFLAGS += -D BCM2835_PERI_BASE=0x${IOBASE} to CCFLAGS += -D BCM2835_PERI_BASE=0x3F000000 in makefile and it works now thanks :)

              1 Reply Last reply
              0
              • alexsh1A Offline
                alexsh1A Offline
                alexsh1
                wrote on last edited by
                #10

                @lubo Ok, you have figured it out. Excellent! It is the makefile which has to be changed

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  salvato
                  wrote on last edited by
                  #11

                  well... I made a different modification:
                  I changed the row
                  IOBASE := $(shell cat /proc/iomem | grep bcm2708_vcio | cut -f 1 -d "-")
                  in
                  IOBASE := 20000000

                  (3F000000 in your case)

                  1 Reply Last reply
                  1
                  • E Offline
                    E Offline
                    Eawo
                    wrote on last edited by
                    #12

                    Wow nice and easy to follow. I had the error but the error thread helped me.
                    Just wondering why does it say its running "MySensors Gateway USB
                    Version: 1.4"

                    alexsh1A 1 Reply Last reply
                    0
                    • E Eawo

                      Wow nice and easy to follow. I had the error but the error thread helped me.
                      Just wondering why does it say its running "MySensors Gateway USB
                      Version: 1.4"

                      alexsh1A Offline
                      alexsh1A Offline
                      alexsh1
                      wrote on last edited by
                      #13

                      Because it is running MS v1.4 (current is v1.5 and development is v1.6) :-)
                      If you wonder why it says USB, it emulates USB.

                      @Eawo said:

                      Just wondering why does it say its running "MySensors Gateway USB
                      Version: 1.4"

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


                      14

                      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