Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    [SOLVED] Having issues build firmware from soure

    Scheduled Pinned Locked Moved Firmware
    lopyesp32
    6 Posts 4 Posters 2.5k Views 5 Watching
    Loading More Posts
    • 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.
    • J Offline
      Jonatan_Mc
      last edited by jmarcelino

      Hi. This is the first time a try to build the firmware from soure and i am getting a error.

      I have used the instruction from here:
      https://github.com/pycom/pycom-micropython-sigfox
      https://github.com/pycom/pycom-micropython-sigfox/tree/master/esp32

      $ cd ../mpy-cross
      $ make all

      • Compiled fine

      $ cd ../esp32
      $ make BOARD=LOPY -j5 TARGET=boot

      • Compiled fine

      make BOARD=LOPY -j5 LORA_BAND=USE_BAND_868 TARGET=app

      • Failed part way though

      C mods/moducrypto.c
      CC mods/machtimer.c
      CC mods/machtimer_alarm.c
      In file included from /root/esp/pycom-esp-idf/components/soc/esp32/include/soc/soc.h:20:0,
      from /root/esp/pycom-esp-idf/components/driver/include/driver/timer.h:19,
      from mods/machtimer_alarm.c:6:
      /root/esp/pycom-esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLUP_DIS':
      /root/esp/pycom-esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to '__builtin_choose_expr' not a constant
      _Static_assert(__builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG);
      .....................................................................................................................................................................................................
      ../py/mkrules.mk:47: recipe for target 'build/LOPY_868/release/mods/machtimer_alarm.o' failed
      make: *** [build/LOPY_868/release/mods/machtimer_alarm.o] Error 1

      [0_1498856183565_Build output.txt](Uploading 100%)
      My build enviroment is based on Debian 9
      Is anyne else have similer issues? Would very much appreciate help.

      Thanks!
      //Jonatan

      1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino
        last edited by jmarcelino

        Please try using the latest toolchain (1.22.0-61-gab8375a) instead of the older one linked to on the README (1.22.0-59)

        for 64-bit Linux:
        https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz

        for 32-bit Linux:
        https://dl.espressif.com/dl/xtensa-esp32-elf-linux32-1.22.0-61-gab8375a-5.2.0.tar.gz

        J 1 Reply Last reply Reply Quote 2
        • J Offline
          Jonatan_Mc
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • J Offline
            Jonatan_Mc @jmarcelino
            last edited by

            @jmarcelino

            That was it. It's working now.

            Thank you very much!

            1 Reply Last reply Reply Quote 0
            • P Offline
              pedro
              last edited by

              I had the same problem today, and i've searched for a solution for hours before finding this post. It did worked for me as well, please update your docuentation. I really love my wipy, but the lack of clear documentation is a bit of a problem for newbies like me. Please help us enjoing your fantastic work

              1 Reply Last reply Reply Quote 0
              • Charly86C Offline
                Charly86
                last edited by

                @jmarcelino said in [SOLVED] Having issues build firmware from soure:

                https://dl.espressif.com/dl/xtensa-esp32-elf-linux32-1.22.0-61-gab8375a-5.2.0.tar.gz

                once again, @jmarcelino saved my day, thanks

                1 Reply Last reply Reply Quote 1

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post

                Pycom on Twitter

                Pycom