Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Hi All,
I am trying to generate a .mod file.I have the eval version of RVDS and i am using the .mak file as given by the helloworld example.I just want to test and then go ahead with testing my application.But the baisc hello world is giving the following error .I have also attached the .mak file and the error as given by the arm compiler.I searched for the errors in the ADS_Errors_and_warnings but that documents also is not giving details as how to get rid of the errors.
Error: C3078E: stdin ('-') combined with other files
pls,can any one help me to get rid of the error.

thanks

SUPPORT_DIR = C:\Progra~1\BREWSD~1.1\src
SUPPORT_INCDIR = C:\Progra~1\BREWSD~1.1\inc
SUPPORT_APPIDDIR = ..
TARGET= helloworld
EXETYPE= elf
MODULE= mod
MAKE_TARGET= helloworld
DYNAPP= -DDYNAMIC_APP
ARMBIN=C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium
ARMINC = C:\Progra~1\ARM\RVCT\Data\2.1\345\include\windows
ARMLIB = C:\Progra~1\ARM\RVCT\Data\2.1\345\lib
ARMCC = $(ARMBIN)\armcc
LD = $(ARMBIN)\armlink
HEXTOOL = $(ARMBIN)\fromelf
OBJ_CMD = -o
CPU = -cpu ARM7TDMI
#ROPI = ropi
INTERWRK = interwork
APCS = -apcs /$(ROPI)/$(INTERWRK)/norwpi
CHK = -fa
OUT = -c
DBG = -g
OPT = -Ospace -O2
END = -littleend
ZA = -zo
ZAS = - as4
CODE = $(END) $(ZA) $(ZAS)
INC = -I.-I$(SUPPORT_INCDIR)-I$(SUPPORT_APPIDDIR)
LINK_CMD = -o -v
ROPILINK = -ropi
LINK_ORDER = -first AEEMod_Load
BINFORMAT = -bin
CFLAGS0 = $(OUT) $(DYNAPP) $(INC) $(CPU) $(APCS) $(CODE) $(CHK) $(DBG)
CFLAGS = $(CFLAGS0) $(OPT)
#LFLAGS = $(ROPILINK) -rwpi -verbose
all : $(TARGET).$(MODULE)
clean :
@echo ---------------------------------------------------------------
@echo CLEAN
-del /f AEEAppGen.o
-del /f AEEModGen.o
-del /f $(TARGET).o
-del /f $(TARGET).$(EXETYPE)
-del /f $(TARGET).$(MODULE)
@echo ---------------------------------------------------------------
SRC_FILE = $(@F:.o=.c)
OBJ_FILE = $(OBJ_CMD) $(@F)
.SUFFIXES :
.SUFFIXES : .o .dep .c
.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SRC_FILE)
@echo ---------------------------------------------------------------
{$(SUPPORT_DIR)}.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SUPPORT_DIR)\$(SRC_FILE)
@echo ---------------------------------------------------------------
APP_OBJS = AEEAppGen.o \
AEEModGen.o \
$(TARGET).o
$(TARGET).$(MODULE) : $(TARGET).$(EXETYPE)
@echo ---------------------------------------------------------------
@echo TARGET $@
$(HEXTOOL) $(TARGET).$(EXETYPE) $(BINFORMAT) $(TARGET).$(MODULE)
$(TARGET).$(EXETYPE) : $(APP_OBJS)
@echo ---------------------------------------------------------------
@echo TARGET $@
$(LD) $(LINK_CMD) $(TARGET).$(EXETYPE) $(LFLAGS) $(APP_OBJS) $(LINK_ORDER)
AEEAppGen.o : $(SUPPORT_DIR)\AEEAppGen.c
AEEAppGen.o : $(SUPPORT_INCDIR)\AEEAppGen.h
AEEModGen.o : $(SUPPORT_DIR)\AEEModGen.c
AEEModGen.o : $(SUPPORT_INCDIR)\AEEModGen.h
$(TARGET).o : $(TARGET).c
#$(TARGET).o : $(TARGET).h
$(TARGET).o : $(SUPPORT_INCDIR)\AEEAppGen.h
$(TARGET).o : $(SUPPORT_INCDIR)\AEEModGen.h
-------------------------------------------------------------
output screen
OBJECT AEEAppGen.o
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armcc -c -
DDYNAMIC_APP -I.-IC:\Progra~1\BREWSD~1.1\inc-I.. -cpu ARM7TDMI -apcs //interwork
/norwpi -littleend -zo - as4 -fa -g -Ospace -O2 -I.-IC:\Progra~1\BREWSD~1.1\inc-
I.. -o AEEAppGen.o C:\Progra~1\BREWSD~1.1\src\AEEAppGen.c
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: X0012W: Option 'f' is deprecated.
Error: C3078E: stdin ('-') combined with other files

