Local toolchain issue [SOLVED]

I haven’t used my cores in a few weeks. Just grabbed the latest from the repo’s but I cannot make the project, even as-is from the repo.

I’m pretty sure I haven’t changed anything. Below is the error/output. :-/

make clean all
rm -f  obj/src/application.o obj/src/main.o obj/src/newlib_stubs.o obj/src/spark_utilities.o obj/src/spark_wiring.o obj/src/spark_wiring_i2c.o obj/src/spark_wiring_interrupts.o obj/src/spark_wiring_ipaddress.o obj/src/spark_wiring_network.o obj/src/spark_wiring_print.o obj/src/spark_wiring_servo.o obj/src/spark_wiring_spi.o obj/src/spark_wiring_stream.o obj/src/spark_wiring_string.o obj/src/spark_wiring_tcpclient.o obj/src/spark_wiring_tcpserver.o obj/src/spark_wiring_time.o obj/src/spark_wiring_udp.o obj/src/spark_wiring_usartserial.o obj/src/spark_wiring_usbserial.o obj/src/spark_wiring_wifi.o obj/src/spark_wlan.o obj/src/stm32_it.o obj/src/usb_desc.o obj/src/usb_endp.o obj/src/usb_istr.o obj/src/usb_prop.o obj/src/wifi_credentials_reader.o obj/startup/startup_stm32f10x_md.o  obj/src/application.o.d obj/src/main.o.d obj/src/newlib_stubs.o.d obj/src/spark_utilities.o.d obj/src/spark_wiring.o.d obj/src/spark_wiring_i2c.o.d obj/src/spark_wiring_interrupts.o.d obj/src/spark_wiring_ipaddress.o.d obj/src/spark_wiring_network.o.d obj/src/spark_wiring_print.o.d obj/src/spark_wiring_servo.o.d obj/src/spark_wiring_spi.o.d obj/src/spark_wiring_stream.o.d obj/src/spark_wiring_string.o.d obj/src/spark_wiring_tcpclient.o.d obj/src/spark_wiring_tcpserver.o.d obj/src/spark_wiring_time.o.d obj/src/spark_wiring_udp.o.d obj/src/spark_wiring_usartserial.o.d obj/src/spark_wiring_usbserial.o.d obj/src/spark_wiring_wifi.o.d obj/src/spark_wlan.o.d obj/src/stm32_it.o.d obj/src/usb_desc.o.d obj/src/usb_endp.o.d obj/src/usb_istr.o.d obj/src/usb_prop.o.d obj/src/wifi_credentials_reader.o.d obj/startup/startup_stm32f10x_md.o.d core-firmware.elf core-firmware.bin core-firmware.hex core-firmware.map

Clean core-common-lib
rm -f obj/CC3000_Host_Driver/cc3000_common.o obj/CC3000_Host_Driver/evnt_handler.o obj/CC3000_Host_Driver/hci.o obj/CC3000_Host_Driver/netapp.o obj/CC3000_Host_Driver/nvmem.o obj/CC3000_Host_Driver/security.o obj/CC3000_Host_Driver/socket.o obj/CC3000_Host_Driver/wlan.o obj/SPARK_Firmware_Driver/src/cc3000_spi.o obj/SPARK_Firmware_Driver/src/hw_config.o obj/SPARK_Firmware_Driver/src/sst25vf_spi.o obj/SPARK_Firmware_Driver/src/system_stm32f10x.o obj/SPARK_Firmware_Driver/src/usb_pwr.o obj/SPARK_Firmware_Driver/src/debug.o obj/SPARK_Firmware_Driver/src/panic.o obj/STM32F10x_StdPeriph_Driver/src/misc.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_adc.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_bkp.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_crc.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_dma.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_exti.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_flash.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_i2c.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_iwdg.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_pwr.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_rcc.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_rtc.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_tim.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_usart.o obj/STM32_USB-FS-Device_Driver/src/usb_core.o obj/STM32_USB-FS-Device_Driver/src/usb_init.o obj/STM32_USB-FS-Device_Driver/src/usb_int.o obj/STM32_USB-FS-Device_Driver/src/usb_mem.o obj/STM32_USB-FS-Device_Driver/src/usb_regs.o obj/STM32_USB-FS-Device_Driver/src/usb_sil.o   obj/CC3000_Host_Driver/cc3000_common.o.d obj/CC3000_Host_Driver/evnt_handler.o.d obj/CC3000_Host_Driver/hci.o.d obj/CC3000_Host_Driver/netapp.o.d obj/CC3000_Host_Driver/nvmem.o.d obj/CC3000_Host_Driver/security.o.d obj/CC3000_Host_Driver/socket.o.d obj/CC3000_Host_Driver/wlan.o.d obj/SPARK_Firmware_Driver/src/cc3000_spi.o.d obj/SPARK_Firmware_Driver/src/hw_config.o.d obj/SPARK_Firmware_Driver/src/sst25vf_spi.o.d obj/SPARK_Firmware_Driver/src/system_stm32f10x.o.d obj/SPARK_Firmware_Driver/src/usb_pwr.o.d obj/SPARK_Firmware_Driver/src/debug.o.d obj/SPARK_Firmware_Driver/src/panic.o.d obj/STM32F10x_StdPeriph_Driver/src/misc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_adc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_bkp.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_crc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_dma.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_exti.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_flash.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_i2c.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_iwdg.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_pwr.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_rcc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_rtc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_tim.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_usart.o.d obj/STM32_USB-FS-Device_Driver/src/usb_core.o.d obj/STM32_USB-FS-Device_Driver/src/usb_init.o.d obj/STM32_USB-FS-Device_Driver/src/usb_int.o.d obj/STM32_USB-FS-Device_Driver/src/usb_mem.o.d obj/STM32_USB-FS-Device_Driver/src/usb_regs.o.d obj/STM32_USB-FS-Device_Driver/src/usb_sil.o.d   libcore-common-lib.a
 

