Local toolchain with Windows [SOLVED]

Thanks @kennethlimcp. I tried that. Maybe I’m messing up the download of the branch. I downloaded the zipped files (firmware-feature-hal.zip) and unpacked the files into \Spark\firmware.
When I make it no longer struggles with mkdir but I get a different syntax error:

E:\Spark\firmware>make
Building firmware for Spark core, platform ID: 0
The syntax of the command is incorrect.
make[1]: *** [../build/target/communication/platform-0/lib/tropicssl/library/aes
.o] Error 1
make: *** [communication] Error 2

E:\Spark\firmware>

If I try the make using the git bash shell I get:

$ make
Building firmware for Spark core, platform ID: 0
"c:\Program: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3)

I used make-3.8.1, gcc-arm-none-eabi-4_9-2014q4-20141203-win32.exe and today’s version of the Spark git repositories.

@BDub’s solution worked (thanks again BDub) but it is not ideal if I want to use git to update my local copy of the firmware.

Try make clean all

Something in your PATH variable looks off, given that c:\program is mentioned.

I:

  1. installed Github for windows (windows.github.com) and launched it.
  2. set up the git shell to be Cmd in the options.
  3. pushed the ~ key and launched the shell from the GUI.
  4. on my desktop I created a Spark folder, and cd’d into it in the shell.
  5. cloned firmware, core-common-lib, and core-communication-lib
  6. downloaded the arm GCC and make binaries to their own folders in spark folder on my desktop and added the binary folders to my path.
  7. “set APP=tinker”
  8. “cd firmware\build”
  9. “make”

That’s all I had to do.

Hi naikrovek,

I would like to be able to compile the code myself rather than 100% relying on the web IDE. I am on Windows 8. You have shorten to 9 steps there, however they are too brief for me.

  1. Is there a way that you can detail up the process with the screen shots like step 2, 5, 6, 7, 8, 9

  2. How you cloned in step 5… you mean, make a copy of them?

  3. Can you provide the link to the arm GCC that you specifically used?

  4. The url for any other related downloads… should there be any.

By the way … I hope you can help, thanks.