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] - Building Firmware issue - fails at TARGET=app

    Scheduled Pinned Locked Moved LoPy
    lopyfirmwarebuild
    2 Posts 1 Posters 1.0k Views 1 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.
    • T Offline
      thoppe
      last edited by thoppe

      Hi all,

      I am currently trying my hand at building some firmware.

      I am using Ubuntu 16.04LTS.

      I have done fresh clones of pycom-esp-idf, installed and built the latest toolchain (xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz) , and a fresh clone of pycom-micropython-sigfox.

      I have also changed IDF_PATHs.

      I have managed to get all the way up to the application building step without issues, using make BOARD=LOPY LORA_BAND=USE_BAND_915 TARGET=app it manages to get nearly all the way through but fails at:

      ........
      CC util/fifo.c
      CC util/socketfifo.c
      CC util/mpirq.c
      CC util/mpsleep.c
      CC util/timeutils.c
      CC telnet/telnet.c
      CC ftp/ftp.c
      CC ftp/updater.c
      CC build/LOPY_915/release/pins.c
      CC build/LOPY_915/release/frozen_mpy.c
      AR build/LOPY_915/release/application.a
      LINK build/LOPY_915/release/application.elf
      build/LOPY_915/release/application.a(ff.o):(.literal.validate+0x0): undefined reference to 'disk_status'
      build/LOPY_915/release/application.a(ff.o):(.literal.sync_window$part$5+0x0): undefined reference to 'disk_write'
      build/LOPY_915/release/application.a(ff.o):(.literal.move_window+0x0): undefined reference to 'disk_read'
      build/LOPY_915/release/application.a(ff.o):(.literal.sync_fs+0x0): undefined reference to 'disk_ioctl'
      build/LOPY_915/release/application.a(ff.o):(.literal.find_volume+0x18): undefined reference to 'disk_initialize'
      build/LOPY_915/release/application.a(ff.o): In function 'validate':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:4470: undefined reference to 'disk_status'
      build/LOPY_915/release/application.a(ff.o): In function 'sync_window':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:4470: undefined reference to 'disk_write'
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:4470: undefined reference to 'disk_write'
      build/LOPY_915/release/application.a(ff.o): In function 'move_window':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:4470: undefined reference to 'disk_read'
      build/LOPY_915/release/application.a(ff.o): In function 'sync_fs':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:4470: undefined reference to 'disk_write'
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:4470: undefined reference to 'disk_ioctl'
      build/LOPY_915/release/application.a(ff.o): In function 'find_volume':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:4470: undefined reference to 'disk_status'
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:4470: undefined reference to 'disk_initialize'
      build/LOPY_915/release/application.a(ff.o): In function 'f_read':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:4470: undefined reference to 'disk_read'
      build/LOPY_915/release/application.a(ff.o): In function 'f_write':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:4470: undefined reference to 'disk_write'
      build/LOPY_915/release/application.a(ff.o): In function 'f_mkfs':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:5268: undefined reference to 'disk_initialize'
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:5276: undefined reference to 'disk_ioctl'
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:5309: undefined reference to 'disk_ioctl'
      build/LOPY_915/release/application.a(ff.o): In function 'st_word':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:648: undefined reference to 'disk_write'
      build/LOPY_915/release/application.a(ff.o): In function 'f_mkfs':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:5609: undefined reference to 'disk_write'
      build/LOPY_915/release/application.a(ff.o): In function 'st_word':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:647: undefined reference to 'disk_write'
      build/LOPY_915/release/application.a(ff.o): In function 'f_mkfs':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:5617: undefined reference to 'disk_write'
      build/LOPY_915/release/application.a(ff.o): In function 'st_word':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:648: undefined reference to 'disk_write'
      build/LOPY_915/release/application.a(ff.o):/home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:5633: more undefined references to 'disk_write' follow
      build/LOPY_915/release/application.a(ff.o): In function 'f_mkfs':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:5670: undefined reference to 'disk_ioctl'
      build/LOPY_915/release/application.a(ff.o): In function 'st_dword':
      /home/tom/esp/pycom-micropython-sigfox/esp32/../lib/fatfs/ff.c:654: undefined reference to 'disk_write'
      collect2: error: ld returned 1 exit status
      application.mk:368: recipe for target 'build/LOPY_915/release/application.elf' failed
      make: *** [build/LOPY_915/release/application.elf] Error 1
      

      Could somebody help with the cause of this problem??

      Thanks.

      1 Reply Last reply Reply Quote 0
      • T Offline
        thoppe
        last edited by

        Issue solved by doing a complete download of all sources then re-doing all steps again.

        1 Reply Last reply Reply Quote 0

        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