Offline Compile and FLASHing not working => magenta breathing

Hi there,

  1. Setup Toolchain
    I setup my toolchain described in https://learn.sparkfun.com/tutorials/photon-development-guide/all

After copy also crc32, i finally went of the errors.

  1. Compile

I checked out the latest firmware from git

I made a particle update to have an updated CLI and firmware system to 6.1.0, compile and flash with

make PLATFORM=photon APP=blinky clean all program-dfu

But after flashing, only magenta is breathing? Any hints how to process?

Best regards

Holger

@HolgerF, the system firmware on the Photon may not match the version you compiled to. The Photon won’t “auto heal” when flashed via the local toolchain. Make sure you have the latest Particle CLI and run particle update with the Photon in DFU mode.

I’m installed everything with the ParticleToolchainInstaller.exe on a Win 7 machine.

Invoking: ARM GCC C++ Linker
mkdir -p …/…/…/build/target/user-part/platform-6-m/
arm-none-eabi-g++ -DSTM32_DEVICE -DSTM32F2XX -DPLATFORM_THREADING=1 -DPLATFORM_ID=6 -DPLATFORM_NAME=photon -DUSBD_VID_SPARK=0x2B04 -DUSBD_PID_DFU=0xD006 -DUSBD_PID_CDC=0xC006 -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -DINCLUDE_PLATFORM=1 -fno-builtin -DUSE_STDPERIPH_DRIVER -DDFU_BUILD_ENABLE -DPARTICLE_NO_ARDUINO_COMPATIBILITY=0 -DSYSTEM_VERSION_STRING=0.6.1 -DRELEASE_BUILD -Werror -I./inc -I…/…/…/user/inc -I…/…/…/dynalib/inc -I…/…/…/services/inc -I…/…/…/hal/inc -I…/…/…/hal/shared -I…/…/…/hal/src/photon -I…/…/…/hal/src/stm32f2xx -I…/…/…/hal/src/stm32 -I…/…/…/hal/src/photon/api -I…/…/…/system/inc -I…/…/…/rt-dynalib/inc -I…/…/…/wiring/inc -I…/…/…/modules/photon/system-part1/inc -I…/…/…/modules/shared/stm32f2xx/inc -I…/…/…/platform/shared/inc -I…/…/…/platform/MCU/STM32F2xx/CMSIS/Include -I…/…/…/platform/MCU/STM32F2xx/CMSIS/Device/ST/Include -I…/…/…/platform/MCU/STM32F2xx/SPARK_Firmware_Driver/inc -I…/…/…/platform/MCU/shared/STM32/inc -I…/…/…/platform/MCU/STM32F2xx/STM32_StdPeriph_Driver/inc -I…/…/…/platform/MCU/STM32F2xx/STM32_USB_Device_Driver/inc -I…/…/…/platform/MCU/STM32F2xx/STM32_USB_Host_Driver/inc -I…/…/…/platform/MCU/STM32F2xx/STM32_USB_OTG_Driver/inc -I. -MD -MP -MF …/…/…/build/target/user-part/platform-6-m/product_id_and_version.elf.d -ffunction-sections -fdata-sections -Wall -Wno-switch -Wno-error=deprecated-declarations -fmessage-length=0 -fno-strict-aliasing -DSPARK=1 -DPARTICLE=1 -DSTART_DFU_FLASHER_SERIAL_SPEED=14400 -DSTART_YMODEM_FLASHER_SERIAL_SPEED=28800 -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -DUSER_FIRMWARE_IMAGE_SIZE=0x20000 -DUSER_FIRMWARE_IMAGE_LOCATION=0x80A0000 -DMODULAR_FIRMWARE=1 -DMODULE_VERSION=4 -DMODULE_FUNCTION=5 -DMODULE_INDEX=1 -DMODULE_DEPENDENCY=4,2,105 -D_WINSOCK_H -D_GNU_SOURCE …/…/…/build/target/user-part/platform-6-m/src/module_info.o …/…/…/build/target/user-part/platform-6-m/src/user_export.o …/…/…/build/target/user-part/platform-6-m/src/user_module.o …/…/…/build/target/user-part/platform-6-m/src/newlib_stubs.o --output …/…/…/build/target/user-part/platform-6-m/product_id_and_version.elf -Wl,–whole-archive …/…/…/hal/src/photon/lib/STM32F2xx_Peripheral_Libraries.a -Wl,–no-whole-archive -nostartfiles -Xlinker --gc-sections -L…/…/…/build/arm/linker/stm32f2xx -L…/…/…/build/target/user/platform-6-m/applications/product_id_and_version/ -L…/…/…/build/target/services-dynalib/arm/ -L…/…/…/build/target/hal-dynalib/platform-6-m/ -L…/…/…/build/target/system-dynalib/platform-6-m/ -L…/…/…/build/target/rt-dynalib/platform-6-m/ -L…/…/…/build/target/wiring/platform-6-m/ -L…/…/…/build/target/communication-dynalib/platform-6-m/ -L…/…/…/build/target/platform/platform-6-m/ -L…/…/…/build/target/wiring_globals/platform-6-m/ -L…/…/…/hal/src/photon/lib/ -L…/…/…/build/arm/linker -Wl,–whole-archive -luser -lhal-dynalib -lservices-dynalib -lsystem-dynalib -lrt-dynalib -lwiring -lcommunication-dynalib -lplatform -lwiring_globals -Wl,–no-whole-archive -lnosys --specs=nano.specs -L…/…/…/modules/photon/system-part2 -L…/…/…/modules/photon/system-part1 -L. -T./linker.ld -Wl,–defsym,USER_FIRMWARE_IMAGE_SIZE=0x20000 -Wl,–defsym,USER_FIRMWARE_IMAGE_LOCATION=0x80A0000 -Wl,-Map,…/…/…/build/target/user-part/platform-6-m/product_id_and_version.map