NMAKE : fatal error U1077: 'C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_3
2-pentium\armcc' : return code '0x1'
Stop.

hi
in continuation with my earlier post,
i m using RVCT2.1 [Build 350],brew sdk 2.0.1 and vc++ 6.0
thanks

hi
in continuation with my earlier post,
i m using RVCT2.1 [Build 350],brew sdk 2.0.1 and vc++ 6.0
thanks

ibrew wrote:
output screen
OBJECT AEEAppGen.o
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armcc -c -
DDYNAMIC_APP -I.-IC:\Progra~1\BREWSD~1.1\inc-I.. -cpu ARM7TDMI -apcs //interwork
/norwpi -littleend -zo - as4 -fa -g -Ospace -O2 -I.-IC:\Progra~1\BREWSD~1.1\inc-
I.. -o AEEAppGen.o C:\Progra~1\BREWSD~1.1\src\AEEAppGen.c
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: X0012W: Option 'f' is deprecated.
Error: C3078E: stdin ('-') combined with other files
NMAKE : fatal error U1077: 'C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_3
2-pentium\armcc' : return code '0x1'
Stop.
looks like the command line is incorrect somewhere, perhaps there is a space making
- DDYNAMIC_APP
should be:
-DDYNAMIC_APP
or some other similar problem.
-Tyndal

ibrew wrote:
output screen
OBJECT AEEAppGen.o
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armcc -c -
DDYNAMIC_APP -I.-IC:\Progra~1\BREWSD~1.1\inc-I.. -cpu ARM7TDMI -apcs //interwork
/norwpi -littleend -zo - as4 -fa -g -Ospace -O2 -I.-IC:\Progra~1\BREWSD~1.1\inc-
I.. -o AEEAppGen.o C:\Progra~1\BREWSD~1.1\src\AEEAppGen.c
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: X0012W: Option 'f' is deprecated.
Error: C3078E: stdin ('-') combined with other files
NMAKE : fatal error U1077: 'C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_3
2-pentium\armcc' : return code '0x1'
Stop.
looks like the command line is incorrect somewhere, perhaps there is a space making
- DDYNAMIC_APP
should be:
-DDYNAMIC_APP
or some other similar problem.
-Tyndal

Hi,
i removed the spaces and got the following error now..
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Error: X0000U: Unrecognized option '-as4'.
Warning: X0012W: Option 'f' is deprecated.
NMAKE : fatal error U1077: 'C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_3
2-pentium\armcc' : return code '0x1'
Stop.
thanks

Hi,
i removed the spaces and got the following error now..
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Error: X0000U: Unrecognized option '-as4'.
Warning: X0012W: Option 'f' is deprecated.
NMAKE : fatal error U1077: 'C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_3
2-pentium\armcc' : return code '0x1'
Stop.
thanks

That compilation flag should be "-zas4". You shouldn't be putting spaces between the dash and the option.

That compilation flag should be "-zas4". You shouldn't be putting spaces between the dash and the option.

Hi
thanks for the reply.now,m getting the following error.i searched for the helloworld.elf file ..but was not able to find..??any help would be highly appreciated...
C:\Program Files\BREW SDK v2.0.1\Examples\HelloWorld>nmake /d /f helloworld.mak
/all
C:\Progra~1\BREWSD~1.1\src\AEEAppGen.c Mon Jan 06 09:27:16 2003
C:\Progra~1\BREWSD~1.1\inc\AEEAppGen.h Mon Jan 06 09:27:12 2003
AEEAppGen.o target does not exist
C:\Progra~1\BREWSD~1.1\src\AEEModGen.c Mon Jan 06 09:27:16 2003
C:\Progra~1\BREWSD~1.1\inc\AEEModGen.h Mon Jan 06 09:27:14 2003
AEEModGen.o target does not exist
helloworld.c Mon Jan 06 09:26:56 2003
C:\Progra~1\BREWSD~1.1\inc\AEEAppGen.h Mon Feb 28 14:41:55 2005
C:\Progra~1\BREWSD~1.1\inc\AEEModGen.h Mon Feb 28 14:41:55 2005
helloworld.o target does not exist
helloworld.elf target does not exist
---------------------------------------------------------------
TARGET helloworld.elf
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armlink -o
-v helloworld.elf AEEAppGen.o AEEModGen.o helloworld.o -first AEEMod_Load
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Fatal error: L6002U: Could not open file helloworld.elf.
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
NMAKE : fatal error U1077: 'C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_3
2-pentium\armlink' : return code '0x1'
Stop.

