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