cancel
Showing results for 
Search instead for 
Did you mean: 

File .wed and .wdb

dspadoni9
Associate II
Posted on March 12, 2004 at 08:57

File .wed and .wdb

3 REPLIES 3
dspadoni9
Associate II
Posted on March 10, 2004 at 12:42

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.

kr
Associate II
Posted on March 11, 2004 at 01:11

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) *.wdb
shreya
Associate II
Posted on March 12, 2004 at 08:57

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.