GrumpyOldPizza / ArduinoCore-stm32l0

Arduino Core for STM32L0
125 stars 67 forks source link

Linux path issue #17

Closed SloMusti closed 6 years ago

SloMusti commented 6 years ago

I have installed this repository as instructed on Ubuntu and ran into the following error:

/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.5/tools/linux//dfu-suffix: no such file or directory Error compiling for board Cricket-L082CZ.

edit: above error output did not show correctly

The files are confirmed in the right place, however there is a redundant / in the path, which I can not figure out where from.

GrumpyOldPizza commented 6 years ago

Can you append a screen shot of the error log ?

On Sat, Jul 7, 2018, 9:51 AM SloMusti notifications@github.com wrote:

I have installed this repository as instructed on Ubuntu and ran into the following error:

Error compiling for board Cricket-L082CZ.

The files are confirmed in the right place, however there is a redundant / in the path, which I can not figure out where from.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/ArduinoCore-stm32l0/issues/17, or mute the thread https://github.com/notifications/unsubscribe-auth/AG4QfJZdQXXgOUNIt4luPdoa-m0T6N1aks5uENkEgaJpZM4VGZxv .

SloMusti commented 6 years ago

Full Arduino debug output on setting with all messages:

/home/musti/Projects/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/musti/Projects/arduino-1.8.5/hardware -hardware /home/musti/.arduino15/packages -hardware /home/musti/Arduino/hardware -tools /home/musti/Projects/arduino-1.8.5/tools-builder -tools /home/musti/Projects/arduino-1.8.5/hardware/tools/avr -tools /home/musti/.arduino15/packages -built-in-libraries /home/musti/Projects/arduino-1.8.5/libraries -libraries /home/musti/Arduino/libraries -fqbn=TleraCorp:stm32l0:Cricket-L082CZ:usb=cdc,dosfs=none,speed=32,opt=os -vid-pid=0X2341_0X8053 -ide-version=10805 -build-path /tmp/arduino_build_533590 -warnings=all -build-cache /tmp/arduino_cache_307305 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -verbose /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/examples/LoRaWAN_Join_ABP/LoRaWAN_Join_ABP.ino
/home/musti/Projects/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/musti/Projects/arduino-1.8.5/hardware -hardware /home/musti/.arduino15/packages -hardware /home/musti/Arduino/hardware -tools /home/musti/Projects/arduino-1.8.5/tools-builder -tools /home/musti/Projects/arduino-1.8.5/hardware/tools/avr -tools /home/musti/.arduino15/packages -built-in-libraries /home/musti/Projects/arduino-1.8.5/libraries -libraries /home/musti/Arduino/libraries -fqbn=TleraCorp:stm32l0:Cricket-L082CZ:usb=cdc,dosfs=none,speed=32,opt=os -vid-pid=0X2341_0X8053 -ide-version=10805 -build-path /tmp/arduino_build_533590 -warnings=all -build-cache /tmp/arduino_cache_307305 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -verbose /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/examples/LoRaWAN_Join_ABP/LoRaWAN_Join_ABP.ino
Using board 'Cricket-L082CZ' from platform in folder: /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6
Using core 'arduino' from platform in folder: /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6
Detecting libraries used...
"/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions  -w -x c++ -E -CC -D_SYSTEM_CORE_CLOCK_=32000000L -DARDUINO=10805 -DARDUINO_STM32L0_CRICKET -DARDUINO_ARCH_STM32L0  -DSTM32L082xx -march=armv6-m -mthumb -mabi=aapcs -mfloat-abi=soft -fsingle-precision-constant -DUSB_VID=0x1209 -DUSB_PID=0x6664 -DUSB_DID=0xffff '-DUSB_MANUFACTURER="Tlera Corporation"' '-DUSB_PRODUCT="Cricket"' '-DUSB_TYPE=USB_TYPE_CDC' -DDOSFS_SDCARD=0 -DDOSFS_SFLASH=0 "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Device/ST/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/cores/arduino" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/variants/Cricket-L082CZ" "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp" -o "/dev/null"
"/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions  -w -x c++ -E -CC -D_SYSTEM_CORE_CLOCK_=32000000L -DARDUINO=10805 -DARDUINO_STM32L0_CRICKET -DARDUINO_ARCH_STM32L0  -DSTM32L082xx -march=armv6-m -mthumb -mabi=aapcs -mfloat-abi=soft -fsingle-precision-constant -DUSB_VID=0x1209 -DUSB_PID=0x6664 -DUSB_DID=0xffff '-DUSB_MANUFACTURER="Tlera Corporation"' '-DUSB_PRODUCT="Cricket"' '-DUSB_TYPE=USB_TYPE_CDC' -DDOSFS_SDCARD=0 -DDOSFS_SFLASH=0 "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Device/ST/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/cores/arduino" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/variants/Cricket-L082CZ" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/src" "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp" -o "/dev/null"
Using cached library dependencies for file: /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/src/LoRaWAN.cpp
Generating function prototypes...
"/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions  -w -x c++ -E -CC -D_SYSTEM_CORE_CLOCK_=32000000L -DARDUINO=10805 -DARDUINO_STM32L0_CRICKET -DARDUINO_ARCH_STM32L0  -DSTM32L082xx -march=armv6-m -mthumb -mabi=aapcs -mfloat-abi=soft -fsingle-precision-constant -DUSB_VID=0x1209 -DUSB_PID=0x6664 -DUSB_DID=0xffff '-DUSB_MANUFACTURER="Tlera Corporation"' '-DUSB_PRODUCT="Cricket"' '-DUSB_TYPE=USB_TYPE_CDC' -DDOSFS_SDCARD=0 -DDOSFS_SFLASH=0 "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Device/ST/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/cores/arduino" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/variants/Cricket-L082CZ" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/src" "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp" -o "/tmp/arduino_build_533590/preproc/ctags_target_for_gcc_minus_e.cpp"
"/home/musti/Projects/arduino-1.8.5/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_533590/preproc/ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -Wall -Wextra -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions -MMD -D_SYSTEM_CORE_CLOCK_=32000000L -DARDUINO=10805 -DARDUINO_STM32L0_CRICKET -DARDUINO_ARCH_STM32L0  -DSTM32L082xx -march=armv6-m -mthumb -mabi=aapcs -mfloat-abi=soft -fsingle-precision-constant -DUSB_VID=0x1209 -DUSB_PID=0x6664 -DUSB_DID=0xffff '-DUSB_MANUFACTURER="Tlera Corporation"' '-DUSB_PRODUCT="Cricket"' '-DUSB_TYPE=USB_TYPE_CDC' -DDOSFS_SDCARD=0 -DDOSFS_SFLASH=0 "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Device/ST/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/cores/arduino" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/variants/Cricket-L082CZ" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/src" "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp" -o "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp.o"
Compiling libraries...
Compiling library "LoRaWAN"
Using previously compiled file: /tmp/arduino_build_533590/libraries/LoRaWAN/LoRaWAN.cpp.o
Compiling core...
Using previously compiled file: /tmp/arduino_build_533590/core/variant.cpp.o
Using precompiled core
Linking everything together...
"/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc"  "-L/tmp/arduino_build_533590" -g -Os -Wl,--gc-sections -save-temps  -DSTM32L082xx -march=armv6-m -mthumb -mabi=aapcs -mfloat-abi=soft -fsingle-precision-constant -DUSB_VID=0x1209 -DUSB_PID=0x6664 -DUSB_DID=0xffff '-DUSB_MANUFACTURER="Tlera Corporation"' '-DUSB_PRODUCT="Cricket"' '-DUSB_TYPE=USB_TYPE_CDC' -DDOSFS_SDCARD=0 -DDOSFS_SFLASH=0 "-T/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/variants/Cricket-L082CZ/linker_scripts/STM32L082CZ_FLASH.ld" "-Wl,-Map,/tmp/arduino_build_533590/LoRaWAN_Join_ABP.ino.map" --specs=nano.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "/tmp/arduino_build_533590/LoRaWAN_Join_ABP.ino.elf" "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp.o" "/tmp/arduino_build_533590/libraries/LoRaWAN/LoRaWAN.cpp.o" "/tmp/arduino_build_533590/core/variant.cpp.o" -Wl,--start-group "/tmp/arduino_build_533590/../arduino_cache_307305/core/core_TleraCorp_stm32l0_Cricket-L082CZ_usb_cdc,dosfs_none,speed_32,opt_os_b7537f2d7e3201f4873199069f92d27d.a"  -Wl,--end-group "-L/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/STM32L0xx/Lib" "-L/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Lib" -lstm32l082xx -larm_cortexM0l_math -lc -lm
"/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-objcopy" -O binary  "/tmp/arduino_build_533590/LoRaWAN_Join_ABP.ino.elf" "/tmp/arduino_build_533590/LoRaWAN_Join_ABP.ino.dfu"
"/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/tools/linux//dfu-suffix"  -v "0x1209" -p "0x6664" -d "0xffff" -a "/tmp/arduino_build_533590/LoRaWAN_Join_ABP.ino.dfu"
Using library LoRaWAN at version 1.1.0 in folder: /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN 
fork/exec /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/tools/linux//dfu-suffix: no such file or directory
Error compiling for board Cricket-L082CZ.
GrumpyOldPizza commented 6 years ago