Invoking: ARM GNU Create Flash Image
arm-none-eabi-objcopy -O binary …/…/…/build/target/user-part/platform-6-m/product_id_and_version.elf …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc
if [ -s …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc ]; then
head -c $((stat --print %s ../../../build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc - 38)) …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc > …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.no_crc &&
tail -c 38 …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc > …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.crc_block &&
test “0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20280078563412” = xxd -p -c 500 ../../../build/target/user-part/platform-6-m/product_id_and_version.bin.crc_block &&
shasum -a 256 …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.no_crc | cut -c 1-65 | xxd -r -p | dd bs=1 of=…/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc seek=$((stat --print %s ../../../build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc - 38)) conv=notrunc &&
head -c $((stat --print %s ../../../build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc - 4)) …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc > …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.no_crc &&
crc32 …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.no_crc | cut -c 1-10 | xxd -r -p | dd bs=1 of=…/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc seek=$((stat --print %s ../../../build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc - 4)) conv=notrunc ;
fi
32+0 records in
32+0 records out
32 bytes copied, 0,0004236 s, 75,5 kB/s
Can’t locate Archive/Zip.pm in @INC (you may need to install the Archive::Zip module) (@INC contains: blib/lib lib /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /c/Particle/Toolchain/MinGW/msys/1.0/bin/crc32 line 7.
BEGIN failed–compilation aborted at /c/Particle/Toolchain/MinGW/msys/1.0/bin/crc32 line 7.
0+0 records in
0+0 records out
0 bytes copied, 0,0001131 s, 0,0 kB/s
[ ! -f …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin ] || rm …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin
mv …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin.pre_crc …/…/…/build/target/user-part/platform-6-m/product_id_and_version.bin

dfu-suffix -v 2B04 -p D006 -a …/…/…/build/target/user-part/platform-6-m/product_id_and_version.dfu
process_begin: CreateProcess(NULL, dfu-suffix -v 2B04 -p D006 -a …/…/…/build/target/user-part/platform-6-m/product_id_and_version.dfu, …) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
make[1]: *** […/…/…/build/target/user-part/platform-6-m/product_id_and_version.dfu] Fehler 2
make[1]: Leaving directory `C:/Users/IBE-VM/Downloads/firmware/modules/photon/user-part’
make: *** [modules/photon/user-part] Fehler 2

How to get rid of this problem?