Clean core-communication-lib
rm -f obj/lib/tropicssl/library/aes.o obj/lib/tropicssl/library/bignum.o obj/lib/tropicssl/library/padlock.o obj/lib/tropicssl/library/rsa.o obj/lib/tropicssl/library/sha1.o obj/src/coap.o obj/src/handshake.o obj/src/spark_protocol.o obj/src/events.o  obj/lib/tropicssl/library/aes.o.d obj/lib/tropicssl/library/bignum.o.d obj/lib/tropicssl/library/padlock.o.d obj/lib/tropicssl/library/rsa.o.d obj/lib/tropicssl/library/sha1.o.d obj/src/coap.o.d obj/src/handshake.o.d obj/src/spark_protocol.o.d obj/src/events.o.d  libcore-communication-lib.a
 

Building core-common-lib
Building file: ../CC3000_Host_Driver/cc3000_common.c
Invoking: ARM GCC C Compiler
mkdir -p obj/CC3000_Host_Driver/
arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb  -I../CC3000_Host_Driver -I../SPARK_Firmware_Driver/inc -I../STM32F10x_StdPeriph_Driver/inc -I../STM32_USB-FS-Device_Driver/inc -I../CMSIS/Include -I../CMSIS/Device/ST/STM32F10x/Include -I. -ffunction-sections -Wall -Wno-switch -fmessage-length=0 -MD -MP -MF obj/CC3000_Host_Driver/cc3000_common.o.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -DRELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3000_common.o ../CC3000_Host_Driver/cc3000_common.c
make[1]: arm-none-eabi-gcc: No such file or directory
make[1]: *** [obj/CC3000_Host_Driver/cc3000_common.o] Error 1
make: *** [check_external_deps] Error 2

Hi @dermotos

It looks like gcc is no longer on the path. What happens if you type which arm-none-eabi-gcc in the shell where you do the make? That should return the path to the gcc cross compiler.

Nothing happens

Dermots-iMac:build dermotos$ which arm-none-eabi-gcc
Dermots-iMac:build dermotos$ 
1 Like

Ok, it was definitely removed from my path. I’m guessing it was caused by installing the pebble SDK. Grrr…

Anyways, If I edit my path as described here: http://architectryan.com/2012/10/02/add-to-the-path-on-mac-os-x-mountain-lion/#.UzLMR62SzYc
It doesn’t seem to make any difference. If I run the below command:

export PATH="$PATH:/usr/local/gcc_arm/gcc-arm-none-eabi-4_7-2013q3/bin/"

It will work until I close my terminal window, after that it doesn’t work again. How can I edit my path so it stays working?

Thanks! :smile:

Edit: Got it! I thought the export command was editing my path, rather than just for the current session. Added it to my ~/.bash_profile and its working now. Thanks for pointing me in the right direction.

4 Likes

@bko, I’m getting a similar, shorter error:
Mine is only about not being able to find cc3000_common.o. The [check_external_deps] is also present, which means both are Error 2.
I was checking out compiling through the command line for the first time.
Is there a way to solve this?

