firmata / spark

firmata firmware for Spark
GNU Lesser General Public License v2.1
30 stars 6 forks source link

So damn close #4

Closed phoenixperry closed 7 years ago

phoenixperry commented 9 years ago

Hey! So I have really tried. I've gotten to the point of making the code and it's throwing 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../inc -I../libraries/Serial2 -I../../core-common-lib/CMSIS/Include -I../../core-common-lib/CMSIS/Device/ST/STM32F10x/Include -I../../core-common-lib/STM32F10x_StdPeriph_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-common-lib/SPARK_Services/inc -I../../core-communication-lib/lib/tropicssl/include -I../../core-communication-lib/src -I. -ffunction-sections -Wall -fmessage-length=0 -Werror=deprecated-declarations -MD -MP -MF obj/src/application.o.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -DDFU_BUILD_ENABLE -DSPARK=1 -DRELEASE_BUILD -fno-rtti -fno-exceptions -c -o obj/src/application.o ../src/application.cpp
In file included from ../inc/Firmata.h:16:0,
                 from ../src/application.cpp:33:
../inc/Boards.h: In function 'unsigned char writePort(byte, byte, byte)':
../inc/Boards.h:172:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
../src/application.cpp: In function 'void sysexCallback(byte, byte, byte*)':
../src/application.cpp:400:58: warning: 'queryIndexToSkip' may be used uninitialized in this function [-Wmaybe-uninitialized]
                         for (byte i = queryIndexToSkip; i<queryIndex + 1; i++) {
                                                          ^

make: *** No rule to make target `obj/src/Firmata.o', needed by `core-firmware.elf'.  Stop.

From here I recopied all of the files of github into the right files and I might of gotten rid of some of these errors?

Now I get this: Phoenixs-MacBook-Pro:build phoenix$ make Building core-common-lib make[1]: Nothing to be done for `all'.

Building core-communication-lib make[1]: Nothing to be done for `all'.

make: *\ No rule to make target obj/src/Firmata.o', needed bycore-firmware.elf'. Stop.

How do I tell if this worked? That message looks like to me that the object file never got linked in or something? HELP!

jacobrosenthal commented 9 years ago

Sorry I missed this so long :( I happened to be back in this repo recently and found everything still working. The only change is you dont need to add CPPSRC anymore so not sure what your problem was. Feel free to ask again