Looks very nice @onkie I’m sure @satishgn would like to have a look as well.
I’m trying to build this locally using the same directory structure as seen in my Spark Core SD card library and I’m using this make file in my
# This file is a makefile included from the top level makefile which
# defines the sources built for the target.
# Define the prefix to this directory.
# Note: The name must be unique within this build and should be
# based on the root of the project
TARGET_SD_PATH = libraries/SdSpi
TARGET_SD_SRC_PATH = $(TARGET_SD_PATH)/src
# Add include paths.
INCLUDE_DIRS += $(TARGET_SD_PATH)/inc
# C source files included in this build.
# C++ source files included in this build.
CPPSRC += $(TARGET_SD_SRC_PATH)/ff.cpp
CPPSRC += $(TARGET_SD_SRC_PATH)/sdcard.cpp
# ASM source files included in this build.
Unfortunately trying to compile the included example I’m getting this error:
Building file: ../src/application.cpp
Invoking: ARM GCC CPP Compiler
mkdir -p obj/src/
arm-none-eabi-gcc -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -I../libraries/SdSpi/inc -I../libraries/SdSpi/inc -I../inc -I../../core-common-lib/CMSIS/Include -I../../core-common-lib/CMSIS/Device/ST/STM32F10x/Include -I../../core-common-lib/STM32F10x_StdPe
riph_Driver/inc -I../../core-common-lib/STM32_USB-FS-Device_Driver/inc -I../../core-common-lib/CC3000_Host_Driver -I../../core-common-lib/SPARK_Firmware_Driver/inc -I../../core-communication-lib/lib/tropicssl/include -I../../core-communication-lib/src -I.
-ffunction-sections -Wall -fmessage-length=0 -MD -MP -MF obj/src/application.o.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -DDFU_BUILD_ENABLE -DRELEASE_BUILD -fno-exceptions -fno-rtti -c -o obj/src/application.o ../src/application.cpp
make: *** No rule to make target `obj/libraries/SdSpi/src/File.o', needed by `core-firmware.elf'. Stop.