*C:\Users\Admin\Documents\core-firmware\build>make
Building core-common-lib
Building file: …/CC3000_Host_Driver/cc3000_common.c
Invoking: ARM GCC C Compiler
mkdir -p obj/CC3000_Host_Driver/
arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -I…/CC3000_Host_Dr
iver -I…/SPARK_Firmware_Driver/inc -I…/STM32_USB-FS-Device_Driver/inc -I…/STM
32F10x_StdPeriph_Driver/inc -I…/CMSIS/Include -I…/CMSIS/Device/ST/STM32F10x/In
clude -I. -ffunction-sections -Wall -Wno-switch -fmessage-length=0 -MD -MP -MF o
bj/CC3000_Host_Driver/cc3000_common.o.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -D
RELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3000_common.o …/CC3000_Host_Driver
/cc3000_common.c
process_begin: CreateProcess(NULL, arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cor
tex-m3 -mthumb -I…/CC3000_Host_Driver -I…/SPARK_Firmware_Driver/inc -I…/STM32
USB-FS-Device_Driver/inc -I…/STM32F10x_StdPeriph_Driver/inc -I…/CMSIS/Include
-I…/CMSIS/Device/ST/STM32F10x/Include -I. -ffunction-sections -Wall -Wno-switc
h -fmessage-length=0 -MD -MP -MF obj/CC3000_Host_Driver/cc3000_common.o.d -DUSE

STDPERIPH_DRIVER -DSTM32F10X_MD -DRELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3
000_common.o …/CC3000_Host_Driver/cc3000_common.c, …) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** *[obj/CC3000_Host_Driver/cc3000_common.o] Error 2
make: *** [check_external_deps] Error 2

Hi @LIGHThouse

I think you do not have all three repos needed to do the local build. You should have core-firmware, core-common-lib, and core-communication-lib. Then in core-firmware/build, when you type make or make clean all you will build all three.

Instructions are here:

Hi, @bko!

I’d ensured that I had all repos in the same directory before building. I tried to restart the entire process from scratch but I’m still getting the same error.
When I navigate to core-common-lib > build > obj on Windows Explorer, I find CC3000_Host_Driver to be empty. I think that’s where the error is; not being able to find cc3000_common.o.
I read the instructions a few times. I’m not able to find anything different in what I’m trying to do.

These are my errors:
Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.

C:\Users\Admin>cd /

C:>ls
$Recycle.Bin Program Files Windows
ATI Program Files (x86) hiberfil.sys
Bluegiga ProgramData opencv
Dell Python27 pagefile.sys
Documents and Settings Recovery temp
END Spark user.js
MSOCache System Volume Information
PerfLogs Users

C:>cd Spark

C:\Spark>ls
core-common-lib core-communication-lib core-firmware

C:\Spark>cd core-firmware

C:\Spark\core-firmware>cd build

C:\Spark\core-firmware\build>make clean all
rm -f obj/src/application.o obj/src/main.o obj/src/newlib_stubs.o obj/src/spark
utilities.o obj/src/spark_wiring.o obj/src/spark_wiring_eeprom.o obj/src/spark
wiring_i2c.o obj/src/spark_wiring_interrupts.o obj/src/spark_wiring_ipaddress.o
obj/src/spark_wiring_network.o obj/src/spark_wiring_print.o obj/src/spark_wiring
servo.o obj/src/spark_wiring_spi.o obj/src/spark_wiring_stream.o obj/src/spark
wiring_string.o obj/src/spark_wiring_tcpclient.o obj/src/spark_wiring_tcpserver.
o obj/src/spark_wiring_time.o obj/src/spark_wiring_tone.o obj/src/spark_wiring_u
dp.o obj/src/spark_wiring_usartserial.o obj/src/spark_wiring_usbserial.o obj/src
/spark_wiring_wifi.o obj/src/spark_wlan.o obj/src/stm32_it.o obj/src/usb_desc.o
obj/src/usb_endp.o obj/src/usb_istr.o obj/src/usb_prop.o obj/src/wifi_credential
s_reader.o obj/startup/startup_stm32f10x_md.o obj/src/application.o.d obj/src/m
ain.o.d obj/src/newlib_stubs.o.d obj/src/spark_utilities.o.d obj/src/spark_wirin
g.o.d obj/src/spark_wiring_eeprom.o.d obj/src/spark_wiring_i2c.o.d obj/src/spark
_wiring_interrupts.o.d obj/src/spark_wiring_ipaddress.o.d obj/src/spark_wiring_n
etwork.o.d obj/src/spark_wiring_print.o.d obj/src/spark_wiring_servo.o.d obj/src
/spark_wiring_spi.o.d obj/src/spark_wiring_stream.o.d obj/src/spark_wiring_strin
g.o.d obj/src/spark_wiring_tcpclient.o.d obj/src/spark_wiring_tcpserver.o.d obj/
src/spark_wiring_time.o.d obj/src/spark_wiring_tone.o.d obj/src/spark_wiring_udp
.o.d obj/src/spark_wiring_usartserial.o.d obj/src/spark_wiring_usbserial.o.d obj
/src/spark_wiring_wifi.o.d obj/src/spark_wlan.o.d obj/src/stm32_it.o.d obj/src/u
sb_desc.o.d obj/src/usb_endp.o.d obj/src/usb_istr.o.d obj/src/usb_prop.o.d obj/s
rc/wifi_credentials_reader.o.d obj/startup/startup_stm32f10x_md.o.d core-firmwar
e.elf core-firmware.bin core-firmware.hex core-firmware.map

