# Offline Compile and FLASHing not working =\> magenta breathing

**URL:** <https://community.particle.io/t/offline-compile-and-flashing-not-working-magenta-breathing/32325>\
**Category:** Firmware\
**Created:** [May 2, 2017, 6:42am UTC](https://community.particle.io/t/offline-compile-and-flashing-not-working-magenta-breathing/32325 "2017-05-02T06:42:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HolgerF](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@HolgerF](https://community.particle.io/u/HolgerF)\
**Post date:** [May 2, 2017, 6:42am UTC](https://community.particle.io/t/offline-compile-and-flashing-not-working-magenta-breathing/32325/1 "2017-05-02T06:42:23Z")

</div>

Hi there,

1. Setup Toolchain  
I setup my toolchain described in [https://learn.sparkfun.com/tutorials/photon-development-guide/all](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

> **[particle-iot/firmware](https://github.com/particle-iot/firmware)**
>
> firmware - Firmware for Particle Devices

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

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

```

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

Best regards

Holger

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [May 2, 2017, 7:39pm UTC](https://community.particle.io/t/offline-compile-and-flashing-not-working-magenta-breathing/32325/2 "2017-05-02T19:39:56Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![HolgerF](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@HolgerF](https://community.particle.io/u/HolgerF)\
**Post date:** [May 5, 2017, 9:19am UTC](https://community.particle.io/t/offline-compile-and-flashing-not-working-magenta-breathing/32325/3 "2017-05-05T09:19:23Z")

</div>

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?