Hi
thanks for the reply.now,m getting the following error.i searched for the helloworld.elf file ..but was not able to find..??any help would be highly appreciated...
C:\Program Files\BREW SDK v2.0.1\Examples\HelloWorld>nmake /d /f helloworld.mak
/all
C:\Progra~1\BREWSD~1.1\src\AEEAppGen.c Mon Jan 06 09:27:16 2003
C:\Progra~1\BREWSD~1.1\inc\AEEAppGen.h Mon Jan 06 09:27:12 2003
AEEAppGen.o target does not exist
C:\Progra~1\BREWSD~1.1\src\AEEModGen.c Mon Jan 06 09:27:16 2003
C:\Progra~1\BREWSD~1.1\inc\AEEModGen.h Mon Jan 06 09:27:14 2003
AEEModGen.o target does not exist
helloworld.c Mon Jan 06 09:26:56 2003
C:\Progra~1\BREWSD~1.1\inc\AEEAppGen.h Mon Feb 28 14:41:55 2005
C:\Progra~1\BREWSD~1.1\inc\AEEModGen.h Mon Feb 28 14:41:55 2005
helloworld.o target does not exist
helloworld.elf target does not exist
---------------------------------------------------------------
TARGET helloworld.elf
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armlink -o
-v helloworld.elf AEEAppGen.o AEEModGen.o helloworld.o -first AEEMod_Load
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Fatal error: L6002U: Could not open file helloworld.elf.
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
NMAKE : fatal error U1077: 'C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_3
2-pentium\armlink' : return code '0x1'
Stop.

hi,
after a lots of removing spaces and adding header files to my app directory..its finally working..
my final make file is
i finally used the Cappmake file tempelate provided in the brew/src directory.
but,why was the header file were not able to locate?i addded those from the brew/inc directory to the app directory?
BREW_HOME=C:\Progra~1\BREWSD~1.1
ARM_HOME=C:\Progra~1\ARM
TARGET=helloworld
OBJS=AEEAppGen.o AEEModGen.o helloworld.o
APP_INCLUDES=..
EXETYPE=elf # Target image file format
MODULE=mod # Downloadable module extension
DYNAPP=-DDYNAMIC_APP
SUPPORT_DIR=$(BREW_HOME)\src
SUPPORT_INCDIR=$(BREW_HOME)\inc
ARMBIN = $(ARM_HOME)\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium
ARMINC = $(ARM_HOME)\RVCT\Data\2.1\345\include\windows
ARMLIB = $(ARM_HOME)\RVCT\Data\2.1\345\lib
ARMCC=$(ARMBIN)\armcc # ARM ADS ARM 32-bit inst. set ANSI C compiler
LD=$(ARMBIN)\armlink # ARM ADS linker
HEXTOOL=$(ARMBIN)\fromelf # ARM ADS utility to create hex file from image
OBJ_CMD=-o # Command line option to specify output filename
CPU=-cpu ARM7TDMI # ARM7TDMI target processor
ROPI=ropi # Read-Only(code) Position independence
INTERWRK=interwork # Allow ARM-Thumb interworking
APCS=-apcs/$(ROPI)/$(INTERWRK)/norwpi
CHK=-fa # Check for data flow anomolies
OUT=-c # Object file output only
DBG=-g # Enable debug
OPT=-Ospace -O2 # Full compiler optimization for space
END=-littleend # Compile for little endian memory architecture
ZA=-zo # LDR may only access 32-bit aligned addresses
ZAS=-zas4 # Min byte alignment for structures
CODE=$(END)$(ZA)$(ZAS)
INC=-I.-I$(SUPPORT_INCDIR)$(APP_INCLUDES)
LINK_CMD=-o
ROPILINK=-ropi #Link image as Read-Only Position Independent
LINK_ORDER=-first AEEMod_Load
BINFORMAT=-bin
CFLAGS0=$(OUT) $(DYNAPP) $(INC) $(CPU) $(APCS) $(CODE) $(CHK) $(DBG)
CFLAGS=$(CFLAGS0) $(OPT)
LFLAGS=$(ROPILINK) -rwpi
all : $(TARGET).$(MODULE)
clean :
@echo ---------------------------------------------------------------
@echo CLEAN
-del /f $(OBJS)
-del /f $(TARGET).$(EXETYPE)
-del /f $(TARGET).$(MODULE)
@echo ---------------------------------------------------------------
SRC_FILE = $(@F:.o=.c) # Input source file specification
OBJ_FILE = $(OBJ_CMD) $(@F) # Output object file specification
.SUFFIXES :
.SUFFIXES : .o .dep .c
.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SRC_FILE)
@echo ---------------------------------------------------------------
.c.mix:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) -S -fs $(CFLAGS) $(INC) $(OBJ_FILE) $<
@echo ---------------------------------------------------------------
{$(SUPPORT_DIR)}.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SUPPORT_DIR)\$(SRC_FILE)
@echo ---------------------------------------------------------------
APP_OBJS = $(OBJS)
$(TARGET).$(MODULE) : $(TARGET).$(EXETYPE)
@echo ---------------------------------------------------------------
@echo TARGET $@
$(HEXTOOL) $(TARGET).$(EXETYPE) $(BINFORMAT) $(TARGET).$(MODULE)
$(TARGET).$(EXETYPE) : $(APP_OBJS)
@echo ---------------------------------------------------------------
@echo TARGET $@
$(LD) $(LINK_CMD) $(TARGET).$(EXETYPE) $(LFLAGS) $(APP_OBJS) $(LINK_ORDER)