Clean core-common-lib
rm -f obj/CC3000_Host_Driver/cc3000_common.o obj/CC3000_Host_Driver/evnt_handler
.o obj/CC3000_Host_Driver/hci.o obj/CC3000_Host_Driver/netapp.o obj/CC3000_Host_
Driver/nvmem.o obj/CC3000_Host_Driver/security.o obj/CC3000_Host_Driver/socket.o
obj/CC3000_Host_Driver/wlan.o obj/SPARK_Firmware_Driver/src/cc3000_spi.o obj/SP
ARK_Firmware_Driver/src/hw_config.o obj/SPARK_Firmware_Driver/src/sst25vf_spi.o
obj/SPARK_Firmware_Driver/src/system_stm32f10x.o obj/SPARK_Firmware_Driver/src/u
sb_pwr.o obj/SPARK_Firmware_Driver/src/debug.o obj/SPARK_Firmware_Driver/src/pan
ic.o obj/STM32_USB-FS-Device_Driver/src/usb_core.o obj/STM32_USB-FS-Device_Drive
r/src/usb_init.o obj/STM32_USB-FS-Device_Driver/src/usb_int.o obj/STM32_USB-FS-D
evice_Driver/src/usb_mem.o obj/STM32_USB-FS-Device_Driver/src/usb_regs.o obj/STM
32_USB-FS-Device_Driver/src/usb_sil.o obj/STM32F10x_StdPeriph_Driver/src/misc.o
obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_adc.o obj/STM32F10x_StdPeriph_Drive
r/src/stm32f10x_bkp.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_crc.o obj/STM
32F10x_StdPeriph_Driver/src/stm32f10x_dma.o obj/STM32F10x_StdPeriph_Driver/src/s
tm32f10x_exti.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_flash.o obj/STM32F1
0x_StdPeriph_Driver/src/stm32f10x_gpio.o obj/STM32F10x_StdPeriph_Driver/src/stm3
2f10x_i2c.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_iwdg.o obj/STM32F10x_St
dPeriph_Driver/src/stm32f10x_pwr.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_
rcc.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_rtc.o obj/STM32F10x_StdPeriph
Driver/src/stm32f10x_spi.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_tim.o o
bj/STM32F10x_StdPeriph_Driver/src/stm32f10x_usart.o obj/CC3000_Host_Driver/cc3
000_common.o.d obj/CC3000_Host_Driver/evnt_handler.o.d obj/CC3000_Host_Driver/hc
i.o.d obj/CC3000_Host_Driver/netapp.o.d obj/CC3000_Host_Driver/nvmem.o.d obj/CC3
000_Host_Driver/security.o.d obj/CC3000_Host_Driver/socket.o.d obj/CC3000_Host_D
river/wlan.o.d obj/SPARK_Firmware_Driver/src/cc3000_spi.o.d obj/SPARK_Firmware_D
river/src/hw_config.o.d obj/SPARK_Firmware_Driver/src/sst25vf_spi.o.d obj/SPARK

Firmware_Driver/src/system_stm32f10x.o.d obj/SPARK_Firmware_Driver/src/usb_pwr.o
.d obj/SPARK_Firmware_Driver/src/debug.o.d obj/SPARK_Firmware_Driver/src/panic.o
.d obj/STM32_USB-FS-Device_Driver/src/usb_core.o.d obj/STM32_USB-FS-Device_Drive
r/src/usb_init.o.d obj/STM32_USB-FS-Device_Driver/src/usb_int.o.d obj/STM32_USB-
FS-Device_Driver/src/usb_mem.o.d obj/STM32_USB-FS-Device_Driver/src/usb_regs.o.d
obj/STM32_USB-FS-Device_Driver/src/usb_sil.o.d obj/STM32F10x_StdPeriph_Driver/s
rc/misc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_adc.o.d obj/STM32F10x_S
tdPeriph_Driver/src/stm32f10x_bkp.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f1
0x_crc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_dma.o.d obj/STM32F10x_St
dPeriph_Driver/src/stm32f10x_exti.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f1
0x_flash.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.o.d obj/STM32F10x
_StdPeriph_Driver/src/stm32f10x_i2c.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32
f10x_iwdg.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_pwr.o.d obj/STM32F10x
StdPeriph_Driver/src/stm32f10x_rcc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32
f10x_rtc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.o.d obj/STM32F10x

