Photon Firmware error make

Hello guys,

I’m trying to compile the Photon firmware development branch and i try it in a different ways, unfortunely the result is the same …

C:\PhotonCode\firmware>make PLATFORM=photon
Building firmware for Production Photon, platform ID: 6, product ID: 6
make -C ./communication
"branch develop"
make[1]: Entry in directory `C:/PhotonCode/firmware/communication'
../build/checks.mk:6: *** Please note the develop branch contains untested, unre
leased code. We recommend using the 'photon' branch which contains the latest re
leased firmware code. To build the develop branch, please see the build document
ation..  Stop.
make[1]: Leave Directory `C:/PhotonCode/firmware/communication'
make: ** [communication] Erro 2

I really appreciate your help …

Thanks

Can you try this

make clean all PLATFORM=photon PARTICLE_DEVELOP=1
// or
make clean all PLATFORM_ID=6 PARTICLE_DEVELOP=1

Have a look at the last paragraph
https://github.com/spark/firmware/blob/develop/docs/build.md

1 Like

I already try your suggestion and the output was that one:

/usr/bin/sh: line 1: stat: command not found
head: -38: invalid number of bytes
make[1]: ** [../../../build/target/user-part/platform-6-m/user-part.bin] Erro 1
make[1]: Leaving `C:/PhotonCode/firmware/modules/photon/user-part'
make: ** [modules/photon/user-part] Error 2

Thanks

@Xtal, do you have MinGW installed? If you are working on windows, take a look at the topic for guidance:

:smile:

2 Likes

Thanks for your help…

we only need a ParticleToolchain.exe and the right PATH…

PATH=C:\Particle\Toolchain\MinGW;C:\Particle\Toolchain\MinGW\msys\1.0\bin;C:\Particle\Toolchain\Make\bin;C:\Particle\Toolchain\GCC-ARM\bin

…, and run make, for example:

make clean all PLATFORM=photon PARTICLE_DEVELOP=1 APP=tinker