Build doesn't produce output


#1

Good Day Community
So i’m pretty new to particle and just got my photon the other day. I’m using it for a school project and tried making a led blink but this already failed.
I followed the instructions on https://docs.particle.io/faq/particle-tools/local-build/photon/
First i struggled because i didn’t include “application.h” in my cpp file and the compiler naturally complained. But now the compiler finishes my make command without complaints but refuses to produce any files as output even though the command line tells me files have been created.
My code is identical to the one found on: https://docs.particle.io/guide/getting-started/examples/photon/#blink-an-led just with the necessary include.
I am using a debian linux btw.
This is the last part of my output when i call make all PLATFORM=photon APPDIR=../../blinkled:

Invoking: ARM GNU Create Flash Image
arm-none-eabi-objcopy -O binary ../../blinkled/target/blinkled.elf ../../blinkled/target/blinkled.bin.pre_crc
if [ -s ../../blinkled/target/blinkled.bin.pre_crc ]; then \
head -c $((`stat -c %s ../../blinkled/target/blinkled.bin.pre_crc` - 38)) ../../blinkled/target/blinkled.bin.pre_crc > ../../blinkled/target/blinkled.bin.no_crc && \
tail -c 38 ../../blinkled/target/blinkled.bin.pre_crc > ../../blinkled/target/blinkled.bin.crc_block && \
test "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20280078563412" = `xxd -p -c 500 ../../blinkled/target/blinkled.bin.crc_block` && \
shasum -a 256 ../../blinkled/target/blinkled.bin.no_crc | cut -c 1-65 | xxd -r -p | dd bs=1 of=../../blinkled/target/blinkled.bin.pre_crc seek=$((`stat -c %s ../../blinkled/target/blinkled.bin.pre_crc` - 38)) conv=notrunc  && \
head -c $((`stat -c %s ../../blinkled/target/blinkled.bin.pre_crc` - 4)) ../../blinkled/target/blinkled.bin.pre_crc > ../../blinkled/target/blinkled.bin.no_crc && \
 crc32 ../../blinkled/target/blinkled.bin.no_crc | cut -c 1-10 | xxd -r -p | dd bs=1 of=../../blinkled/target/blinkled.bin.pre_crc seek=$((`stat -c %s ../../blinkled/target/blinkled.bin.pre_crc` - 4)) conv=notrunc ;\
fi
32+0 records in
32+0 records out
32 bytes (32 B) copied, 0.0281882 s, 1.1 kB/s
4+0 records in
4+0 records out
4 bytes (4 B) copied, 0.0626832 s, 0.1 kB/s
[ ! -f ../../blinkled/target/blinkled.bin ] || rm ../../blinkled/target/blinkled.bin
mv ../../blinkled/target/blinkled.bin.pre_crc ../../blinkled/target/blinkled.bin

arm-none-eabi-objcopy -O ihex ../../blinkled/target/blinkled.elf ../../blinkled/target/blinkled.hex
arm-none-eabi-size --format=berkeley ../../blinkled/target/blinkled.elf
   text       data        bss        dec        hex    filename
   4876         12       1448       6336       18c0    ../../blinkled/target/blinkled.elf
arm-none-eabi-objdump -h -S ../../blinkled/target/blinkled.elf > ../../blinkled/target/blinkled.lst
make[1]: Leaving directory '/home/user/Documents/src/firmware/modules/photon/user-part'

It seems to me like this bash output clearly states that my binary has been created, but in the stated folder nothing appeared.
Anyone can Help?
Thanks Fajak


#2

I would recommend trying po-util for building locally. https://github.com/nrobinson2000/po-util


#3

So i found my builded files in modules/blinkled/target/ not where i expected them …/…/blinkled/target/