StdPeriph_Driver/src/stm32f10x_tim.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f
10x_usart.o.d libcore-common-lib.a

Clean core-communication-lib
rm -f obj/lib/tropicssl/library/aes.o obj/lib/tropicssl/library/bignum.o obj/lib
/tropicssl/library/padlock.o obj/lib/tropicssl/library/rsa.o obj/lib/tropicssl/l
ibrary/sha1.o obj/src/coap.o obj/src/handshake.o obj/src/spark_protocol.o obj/sr
c/events.o obj/lib/tropicssl/library/aes.o.d obj/lib/tropicssl/library/bignum.o
.d obj/lib/tropicssl/library/padlock.o.d obj/lib/tropicssl/library/rsa.o.d obj/l
ib/tropicssl/library/sha1.o.d obj/src/coap.o.d obj/src/handshake.o.d obj/src/spa
rk_protocol.o.d obj/src/events.o.d libcore-communication-lib.a

Building core-common-lib
Building file: …/CC3000_Host_Driver/cc3000_common.c
Invoking: ARM GCC C Compiler
mkdir -p obj/CC3000_Host_Driver/
arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -I…/CC3000_Host_Dr
iver -I…/SPARK_Firmware_Driver/inc -I…/STM32_USB-FS-Device_Driver/inc -I…/STM
32F10x_StdPeriph_Driver/inc -I…/CMSIS/Include -I…/CMSIS/Device/ST/STM32F10x/In
clude -I. -ffunction-sections -Wall -Wno-switch -fmessage-length=0 -MD -MP -MF o
bj/CC3000_Host_Driver/cc3000_common.o.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -D
RELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3000_common.o …/CC3000_Host_Driver
/cc3000_common.c
process_begin: CreateProcess(NULL, arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cor
tex-m3 -mthumb -I…/CC3000_Host_Driver -I…/SPARK_Firmware_Driver/inc -I…/STM32
USB-FS-Device_Driver/inc -I…/STM32F10x_StdPeriph_Driver/inc -I…/CMSIS/Include
-I…/CMSIS/Device/ST/STM32F10x/Include -I. -ffunction-sections -Wall -Wno-switc
h -fmessage-length=0 -MD -MP -MF obj/CC3000_Host_Driver/cc3000_common.o.d -DUSE

STDPERIPH_DRIVER -DSTM32F10X_MD -DRELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3
000_common.o …/CC3000_Host_Driver/cc3000_common.c, …) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [obj/CC3000_Host_Driver/cc3000_common.o] Error 2
make: *** [check_external_deps] Error 2

C:\Spark\core-firmware\build>

Thanks!

I’m getting the same like @LIGHThouse :

C:\Spark\core-firmware\build>make
Building core-common-lib
Building file: …/CC3000_Host_Driver/cc3000_common.c
Invoking: ARM GCC C Compiler
mkdir -p obj/CC3000_Host_Driver/
arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -I…/CC3000_Host_Dr
iver -I…/SPARK_Firmware_Driver/inc -I…/STM32_USB-FS-Device_Driver/inc -I…/STM
32F10x_StdPeriph_Driver/inc -I…/CMSIS/Include -I…/CMSIS/Device/ST/STM32F10x/In
clude -I. -ffunction-sections -Wall -Wno-switch -fmessage-length=0 -MD -MP -MF o
bj/CC3000_Host_Driver/cc3000_common.o.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -D
RELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3000_common.o …/CC3000_Host_Driver
/cc3000_common.c
process_begin: CreateProcess(NULL, arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cor
tex-m3 -mthumb -I…/CC3000_Host_Driver -I…/SPARK_Firmware_Driver/inc -I…/STM32
USB-FS-Device_Driver/inc -I…/STM32F10x_StdPeriph_Driver/inc -I…/CMSIS/Include
-I…/CMSIS/Device/ST/STM32F10x/Include -I. -ffunction-sections -Wall -Wno-switc
h -fmessage-length=0 -MD -MP -MF obj/CC3000_Host_Driver/cc3000_common.o.d -DUSE

STDPERIPH_DRIVER -DSTM32F10X_MD -DRELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3
000_common.o …/CC3000_Host_Driver/cc3000_common.c, …) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [obj/CC3000_Host_Driver/cc3000_common.o] Error 2
make: *** [check_external_deps] Error 2

Anyone?

Hi @itayd100

You should make sure you have all three repositories, core-firmware, core-communication-lib and core-common-lib in three directories all contained in the same directory and then in the core-firmware\build directory do:

make clean all

the first time.

Hi @bko , thank you for helping me.

All three directories inside c:\spark. I did what you said and I got this:

