Local Build Pipeline [Resolved]

Hello,

I am having trouble to setup a local build pipeline i.e. compiling and flashing locally. Here is what I have so far:

I setup the build system dependencies.md, I cloned the particle firmware repository spark/firmware, I created an application under /firmware/user/applications/foo, and I use the following commands to build:

cd /firmware && git checkout v0.4.7
cd /firmware/modules && make clean all PLATFORM=photon

The build process succeeds with 3 binaries being created

  • /firmware/build/target/user-part/platform-6-m/user-part.bin
  • /firmware/build/target/system-part1/platform-6-m/system-part1.bin
  • /firmware/build/target/system-part2/platform-6-m/system-part2.bin

After putting the photon in DFU mode [blinking yellow] I use the following commands to flash:

dfu-util -d 0x2B04:0xD006 -a 0 -s 0x08020000 -D <path omitted>/system-part1.bin
dfu-util -d 0x2B04:0xD006 -a 0 -s 0x08060000 -D <path omitted>/system-part2.bin
dfu-util -d 0x2B04:0xD006 -a 0 -s 0x080A0000:leave -D <path omitted>/user-part.bin

My problem: The photon comes back up only in safe mode [breathing magenta]

If I flash the application via particle ci the photon and my application do not encounter any trouble

particle flash <name> application.cpp

Any help would be greatly appreciated

Happy holidays and happy hacking

What platform are you building on ?

Also try the program-dfu target (with your device already in dfu mode.)

Hello @AndyW

Thanks for your response. I’m using the following configuration:

Operating System
Ubuntu 14.04.3 LTS

Compiler
ARM NONE EABI GCC 4.9.3

Firmware Release
v0.4.7

Digging further through the make logs and the forum I found the problem and solution to my issue.

Problem

crc32 executable missing

Solution

apt-get install -y libarchive-zip-perl

Thanks again for taking the time on X-mas.

1 Like

Glad to hear you’re up and running, I’m going to change the thread title to show that the issue is resolved, OK.

1 Like