hi,
after a lots of removing spaces and adding header files to my app directory..its finally working..
my final make file is
i finally used the Cappmake file tempelate provided in the brew/src directory.
but,why was the header file were not able to locate?i addded those from the brew/inc directory to the app directory?
BREW_HOME=C:\Progra~1\BREWSD~1.1
ARM_HOME=C:\Progra~1\ARM
TARGET=helloworld
OBJS=AEEAppGen.o AEEModGen.o helloworld.o
APP_INCLUDES=..
EXETYPE=elf # Target image file format
MODULE=mod # Downloadable module extension
DYNAPP=-DDYNAMIC_APP
SUPPORT_DIR=$(BREW_HOME)\src
SUPPORT_INCDIR=$(BREW_HOME)\inc
ARMBIN = $(ARM_HOME)\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium
ARMINC = $(ARM_HOME)\RVCT\Data\2.1\345\include\windows
ARMLIB = $(ARM_HOME)\RVCT\Data\2.1\345\lib
ARMCC=$(ARMBIN)\armcc # ARM ADS ARM 32-bit inst. set ANSI C compiler
LD=$(ARMBIN)\armlink # ARM ADS linker
HEXTOOL=$(ARMBIN)\fromelf # ARM ADS utility to create hex file from image
OBJ_CMD=-o # Command line option to specify output filename
CPU=-cpu ARM7TDMI # ARM7TDMI target processor
ROPI=ropi # Read-Only(code) Position independence
INTERWRK=interwork # Allow ARM-Thumb interworking
APCS=-apcs/$(ROPI)/$(INTERWRK)/norwpi
CHK=-fa # Check for data flow anomolies
OUT=-c # Object file output only
DBG=-g # Enable debug
OPT=-Ospace -O2 # Full compiler optimization for space
END=-littleend # Compile for little endian memory architecture
ZA=-zo # LDR may only access 32-bit aligned addresses
ZAS=-zas4 # Min byte alignment for structures
CODE=$(END)$(ZA)$(ZAS)
INC=-I.-I$(SUPPORT_INCDIR)$(APP_INCLUDES)
LINK_CMD=-o
ROPILINK=-ropi #Link image as Read-Only Position Independent
LINK_ORDER=-first AEEMod_Load
BINFORMAT=-bin
CFLAGS0=$(OUT) $(DYNAPP) $(INC) $(CPU) $(APCS) $(CODE) $(CHK) $(DBG)
CFLAGS=$(CFLAGS0) $(OPT)
LFLAGS=$(ROPILINK) -rwpi
all : $(TARGET).$(MODULE)
clean :
@echo ---------------------------------------------------------------
@echo CLEAN
-del /f $(OBJS)
-del /f $(TARGET).$(EXETYPE)
-del /f $(TARGET).$(MODULE)
@echo ---------------------------------------------------------------
SRC_FILE = $(@F:.o=.c) # Input source file specification
OBJ_FILE = $(OBJ_CMD) $(@F) # Output object file specification
.SUFFIXES :
.SUFFIXES : .o .dep .c
.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SRC_FILE)
@echo ---------------------------------------------------------------
.c.mix:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) -S -fs $(CFLAGS) $(INC) $(OBJ_FILE) $<
@echo ---------------------------------------------------------------
{$(SUPPORT_DIR)}.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SUPPORT_DIR)\$(SRC_FILE)
@echo ---------------------------------------------------------------
APP_OBJS = $(OBJS)
$(TARGET).$(MODULE) : $(TARGET).$(EXETYPE)
@echo ---------------------------------------------------------------
@echo TARGET $@
$(HEXTOOL) $(TARGET).$(EXETYPE) $(BINFORMAT) $(TARGET).$(MODULE)
$(TARGET).$(EXETYPE) : $(APP_OBJS)
@echo ---------------------------------------------------------------
@echo TARGET $@
$(LD) $(LINK_CMD) $(TARGET).$(EXETYPE) $(LFLAGS) $(APP_OBJS) $(LINK_ORDER)