C:\Spark\core-firmware\build>make clean all
rm -f obj/src/application.o obj/src/main.o obj/src/newlib_stubs.o obj/src/spark
utilities.o obj/src/spark_wiring.o obj/src/spark_wiring_eeprom.o obj/src/spark
wiring_i2c.o obj/src/spark_wiring_interrupts.o obj/src/spark_wiring_ipaddress.o
obj/src/spark_wiring_print.o obj/src/spark_wiring_servo.o obj/src/spark_wiring_s
pi.o obj/src/spark_wiring_stream.o obj/src/spark_wiring_string.o obj/src/spark_w
iring_tcpclient.o obj/src/spark_wiring_tcpserver.o obj/src/spark_wiring_time.o o
bj/src/spark_wiring_tone.o obj/src/spark_wiring_udp.o obj/src/spark_wiring_usart
serial.o obj/src/spark_wiring_usbserial.o obj/src/spark_wiring_wifi.o obj/src/sp
ark_wlan.o obj/src/stm32_it.o obj/src/usb_desc.o obj/src/usb_endp.o obj/src/usb_
istr.o obj/src/usb_prop.o obj/src/wifi_credentials_reader.o obj/startup/startup_
stm32f10x_md.o obj/src/application.o.d obj/src/main.o.d obj/src/newlib_stubs.o.
d obj/src/spark_utilities.o.d obj/src/spark_wiring.o.d obj/src/spark_wiring_eepr
om.o.d obj/src/spark_wiring_i2c.o.d obj/src/spark_wiring_interrupts.o.d obj/src/
spark_wiring_ipaddress.o.d obj/src/spark_wiring_print.o.d obj/src/spark_wiring_s
ervo.o.d obj/src/spark_wiring_spi.o.d obj/src/spark_wiring_stream.o.d obj/src/sp
ark_wiring_string.o.d obj/src/spark_wiring_tcpclient.o.d obj/src/spark_wiring_tc
pserver.o.d obj/src/spark_wiring_time.o.d obj/src/spark_wiring_tone.o.d obj/src/
spark_wiring_udp.o.d obj/src/spark_wiring_usartserial.o.d obj/src/spark_wiring_u
sbserial.o.d obj/src/spark_wiring_wifi.o.d obj/src/spark_wlan.o.d obj/src/stm32_
it.o.d obj/src/usb_desc.o.d obj/src/usb_endp.o.d obj/src/usb_istr.o.d obj/src/us
b_prop.o.d obj/src/wifi_credentials_reader.o.d obj/startup/startup_stm32f10x_md.
o.d core-firmware.elf core-firmware.bin core-firmware.hex core-firmware.map

Clean core-common-lib
rm -f obj/CC3000_Host_Driver/cc3000_common.o obj/CC3000_Host_Driver/evnt_handler
.o obj/CC3000_Host_Driver/hci.o obj/CC3000_Host_Driver/netapp.o obj/CC3000_Host_
Driver/nvmem.o obj/CC3000_Host_Driver/security.o obj/CC3000_Host_Driver/socket.o
obj/CC3000_Host_Driver/wlan.o obj/SPARK_Firmware_Driver/src/cc3000_spi.o obj/SP
ARK_Firmware_Driver/src/hw_config.o obj/SPARK_Firmware_Driver/src/sst25vf_spi.o
obj/SPARK_Firmware_Driver/src/system_stm32f10x.o obj/SPARK_Firmware_Driver/src/u
sb_pwr.o obj/SPARK_Firmware_Driver/src/debug.o obj/SPARK_Firmware_Driver/src/pan
ic.o obj/SPARK_Firmware_Driver/src/spi_bus.o obj/STM32_USB-FS-Device_Driver/src/
usb_core.o obj/STM32_USB-FS-Device_Driver/src/usb_init.o obj/STM32_USB-FS-Device
Driver/src/usb_int.o obj/STM32_USB-FS-Device_Driver/src/usb_mem.o obj/STM32_USB
-FS-Device_Driver/src/usb_regs.o obj/STM32_USB-FS-Device_Driver/src/usb_sil.o ob
j/STM32F10x_StdPeriph_Driver/src/misc.o obj/STM32F10x_StdPeriph_Driver/src/stm32
f10x_adc.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_bkp.o obj/STM32F10x_StdP
eriph_Driver/src/stm32f10x_crc.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_dm
a.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_exti.o obj/STM32F10x_StdPeriph

