2004-03-11 11:57 PM
2004-03-10 03:42 AM
We're using ST7MDT20-DVP3 development sistem and the visual debug generates project.wed and project.wdb files. These files become more and more large and slow down the debug remarkablly. It is possible to eliminate these files every time that the project is compiled?
Thanks.2004-03-10 04:11 PM
Hi danspando,
Below is the model mak file in which you can add commands to remove the wed and wdb files. Hope this will help u. PATHC = C:\Metrowerks\CodeWarrior_STM_V1.1 APPLI = example LK_CMD_FILE = $(APPLI).prm # List of source files C_SRC_LIST = start07.c timer.c ASM_SRC_LIST = CC = ''$(PATHC)\prog\cst7.exe'' AS = ''$(PATHC)\prog\ast7.exe'' LK = ''$(PATHC)\prog\linker.exe'' INCDIR = ''$(PATHC)\lib\st7c\include'' CFLAGS = -Lasm -ml -i$(INCDIR) AFLAGS = LFLAGS = -envGENPATH=$(PATHC)\lib\st7c\lib CP = copy RM = del # List of object files from list of source files OBJ_LIST = $(patsubst %.c,%.o,$(filter %.c,$(C_SRC_LIST))) $(patsubst %.asm,%.o,$(filter %.asm,$(ASM_SRC_LIST))) # Rules for building targets $(APPLI).abs: $(OBJ_LIST) $(LK_CMD_FILE) $(LK) $(LFLAGS) $(LK_CMD_FILE) # Other rules for compiling C and asm files %.o : %.c $(CC) $(CFLAGS) $< %.o : %.s $(AS) $(AFLAGS) $< # Rule for forcing the build without taking into account dependencies rebuild: gmake -f $(APPLI).mak clean gmake -f $(APPLI).mak $(APPLI).abs clean : if exist $(APPLI).abs $(RM) $(APPLI).abs if exist *.o $(RM) *.o if exist *.ls $(RM) *.ls if exist *.map $(RM) *.map if exist *.wed $(RM) *.wed if exist *.wdb $(RM) *.wdb2004-03-11 11:57 PM
You must know that if you delete these you will lose environment information and the workspace will open in edit and debug modes with certain ''default'' windows open.