I’m new to this community. I have started working on Photon from about a week now. I primarily use Windows 10 as my development platform. I have been able to setup Particle Cli and get my Photon device up and running.
I have been facing issues building the Firmware locally on my Win 10 machine. I have the following tools installed.
- Particle Cli
- MinGW - W64-builds-4.2.0
- GNU ARM compiler - gcc-arm-none-eabi-4_9-2015q3-20150921-win32
- MSYS - v1.0.11
I have setup GIT Bash as the default shell. I followed these steps to build Firmware
I see the following error, when I tried to execute a make clean command.
Karthik@KARTHIK-PC ~/Documents/GitHub/firmware/modules (latest)
$ make clean all PLATFORM=photon -s program-dfu
clean all program-dfu
/bin/sh: line 1: stat: command not found
head: -38: invalid number of bytes
…/…/…/build/module.mk:159: recipe for target ‘…/…/…/build/target/system-part1/platform-6-m/system-part1.bin’ failed
make: *** […/…/…/build/target/system-part1/platform-6-m/system-part1.bin] Error 1
makefile:81: recipe for target ‘c:/Users/Karthik/Documents/GitHub/firmware/modules/photon/system-part1/makefile’ failed
make: *** [c:/Users/Karthik/Documents/GitHub/firmware/modules/photon/system-part1/makefile] Error 2
A similar error, related to stat has been previously reported by @wesner0019 on this thread .
I tried adding the MSYS bin to the System PATH variable too. Nothing seems to be working.
Should I install stat.exe separately? Isn’t it part of MSYS? Any ideas? Please help me fix this issue.