Driver/src/stm32f10x_flash.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.o
obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_i2c.o obj/STM32F10x_StdPeriph_Driv
er/src/stm32f10x_iwdg.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_pwr.o obj/S
TM32F10x_StdPeriph_Driver/src/stm32f10x_rcc.o obj/STM32F10x_StdPeriph_Driver/src
/stm32f10x_rtc.o obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.o obj/STM32F10
x_StdPeriph_Driver/src/stm32f10x_tim.o obj/STM32F10x_StdPeriph_Driver/src/stm32f
10x_usart.o obj/CC3000_Host_Driver/cc3000_common.o.d obj/CC3000_Host_Driver/ev
nt_handler.o.d obj/CC3000_Host_Driver/hci.o.d obj/CC3000_Host_Driver/netapp.o.d
obj/CC3000_Host_Driver/nvmem.o.d obj/CC3000_Host_Driver/security.o.d obj/CC3000_
Host_Driver/socket.o.d obj/CC3000_Host_Driver/wlan.o.d obj/SPARK_Firmware_Driver
/src/cc3000_spi.o.d obj/SPARK_Firmware_Driver/src/hw_config.o.d obj/SPARK_Firmwa
re_Driver/src/sst25vf_spi.o.d obj/SPARK_Firmware_Driver/src/system_stm32f10x.o.d
obj/SPARK_Firmware_Driver/src/usb_pwr.o.d obj/SPARK_Firmware_Driver/src/debug.o
.d obj/SPARK_Firmware_Driver/src/panic.o.d obj/SPARK_Firmware_Driver/src/spi_bus
.o.d obj/STM32_USB-FS-Device_Driver/src/usb_core.o.d obj/STM32_USB-FS-Device_Dri
ver/src/usb_init.o.d obj/STM32_USB-FS-Device_Driver/src/usb_int.o.d obj/STM32_US
B-FS-Device_Driver/src/usb_mem.o.d obj/STM32_USB-FS-Device_Driver/src/usb_regs.o
.d obj/STM32_USB-FS-Device_Driver/src/usb_sil.o.d obj/STM32F10x_StdPeriph_Driver
/src/misc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_adc.o.d obj/STM32F10x
StdPeriph_Driver/src/stm32f10x_bkp.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32
f10x_crc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_dma.o.d obj/STM32F10x

StdPeriph_Driver/src/stm32f10x_exti.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32
f10x_flash.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.o.d obj/STM32F1
0x_StdPeriph_Driver/src/stm32f10x_i2c.o.d obj/STM32F10x_StdPeriph_Driver/src/stm
32f10x_iwdg.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_pwr.o.d obj/STM32F1
0x_StdPeriph_Driver/src/stm32f10x_rcc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm
32f10x_rtc.o.d obj/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.o.d obj/STM32F10
x_StdPeriph_Driver/src/stm32f10x_tim.o.d obj/STM32F10x_StdPeriph_Driver/src/stm3
2f10x_usart.o.d libcore-common-lib.a

Clean core-communication-lib
rm -f obj/lib/tropicssl/library/aes.o obj/lib/tropicssl/library/bignum.o obj/lib
/tropicssl/library/padlock.o obj/lib/tropicssl/library/rsa.o obj/lib/tropicssl/l
ibrary/sha1.o obj/src/coap.o obj/src/handshake.o obj/src/spark_protocol.o obj/sr
c/events.o obj/lib/tropicssl/library/aes.o.d obj/lib/tropicssl/library/bignum.o
.d obj/lib/tropicssl/library/padlock.o.d obj/lib/tropicssl/library/rsa.o.d obj/l
ib/tropicssl/library/sha1.o.d obj/src/coap.o.d obj/src/handshake.o.d obj/src/spa
rk_protocol.o.d obj/src/events.o.d libcore-communication-lib.a

Building core-common-lib
Building file: …/CC3000_Host_Driver/cc3000_common.c
Invoking: ARM GCC C Compiler
mkdir -p obj/CC3000_Host_Driver/
arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -I…/CC3000_Host_Dr
iver -I…/SPARK_Firmware_Driver/inc -I…/STM32_USB-FS-Device_Driver/inc -I…/STM
32F10x_StdPeriph_Driver/inc -I…/CMSIS/Include -I…/CMSIS/Device/ST/STM32F10x/In
clude -I. -ffunction-sections -Wall -Wno-switch -fmessage-length=0 -MD -MP -MF o
bj/CC3000_Host_Driver/cc3000_common.o.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -D
RELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3000_common.o …/CC3000_Host_Driver
/cc3000_common.c
process_begin: CreateProcess(NULL, arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cor
tex-m3 -mthumb -I…/CC3000_Host_Driver -I…/SPARK_Firmware_Driver/inc -I…/STM32
USB-FS-Device_Driver/inc -I…/STM32F10x_StdPeriph_Driver/inc -I…/CMSIS/Include
-I…/CMSIS/Device/ST/STM32F10x/Include -I. -ffunction-sections -Wall -Wno-switc
h -fmessage-length=0 -MD -MP -MF obj/CC3000_Host_Driver/cc3000_common.o.d -DUSE

STDPERIPH_DRIVER -DSTM32F10X_MD -DRELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3
000_common.o …/CC3000_Host_Driver/cc3000_common.c, …) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [obj/CC3000_Host_Driver/cc3000_common.o] Error 2
make: *** [check_external_deps] Error 2

C:\Spark\core-firmware\build>

Still not working… Do you have any idea?

@itayd100 can you open a cmd prompt and type “make” and see what it says

@Hootie81, here what i see:

C:\Spark\core-firmware\build>make
Building core-common-lib
Building file: …/CC3000_Host_Driver/cc3000_common.c
Invoking: ARM GCC C Compiler
mkdir -p obj/CC3000_Host_Driver/
arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -I…/CC3000_Host_Dr
iver -I…/SPARK_Firmware_Driver/inc -I…/STM32_USB-FS-Device_Driver/inc -I…/STM
32F10x_StdPeriph_Driver/inc -I…/CMSIS/Include -I…/CMSIS/Device/ST/STM32F10x/In
clude -I. -ffunction-sections -Wall -Wno-switch -fmessage-length=0 -MD -MP -MF o
bj/CC3000_Host_Driver/cc3000_common.o.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -D
RELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3000_common.o …/CC3000_Host_Driver
/cc3000_common.c
process_begin: CreateProcess(NULL, arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cor
tex-m3 -mthumb -I…/CC3000_Host_Driver -I…/SPARK_Firmware_Driver/inc -I…/STM32
USB-FS-Device_Driver/inc -I…/STM32F10x_StdPeriph_Driver/inc -I…/CMSIS/Include
-I…/CMSIS/Device/ST/STM32F10x/Include -I. -ffunction-sections -Wall -Wno-switc
h -fmessage-length=0 -MD -MP -MF obj/CC3000_Host_Driver/cc3000_common.o.d -DUSE

STDPERIPH_DRIVER -DSTM32F10X_MD -DRELEASE_BUILD -c -o obj/CC3000_Host_Driver/cc3
000_common.o …/CC3000_Host_Driver/cc3000_common.c, …) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [obj/CC3000_Host_Driver/cc3000_common.o] Error 2
make: *** [check_external_deps] Error 2

C:\Spark\core-firmware\build>

Sorry for the delay… did you install GCC?

link is on this page…

@Hootie81 @bko

The path was the problem :frowning:
Now everything is good.

Thank for your responses.

Itay

1 Like

Awesome, was it the GCC path?

GNU Tools ARM Embedded, I needed to change the 2013–>2014 & q1–>q2.
path: C:\SparkCorePrograms\GNU Tools ARM Embedded\4.8 2014q2\bin.

BTW, do you know how can I use the Spark.Function and the include a library (Time for example) there?

Thanks

Hi @itayd100

Time is built-in now. See this doc:

http://docs.spark.io/firmware/#libraries-time

@bko thanks!!

Now I’m going to try debugging…

Hi @bko I have a similar issue here, hoping you can help.
I have been compiling code for spark on my win 8 machine successfully until i installed ride7 compiler for another project. Ride 7 also uses the same arm-none-eabi-gcc compiler.
When I type ‘which arm-none-eabi-gcc’ I get
/cygdrive/c/Program Files (x86)/Raisonance/Ride/arm-gcc/bin/arm-none-eabi-gcc
I have edited \core-firmware\build\make.mk as follows but with no success…

# Define the compiler/tools prefix
GCC_PREFIX ?= C:\SparkPrograms\GNU Tools ARM Embedded\4.9 2014q4\bin\arm-none-eabi-

# Define tools
CC = $(GCC_PREFIX)gcc
CPP = $(GCC_PREFIX)g++
AR = $(GCC_PREFIX)ar
OBJCOPY = $(GCC_PREFIX)objcopy
SIZE = $(GCC_PREFIX)size
DFU = dfu-util
DFUSUFFIX = dfu-suffix
CURL = curl

RM = rm -f
RMDIR = rm -f -r
MKDIR = mkdir -p

I don’t want to uninstall ride7.
Any suggestions???
Many Thanks in advance

I think you just want to point to the bin directory and let the links below figure everything out, but I am away from a computer where I could test this.

You might also want to try just changing the windows search path in the shell you use for Spark to put the Spark version of the compiler ahead on the path:

set PATH="C:\SparkPrograms\GNU Tools ARM Embedded\4.9 2014q4\bin\;%PATH%"

If you put this in a batch file, you can just run that before you start working on Spark in that shell. The change will work in that cmd shell until you close it.