Got a fix for this, I'd think. The "//" might be the issue. Not sure why it would be, because this works on my system quite well.

Can you check you have a /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/tools/linux/dfu-suffix and that it's executable (and readable) ?

On Sat, Jul 7, 2018 at 10:24 AM, SloMusti notifications@github.com wrote:

Full Arduino debug output on setting with all messages:

/home/musti/Projects/arduino-1.8.5/arduino-builder -dump-prefs -logger=machine -hardware /home/musti/Projects/arduino-1.8.5/hardware -hardware /home/musti/.arduino15/packages -hardware /home/musti/Arduino/hardware -tools /home/musti/Projects/arduino-1.8.5/tools-builder -tools /home/musti/Projects/arduino-1.8.5/hardware/tools/avr -tools /home/musti/.arduino15/packages -built-in-libraries /home/musti/Projects/arduino-1.8.5/libraries -libraries /home/musti/Arduino/libraries -fqbn=TleraCorp:stm32l0:Cricket-L082CZ:usb=cdc,dosfs=none,speed=32,opt=os -vid-pid=0X2341_0X8053 -ide-version=10805 -build-path /tmp/arduino_build_533590 -warnings=all -build-cache /tmp/arduino_cache_307305 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -verbose /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/examples/LoRaWAN_Join_ABP/LoRaWAN_Join_ABP.ino /home/musti/Projects/arduino-1.8.5/arduino-builder -compile -logger=machine -hardware /home/musti/Projects/arduino-1.8.5/hardware -hardware /home/musti/.arduino15/packages -hardware /home/musti/Arduino/hardware -tools /home/musti/Projects/arduino-1.8.5/tools-builder -tools /home/musti/Projects/arduino-1.8.5/hardware/tools/avr -tools /home/musti/.arduino15/packages -built-in-libraries /home/musti/Projects/arduino-1.8.5/libraries -libraries /home/musti/Arduino/libraries -fqbn=TleraCorp:stm32l0:Cricket-L082CZ:usb=cdc,dosfs=none,speed=32,opt=os -vid-pid=0X2341_0X8053 -ide-version=10805 -build-path /tmp/arduino_build_533590 -warnings=all -build-cache /tmp/arduino_cache_307305 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -verbose /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/examples/LoRaWAN_Join_ABP/LoRaWAN_Join_ABP.ino Using board 'Cricket-L082CZ' from platform in folder: /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6 Using core 'arduino' from platform in folder: /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6 Detecting libraries used... "/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions -w -x c++ -E -CC -D_SYSTEM_CORECLOCK=32000000L -DARDUINO=10805 -DARDUINO_STM32L0_CRICKET -DARDUINO_ARCH_STM32L0 -DSTM32L082xx -march=armv6-m -mthumb -mabi=aapcs -mfloat-abi=soft -fsingle-precision-constant -DUSB_VID=0x1209 -DUSB_PID=0x6664 -DUSB_DID=0xffff '-DUSB_MANUFACTURER="Tlera Corporation"' '-DUSB_PRODUCT="Cricket"' '-DUSB_TYPE=USB_TYPE_CDC' -DDOSFS_SDCARD=0 -DDOSFS_SFLASH=0 "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Device/ST/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/cores/arduino" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/variants/Cricket-L082CZ" "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp" -o "/dev/null" "/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions -w -x c++ -E -CC -D_SYSTEM_CORECLOCK=32000000L -DARDUINO=10805 -DARDUINO_STM32L0_CRICKET -DARDUINO_ARCH_STM32L0 -DSTM32L082xx -march=armv6-m -mthumb -mabi=aapcs -mfloat-abi=soft -fsingle-precision-constant -DUSB_VID=0x1209 -DUSB_PID=0x6664 -DUSB_DID=0xffff '-DUSB_MANUFACTURER="Tlera Corporation"' '-DUSB_PRODUCT="Cricket"' '-DUSB_TYPE=USB_TYPE_CDC' -DDOSFS_SDCARD=0 -DDOSFS_SFLASH=0 "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Device/ST/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/cores/arduino" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/variants/Cricket-L082CZ" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/src" "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp" -o "/dev/null" Using cached library dependencies for file: /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/src/LoRaWAN.cpp Generating function prototypes... "/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions -w -x c++ -E -CC -D_SYSTEM_CORECLOCK=32000000L -DARDUINO=10805 -DARDUINO_STM32L0_CRICKET -DARDUINO_ARCH_STM32L0 -DSTM32L082xx -march=armv6-m -mthumb -mabi=aapcs -mfloat-abi=soft -fsingle-precision-constant -DUSB_VID=0x1209 -DUSB_PID=0x6664 -DUSB_DID=0xffff '-DUSB_MANUFACTURER="Tlera Corporation"' '-DUSB_PRODUCT="Cricket"' '-DUSB_TYPE=USB_TYPE_CDC' -DDOSFS_SDCARD=0 -DDOSFS_SFLASH=0 "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Device/ST/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/cores/arduino" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/variants/Cricket-L082CZ" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/src" "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp" -o "/tmp/arduino_build_533590/preproc/ctags_target_for_gcc_minus_e.cpp" "/home/musti/Projects/arduino-1.8.5/tools-builder/ctags/5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "/tmp/arduino_build_533590/preproc/ctags_target_for_gcc_minus_e.cpp" Compiling sketch... "/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -Wall -Wextra -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib -fno-rtti -fno-exceptions -MMD -D_SYSTEM_CORECLOCK=32000000L -DARDUINO=10805 -DARDUINO_STM32L0_CRICKET -DARDUINO_ARCH_STM32L0 -DSTM32L082xx -march=armv6-m -mthumb -mabi=aapcs -mfloat-abi=soft -fsingle-precision-constant -DUSB_VID=0x1209 -DUSB_PID=0x6664 -DUSB_DID=0xffff '-DUSB_MANUFACTURER="Tlera Corporation"' '-DUSB_PRODUCT="Cricket"' '-DUSB_TYPE=USB_TYPE_CDC' -DDOSFS_SDCARD=0 -DDOSFS_SFLASH=0 "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Device/ST/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/STM32L0xx/Include" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/cores/arduino" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/variants/Cricket-L082CZ" "-I/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN/src" "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp" -o "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp.o" Compiling libraries... Compiling library "LoRaWAN" Using previously compiled file: /tmp/arduino_build_533590/libraries/LoRaWAN/LoRaWAN.cpp.o Compiling core... Using previously compiled file: /tmp/arduino_build_533590/core/variant.cpp.o Using precompiled core Linking everything together... "/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gcc" "-L/tmp/arduino_build_533590" -g -Os -Wl,--gc-sections -save-temps -DSTM32L082xx -march=armv6-m -mthumb -mabi=aapcs -mfloat-abi=soft -fsingle-precision-constant -DUSB_VID=0x1209 -DUSB_PID=0x6664 -DUSB_DID=0xffff '-DUSB_MANUFACTURER="Tlera Corporation"' '-DUSB_PRODUCT="Cricket"' '-DUSB_TYPE=USB_TYPE_CDC' -DDOSFS_SDCARD=0 -DDOSFS_SFLASH=0 "-T/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/variants/Cricket-L082CZ/linker_scripts/STM32L082CZ_FLASH.ld" "-Wl,-Map,/tmp/arduino_build_533590/LoRaWAN_Join_ABP.ino.map" --specs=nano.specs -mcpu=cortex-m0plus -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -o "/tmp/arduino_build_533590/LoRaWAN_Join_ABP.ino.elf" "/tmp/arduino_build_533590/sketch/LoRaWAN_Join_ABP.ino.cpp.o" "/tmp/arduino_build_533590/libraries/LoRaWAN/LoRaWAN.cpp.o" "/tmp/arduino_build_533590/core/variant.cpp.o" -Wl,--start-group "/tmp/arduino_build_533590/../arduino_cache_307305/core/core_TleraCorp_stm32l0_Cricket-L082CZ_usb_cdc,dosfs_none,speed_32,opt_os_b7537f2d7e3201f4873199069f92d27d.a" -Wl,--end-group "-L/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/STM32L0xx/Lib" "-L/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/system/CMSIS/Lib" -lstm32l082xx -larm_cortexM0l_math -lc -lm "/home/musti/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-objcopy" -O binary "/tmp/arduino_build_533590/LoRaWAN_Join_ABP.ino.elf" "/tmp/arduino_build_533590/LoRaWAN_Join_ABP.ino.dfu" "/home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/tools/linux//dfu-suffix" -v "0x1209" -p "0x6664" -d "0xffff" -a "/tmp/arduino_build_533590/LoRaWAN_Join_ABP.ino.dfu" Using library LoRaWAN at version 1.1.0 in folder: /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/libraries/LoRaWAN fork/exec /home/musti/.arduino15/packages/TleraCorp/hardware/stm32l0/0.0.6/tools/linux//dfu-suffix: no such file or directory Error compiling for board Cricket-L082CZ.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GrumpyOldPizza/ArduinoCore-stm32l0/issues/17#issuecomment-403226736, or mute the thread https://github.com/notifications/unsubscribe-auth/AG4QfI_hUis6azE2uh7F8FHDzHTPboGrks5uEODDgaJpZM4VGZxv .

SloMusti commented 6 years ago

I have fug a bit deeper and found these are 32-bit executables, checked with:

file dfu-prefix 
dfu-prefix: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=e4dc89b4522cebf6e62294585516e4c7bb6e8fdb, not stripped

following this instructions: https://askubuntu.com/a/454452 I have installed 32-bit support and now it works well. This issue can be closed, but would be great to add the note to instructions.

GrumpyOldPizza commented 6 years ago

Switched to 64 bit binaries. Fixed.