HI all,
in continuation with my previous post,now i m facing the following problems.
i have generated the .mod file using the above process in my previous post.i was happy dng so.today ,when i tried to port the basic "helloworld" application onto the CDM 8910 handset.i am getting unknown error 341328208.
the same helloworld application which comes with the brew sdk having .mod file,when i ported that to the handset,it worked fine.
so,i m drawing the conclusion that ,
1)my .mod file generation process is wrong.i am using the helloworld.mak file as given with the brew sdk/example/helloworld to generated the .mod file(did necessary changes).also,i have noticed that the file size of the .mod file is differing from what i generate and the .mod file as given in the helloworld example.
2)my sig file is corrent cause my other brew/ask examples ..all are working fine.
3)what may be the reason for that error 341328208.as u can see my previous post,i have generated the .mod file and the file generation didnt give me any errors.
how can i identify the cause f error and rectify it.
4)can we use eval version of the RVCT2.1 [Build 350] to generate the .mod file,or the .mod file will work on the handset only when we have the full version of RVCT.??
has any one faced the problem eaerlier.
thanks

HI all,
in continuation with my previous post,now i m facing the following problems.
i have generated the .mod file using the above process in my previous post.i was happy dng so.today ,when i tried to port the basic "helloworld" application onto the CDM 8910 handset.i am getting unknown error 341328208.
the same helloworld application which comes with the brew sdk having .mod file,when i ported that to the handset,it worked fine.
so,i m drawing the conclusion that ,
1)my .mod file generation process is wrong.i am using the helloworld.mak file as given with the brew sdk/example/helloworld to generated the .mod file(did necessary changes).also,i have noticed that the file size of the .mod file is differing from what i generate and the .mod file as given in the helloworld example.
2)my sig file is corrent cause my other brew/ask examples ..all are working fine.
3)what may be the reason for that error 341328208.as u can see my previous post,i have generated the .mod file and the file generation didnt give me any errors.
how can i identify the cause f error and rectify it.
4)can we use eval version of the RVCT2.1 [Build 350] to generate the .mod file,or the .mod file will work on the handset only when we have the full version of RVCT.??
has any one faced the problem eaerlier.
thanks

Hello ibrew,
Quote:4)can we use eval version of the RVCT2.1 [Build 350] to generate the .mod file,or the .mod file will work on the handset only when we have the full version of RVCT.??
You can use the eval version of RVCT to generate the .mod file and it will work absolutely fine on the device.
best of luck

Hello ibrew,
Quote:4)can we use eval version of the RVCT2.1 [Build 350] to generate the .mod file,or the .mod file will work on the handset only when we have the full version of RVCT.??
You can use the eval version of RVCT to generate the .mod file and it will work absolutely fine on the device.
best of luck

Hi Rao,
so,wht may be the reason for the above error.when i m using the sdk example mod file to upload ,.mod,.sig and .mif file ..the application on handset works fine.but using the same .mif,.sig and my new .mod file,using the eval version of RVCT ...my handset is giving me unknown error..???

Hi Rao,
so,wht may be the reason for the above error.when i m using the sdk example mod file to upload ,.mod,.sig and .mif file ..the application on handset works fine.but using the same .mif,.sig and my new .mod file,using the eval version of RVCT ...my handset is giving me unknown error..???

ibrew,
can you run the helloworld example on the BREW emulator.

ibrew,
can you run the helloworld example on the BREW emulator.

