Skip to content
  • 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. RPI Gateway - !TSM:INIT:TSP FAIL
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

RPI Gateway - !TSM:INIT:TSP FAIL

Scheduled Pinned Locked Moved Troubleshooting
19 Posts 6 Posters 6.4k 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.
  • mfalkviddM mfalkvidd

    @maxdor looks like the same problem as reported in https://github.com/mysensors/MySensors/issues/955
    Add --extra-cxxflags="-D__STDC_FORMAT_MACROS" to the configure command

    T Offline
    T Offline
    tchoblond59
    wrote on last edited by
    #10

    @mfalkvidd I have the same issue. Even with --extra-cxxflags="-D__STDC_FORMAT_MACROS".

    mfalkviddM 1 Reply Last reply
    0
    • T tchoblond59

      @mfalkvidd I have the same issue. Even with --extra-cxxflags="-D__STDC_FORMAT_MACROS".

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

      @tchoblond59 could you post the full configure command you used and info on what system you are trying to build on?
      gcc -v |& grep 'gcc version'
      grep PRETTY_NAME /etc/os-release

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tchoblond59
        wrote on last edited by tchoblond59
        #12

        @mfalkvidd
        ./configure --my-transport=nrf24 --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --extra-cxxflags="-D__STDC_FORMAT_MACROS"

        gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1)
        PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"

        mfalkviddM 1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #13

          Do you get same error even if you compile as ethernet gateway?

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tchoblond59
            wrote on last edited by
            #14

            make clean
            ./configure --my-gateway=ethernet --my-port=5003
            make

            Same error after this.

            1 Reply Last reply
            0
            • T tchoblond59

              @mfalkvidd
              ./configure --my-transport=nrf24 --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1 --extra-cxxflags="-D__STDC_FORMAT_MACROS"

              gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1)
              PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"

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

              @tchoblond59 thanks. So far, it seems your system that is unable to compile is the same as the system I was able to compile cleanly on. I wonder were the difference is.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tchoblond59
                wrote on last edited by
                #16

                I open an issue on github
                https://github.com/mysensors/MySensors/issues/980

                Hope i will be able to fix it. I will try to reinstall a raspbian when i have some times

                Thanks for the help

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tchoblond59
                  wrote on last edited by
                  #17

                  For the moment i am able to compile by going to previous commit
                  git checkout 9e5a1e32
                  make

                  (I haven't test with a nrf24 but i can launch mysgw )

                  1 Reply Last reply
                  1
                  • I Offline
                    I Offline
                    Inso
                    wrote on last edited by
                    #18

                    I chave the exact same issue. Made the installation of Raspi and MySensors quite often last days because of problems with the NRF24. Now, as it finally worked, the installation of my clean final version crashes -.-.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mickecarlsson
                      wrote on last edited by mickecarlsson
                      #19

                      Same error here.
                      gcc version 4.9.2 (Raspbian 4.9.2-10)
                      PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
                      Replacing

                      printf("bcm2835_delayMicroseconds %" PRIu64 "\n", micros);
                      

                      with

                      printf("bcm2835_delayMicroseconds %lld\n", micros);
                      

                      in file drivers/BCM/bcm2835.c fixed the issue.

                      EDIT:
                      It did compile, but it segfaults when I try to start mysgw
                      Time to get a fresh copy from git

                      EDIT2:
                      Fix from commit in bug report fixed it.

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


                      18

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      Posts


                      Copyright 2019 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
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular