[SOLVED] - Building Firmware issue - fails at TARGET=app
-
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=appit 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 1Could somebody help with the cause of this problem??
Thanks.
-
Issue solved by doing a complete download of all sources then re-doing all steps again.
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