Hi Rao,
yeah,very much..i can run the app on emulator.
pls find below the hwlloworld.mak file ....
m i gng wrong anywhere...?
BREW_HOME=C:\Progra~1\BREWSD~1.1
ARM_HOME=C:\Progra~1\ARM
TARGET=helloworld
OBJS=AEEAppGen.o AEEModGen.o helloworld.o
APP_INCLUDES=..
EXETYPE=elf # Target image file format
MODULE=mod # Downloadable module extension
DYNAPP=-DDYNAMIC_APP
SUPPORT_DIR=$(BREW_HOME)\imran
SUPPORT_INCDIR=$(BREW_HOME)\imran
ARMBIN=$(ARM_HOME)\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium
ARMINC = $(ARM_HOME)\RVCT\Data\2.1\345\include\windows
ARMLIB = $(ARM_HOME)\RVCT\Data\2.1\345\lib
ARMCC= $(ARMBIN)\armcc # ARM ADS ARM 32-bit inst. set ANSI C compiler
LD=$(ARMBIN)\armlink # ARM ADS linker
HEXTOOL=$(ARMBIN)\fromelf # ARM ADS utility to create hex file from image
OBJ_CMD=-o # Command line option to specify output filename
CPU=-cpu ARM7TDMI # ARM7TDMI target processor
ROPI=ropi # Read-Only(code) Position independence
INTERWRK=interwork # Allow ARM-Thumb interworking
APCS=-apcs/$(ROPI)/$(INTERWRK)/norwpi
CHK=-fa # Check for data flow anomolies
OUT=-c # Object file output only
DBG=-g # Enable debug
OPT=-Ospace -O2 # Full compiler optimization for space
END=-littleend # Compile for little endian memory architecture
ZA=-zo # LDR may only access 32-bit aligned addresses
ZAS=-zas4 # Min byte alignment for structures
CODE=$(END)$(ZA)$(ZAS)
INC=-I.-I$(SUPPORT_INCDIR)$(APP_INCLUDES)
LINK_CMD=-o
ROPILINK=-ropi #Link image as Read-Only Position Independent
LINK_ORDER=-first AEEMod_Load
BINFORMAT=-bin
CFLAGS0=$(OUT) $(DYNAPP) $(INC) $(CPU) $(APCS) $(CODE) $(CHK) $(DBG)
CFLAGS=$(CFLAGS0) $(OPT)
LFLAGS=$(ROPILINK) -rwpi
all : $(TARGET).$(MODULE)
clean :
@echo ---------------------------------------------------------------
@echo CLEAN
-del /f $(OBJS)
-del /f $(TARGET).$(EXETYPE)
-del /f $(TARGET).$(MODULE)
@echo ---------------------------------------------------------------
SRC_FILE = $(@F:.o=.c) # Input source file specification
OBJ_FILE = $(OBJ_CMD) $(@F) # Output object file specification
.SUFFIXES :
.SUFFIXES : .o .dep .c
.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SRC_FILE)
@echo ---------------------------------------------------------------
.c.mix:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) -S -fs $(CFLAGS) $(INC) $(OBJ_FILE) $<
@echo ---------------------------------------------------------------
{$(SUPPORT_DIR)}.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SUPPORT_DIR)\$(SRC_FILE)
@echo ---------------------------------------------------------------
APP_OBJS = $(OBJS)
$(TARGET).$(MODULE) : $(TARGET).$(EXETYPE)
@echo ---------------------------------------------------------------
@echo TARGET $@
$(HEXTOOL) $(TARGET).$(EXETYPE) $(BINFORMAT) $(TARGET).$(MODULE)
$(TARGET).$(EXETYPE) : $(APP_OBJS)
@echo ---------------------------------------------------------------
@echo TARGET $@
$(LD) $(LINK_CMD) $(TARGET).$(EXETYPE) $(LFLAGS) $(APP_OBJS) $(LINK_ORDER)
and here is the DOS console output
C:\Program Files\BREW SDK v2.0.1\Examples\HelloWorld>nmake /f helloworld.mak /al
l
---------------------------------------------------------------
OBJECT AEEAppGen.o
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armcc -c -
DDYNAMIC_APP -I.-IC:\Progra~1\BREWSD~1.1\imran.. -cpu ARM7TDMI -apcs/ropi/interw
ork/norwpi -littleend-zo-zas4 -fa -g -Ospace -O2 -I.-IC:\Progra~1\BREWSD~1.1\imr
an.. -o AEEAppGen.o C:\Progra~1\BREWSD~1.1\imran\AEEAppGen.c
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: X0014W: Old syntax, please use '--apcs=/ropi/interwork/norwpi'.
Warning: X0012W: Option 'f' is deprecated.
---------------------------------------------------------------
---------------------------------------------------------------
OBJECT AEEModGen.o
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armcc -c -
DDYNAMIC_APP -I.-IC:\Progra~1\BREWSD~1.1\imran.. -cpu ARM7TDMI -apcs/ropi/interw
ork/norwpi -littleend-zo-zas4 -fa -g -Ospace -O2 -I.-IC:\Progra~1\BREWSD~1.1\imr
an.. -o AEEModGen.o C:\Progra~1\BREWSD~1.1\imran\AEEModGen.c
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: X0014W: Old syntax, please use '--apcs=/ropi/interwork/norwpi'.
Warning: X0012W: Option 'f' is deprecated.
---------------------------------------------------------------
---------------------------------------------------------------
OBJECT helloworld.o
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armcc -c -
DDYNAMIC_APP -I.-IC:\Progra~1\BREWSD~1.1\imran.. -cpu ARM7TDMI -apcs/ropi/interw
ork/norwpi -littleend-zo-zas4 -fa -g -Ospace -O2 -I.-IC:\Progra~1\BREWSD~1.1\imr
an.. -o helloworld.o helloworld.c
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: X0014W: Old syntax, please use '--apcs=/ropi/interwork/norwpi'.
Warning: X0012W: Option 'f' is deprecated.
---------------------------------------------------------------
---------------------------------------------------------------
TARGET helloworld.elf
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armlink -o
helloworld.elf -ropi -rwpi AEEAppGen.o AEEModGen.o helloworld.o -first AEEMod_L
oad
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: L6305W: Image does not have an entry point. (Not specified or not set d
ue to multiple choices.)
Finished: 0 information, 1 warning and 0 error messages.
---------------------------------------------------------------
TARGET helloworld.mod
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\fromelf h
elloworld.elf -bin helloworld.mod
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: Q0115W: Deprecated command syntax will not be supported in future versi
ons. Use -output to specify the output file.
Finished: 0 information, 1 warning and 0 error messages.

