Code Examples

This section contains a list of code examples that can perform various simple tasks. In general, to compile the code it is only necessary to add a few files to your project:

FlashPro-ARM:

  • include FlashProARM-Dll.h

  • on Windows link with FlashProARM-FPAsel.lib or dynamically load FlashProARM-FPAsel.dll

  • on Linux use this makefile to compile any .cpp file.

    #"sudo dpkg -i <deb file from linux package>" to install multifparm CC := g++ LIBS_FP := -lmultifparm -lpthread -ldl -lusb-1.0 -ludev CPP_FILES := $(wildcard *.cpp) EXECS := $(notdir $(CPP_FILES:.cpp=)) EXECSFP := $(addsuffix fp, $(notdir $(CPP_FILES:.cpp=))) .PHONY: all clean all: $(EXECS) %: %.cpp $(CC) -o $@fp $< -DFLASHPROARM -L. $(LIBS_FP) clean: rm -f $(EXECSFP) .PHONY: force force :;

GangPro-ARM:

  • include GangProARM-Dll.h

  • on Windows link with GangProARM-FPAsel.lib or dynamically load GangProARM-FPAsel.dll

  • on Linux use this Makefile to compile any .cpp file.

    #"sudo dpkg -i <deb file from linux package>" to install multigparm CC := g++ LIBS_GP := -lmultigparm -lpthread -ldl -lusb-1.0 -ludev CPP_FILES := $(wildcard *.cpp) EXECS := $(notdir $(CPP_FILES:.cpp=)) EXECSGP := $(addsuffix gp, $(notdir $(CPP_FILES:.cpp=))) .PHONY: all clean all: $(EXECS) %: %.cpp $(CC) -o $@gp $< -DGANGPROARM -L. $(LIBS_GP) clean: rm -f $(EXECSGP) .PHONY: force force :;