My photon is giving me hard faults continuously so I’ve endeavored to install eclipse and try debug the issue. I’ve followed the guide on the particle FAQ and I could build the tinkerbreak firmware and download it onto my photon fine. I get alot of errors during the make saying “git command could not be found” but other than that, it seemed to have worked. I could put in breakpoints and step through the code fine. What I’m trying to do now is try the same process but with a slightly more complicated project. I’ve setup a standard project with my .cpp file in the /src folder and libaries in the /lib folder. I’m using the default makefile:
# Assumption: These variables will be set in the environment # $(APPDIR) # $(FIRMWARE) # $(PATH) # $(PLATFORM) # $(TARGETBIN) # Optionally set $(MAKEOPTS) for things like MODULAR=n DEBUG_BUILD=y USE_SWD_JTAG=y all : $(TARGETBIN) # Use the wildcard function explicitly, because just using a dependency on .h files will # fail if the project doesn't contain any .h files. This will work either way. source := $(wildcard *.cpp) $(wildcard *.h) $(TARGETBIN) : $(source) cd "$(FIRMWARE)/main" && make all PLATFORM=$(PLATFORM) APPDIR="$(APPDIR)" $(MAKEOPTS) clean : cd "$(FIRMWARE)/modules" && make clean all PLATFORM=$(PLATFORM) APPDIR="$(APPDIR)" $(MAKEOPTS) .PHONY: all clean
It is failing with this error: “build.mk:65: *** “No sources found in C:/Users/name/Particle projects/projectName/src/”. Stop.”
I’m not sure what that means. I have my .cpp file in there? Not sure if I’ll have to add more to the make file to handle the library files either.
Side note: If anyone knows how to resolve the git command not found issue much appreciated!