Hi Rao,
yeah,very much..i can run the app on emulator.
pls find below the hwlloworld.mak file ....
m i gng wrong anywhere...?
BREW_HOME=C:\Progra~1\BREWSD~1.1
ARM_HOME=C:\Progra~1\ARM
TARGET=helloworld
OBJS=AEEAppGen.o AEEModGen.o helloworld.o
APP_INCLUDES=..
EXETYPE=elf # Target image file format
MODULE=mod # Downloadable module extension
DYNAPP=-DDYNAMIC_APP
SUPPORT_DIR=$(BREW_HOME)\imran
SUPPORT_INCDIR=$(BREW_HOME)\imran
ARMBIN=$(ARM_HOME)\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium
ARMINC = $(ARM_HOME)\RVCT\Data\2.1\345\include\windows
ARMLIB = $(ARM_HOME)\RVCT\Data\2.1\345\lib
ARMCC= $(ARMBIN)\armcc # ARM ADS ARM 32-bit inst. set ANSI C compiler
LD=$(ARMBIN)\armlink # ARM ADS linker
HEXTOOL=$(ARMBIN)\fromelf # ARM ADS utility to create hex file from image
OBJ_CMD=-o # Command line option to specify output filename
CPU=-cpu ARM7TDMI # ARM7TDMI target processor
ROPI=ropi # Read-Only(code) Position independence
INTERWRK=interwork # Allow ARM-Thumb interworking
APCS=-apcs/$(ROPI)/$(INTERWRK)/norwpi
CHK=-fa # Check for data flow anomolies
OUT=-c # Object file output only
DBG=-g # Enable debug
OPT=-Ospace -O2 # Full compiler optimization for space
END=-littleend # Compile for little endian memory architecture
ZA=-zo # LDR may only access 32-bit aligned addresses
ZAS=-zas4 # Min byte alignment for structures
CODE=$(END)$(ZA)$(ZAS)
INC=-I.-I$(SUPPORT_INCDIR)$(APP_INCLUDES)
LINK_CMD=-o
ROPILINK=-ropi #Link image as Read-Only Position Independent
LINK_ORDER=-first AEEMod_Load
BINFORMAT=-bin
CFLAGS0=$(OUT) $(DYNAPP) $(INC) $(CPU) $(APCS) $(CODE) $(CHK) $(DBG)
CFLAGS=$(CFLAGS0) $(OPT)
LFLAGS=$(ROPILINK) -rwpi
all : $(TARGET).$(MODULE)
clean :
@echo ---------------------------------------------------------------
@echo CLEAN
-del /f $(OBJS)
-del /f $(TARGET).$(EXETYPE)
-del /f $(TARGET).$(MODULE)
@echo ---------------------------------------------------------------
SRC_FILE = $(@F:.o=.c) # Input source file specification
OBJ_FILE = $(OBJ_CMD) $(@F) # Output object file specification
.SUFFIXES :
.SUFFIXES : .o .dep .c
.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SRC_FILE)
@echo ---------------------------------------------------------------
.c.mix:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) -S -fs $(CFLAGS) $(INC) $(OBJ_FILE) $<
@echo ---------------------------------------------------------------
{$(SUPPORT_DIR)}.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SUPPORT_DIR)\$(SRC_FILE)
@echo ---------------------------------------------------------------
APP_OBJS = $(OBJS)
$(TARGET).$(MODULE) : $(TARGET).$(EXETYPE)
@echo ---------------------------------------------------------------
@echo TARGET $@
$(HEXTOOL) $(TARGET).$(EXETYPE) $(BINFORMAT) $(TARGET).$(MODULE)
$(TARGET).$(EXETYPE) : $(APP_OBJS)
@echo ---------------------------------------------------------------
@echo TARGET $@
$(LD) $(LINK_CMD) $(TARGET).$(EXETYPE) $(LFLAGS) $(APP_OBJS) $(LINK_ORDER)
and here is the DOS console output
C:\Program Files\BREW SDK v2.0.1\Examples\HelloWorld>nmake /f helloworld.mak /al
l
---------------------------------------------------------------
OBJECT AEEAppGen.o
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armcc -c -
DDYNAMIC_APP -I.-IC:\Progra~1\BREWSD~1.1\imran.. -cpu ARM7TDMI -apcs/ropi/interw
ork/norwpi -littleend-zo-zas4 -fa -g -Ospace -O2 -I.-IC:\Progra~1\BREWSD~1.1\imr
an.. -o AEEAppGen.o C:\Progra~1\BREWSD~1.1\imran\AEEAppGen.c
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: X0014W: Old syntax, please use '--apcs=/ropi/interwork/norwpi'.
Warning: X0012W: Option 'f' is deprecated.
---------------------------------------------------------------
---------------------------------------------------------------
OBJECT AEEModGen.o
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armcc -c -
DDYNAMIC_APP -I.-IC:\Progra~1\BREWSD~1.1\imran.. -cpu ARM7TDMI -apcs/ropi/interw
ork/norwpi -littleend-zo-zas4 -fa -g -Ospace -O2 -I.-IC:\Progra~1\BREWSD~1.1\imr
an.. -o AEEModGen.o C:\Progra~1\BREWSD~1.1\imran\AEEModGen.c
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: X0014W: Old syntax, please use '--apcs=/ropi/interwork/norwpi'.
Warning: X0012W: Option 'f' is deprecated.
---------------------------------------------------------------
---------------------------------------------------------------
OBJECT helloworld.o
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armcc -c -
DDYNAMIC_APP -I.-IC:\Progra~1\BREWSD~1.1\imran.. -cpu ARM7TDMI -apcs/ropi/interw
ork/norwpi -littleend-zo-zas4 -fa -g -Ospace -O2 -I.-IC:\Progra~1\BREWSD~1.1\imr
an.. -o helloworld.o helloworld.c
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: X0014W: Old syntax, please use '--apcs=/ropi/interwork/norwpi'.
Warning: X0012W: Option 'f' is deprecated.
---------------------------------------------------------------
---------------------------------------------------------------
TARGET helloworld.elf
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\armlink -o
helloworld.elf -ropi -rwpi AEEAppGen.o AEEModGen.o helloworld.o -first AEEMod_L
oad
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: L6305W: Image does not have an entry point. (Not specified or not set d
ue to multiple choices.)
Finished: 0 information, 1 warning and 0 error messages.
---------------------------------------------------------------
TARGET helloworld.mod
C:\Progra~1\ARM\RVCT\Programs\2.1\350\eval2-sc\win_32-pentium\fromelf h
elloworld.elf -bin helloworld.mod
Licence found.
Your trial started at: Fri Feb 25 00:00:00 2005
Your trial will end at: Mon Apr 11 23:59:59 2005
Warning: Q0115W: Deprecated command syntax will not be supported in future versi
ons. Use -output to specify the output file.
Finished: 0 information, 1 warning and 0 error messages.

here is the mak file generated my my brew ADS. it generates a .mod file that is works fine with the device.

here is the mak file generated my my brew ADS. it generates a .mod file that is works fine with the device.

Hi rao,
thanks for this,i shall test it and get back to you.
thanks

Hi rao,
thanks for this,i shall test it and get back to you.
thanks

Hi rao,
thanks for that,its working now on handset.
what i can make out is that in my previous .mak file i had the compiler opton as ZAS=-zas4 # Min byte alignment for structures
i think this was the reason...???
thanks

Hi rao,
thanks for that,its working now on handset.
what i can make out is that in my previous .mak file i had the compiler opton as ZAS=-zas4 # Min byte alignment for structures
i think this was the reason...???
thanks

Great Congratulations.

Great Congratulations.