Rvds 3.1 | developer.brewmp.com Rvds 3.1 | developer.brewmp.com

Developer

Rvds 3.1

Forums:

Hi All,

I am new to this forum and also i am using RVDS 3.1 for the very first time.

I need to make .mod file to run it on the device.
I am using BREW 3.1.5.

I dont know how to make . mod file using RVDS 3.1.
Please help me out.

Thanks,
Ashish

In order to create make file and mod file using RVCT3.0, follow the below mentioned steps.
- Add ARMHOME environment variable as (under User variables section)
ARMHOME C:\apps\rvds30\RVCT\Programs\3.0\586
- Press the Make button.
(Make file will be created)
- In the make file set the OBJS value to
OBJS =AEEAPP~1.o AEEMED~1.o AEEMOD~1.o myapp.o
(application file.o)
- Change the path of ARMBIN form $(ARM_HOME)\bin to
ARMBIN = C:\apps\rvds30\RVCT\Programs\3.0\586\win_32-pentium
- And change the Additional compile time error checking option flag to
CHK = -O0
- If some one is using ARM ADS include file directory and library directory then change ARMINC and ARMLIB paths also to
ARMINC = C:\apps\rvds30\RVCT\Data\3.0\586\include\windows
ARMLIB = C:\apps\rvds30\RVCT\Data\3.0\586\lib
- Then select (Tools->Bew Application 'Make') from Visual Studio.
I think the same will work for RVCT3.1.
Thanks & Regards
Sridhar A.

In order to create make file and mod file using RVCT3.0, follow the below mentioned steps.
- Add ARMHOME environment variable as (under User variables section)
ARMHOME C:\apps\rvds30\RVCT\Programs\3.0\586
- Press the Make button.
(Make file will be created)
- In the make file set the OBJS value to
OBJS =AEEAPP~1.o AEEMED~1.o AEEMOD~1.o myapp.o
(application file.o)
- Change the path of ARMBIN form $(ARM_HOME)\bin to
ARMBIN = C:\apps\rvds30\RVCT\Programs\3.0\586\win_32-pentium
- And change the Additional compile time error checking option flag to
CHK = -O0
- If some one is using ARM ADS include file directory and library directory then change ARMINC and ARMLIB paths also to
ARMINC = C:\apps\rvds30\RVCT\Data\3.0\586\include\windows
ARMLIB = C:\apps\rvds30\RVCT\Data\3.0\586\lib
- Then select (Tools->Bew Application 'Make') from Visual Studio.
I think the same will work for RVCT3.1.
Thanks & Regards
Sridhar A.

Thanks Sridhar for quick response.
But my problem is not solved. Can you please provide me any sample batch file.
Actually i am facing proble with --ropi option.

Thanks Sridhar for quick response.
But my problem is not solved. Can you please provide me any sample batch file.
Actually i am facing proble with --ropi option.

sirdhar can u post the problem u r facing..

sirdhar can u post the problem u r facing..

I am using the following command.....
ARMLINK -o gypsii.elf --ropi -- AEEAppGen.o AEEModGen.o abc.o xyz.o --first AEEMod_Load --map --list out.map
fromelf gypsii.elf --bin --output gypsii.mod

I am using the following command.....
ARMLINK -o gypsii.elf --ropi -- AEEAppGen.o AEEModGen.o abc.o xyz.o --first AEEMod_Load --map --list out.map
fromelf gypsii.elf --bin --output gypsii.mod

I think you need to remove '--' after ropi. It should work.
change it to something like
ARMLINK -o gypsii.elf --ropi AEEAppGen.o AEEModGen.o abc.o xyz.o --first AEEMod_Load
Do paste the full error message, 'on debug window', here, if you are still facing the issue.
Also i will advise you to search the forum for RVCT or RVCT 3.0 for more on this.
thanks,
Shivendra

I think you need to remove '--' after ropi. It should work.
change it to something like
ARMLINK -o gypsii.elf --ropi AEEAppGen.o AEEModGen.o abc.o xyz.o --first AEEMod_Load
Do paste the full error message, 'on debug window', here, if you are still facing the issue.
Also i will advise you to search the forum for RVCT or RVCT 3.0 for more on this.
thanks,
Shivendra

Thanks Shivendra for ur support....
Following is the error i m getting... :-(
C:\GyPSii\bin\MOTOV3C>ARMLINK -o gyp.elf --ropi AEEAppGen.o AEEModGen.o Common.o CtlManager.o UIManager.o ResMgr.o ServerConn.o Widget.o HeaderWdg.o LayoutWdg.o SoftKeysWdg.o PopUpWdg.o GFL.o Camer
a.o Me.o PassiveMenuWdg.o ActiveMenuWdg.o ProgressBar.o MessageWdg.o Softkeyboard.o CommonTasks.o MediaPlayer.o SoundRecorder.o InputWdg.o NotifierWdg.o TextWdg.o ImageWdg.o ListWdg.o ScrollBar.o InputBox.o LightXmlParser.o login.o WebPageViewer.o base64.o --first AEEMod_Load --map --list out.map
Error: L6414E: --ropi used without --rwpi or --rw-base.
Not enough information to list the image map.
Finished: 1 information, 0 warning and 1 error messages.

Thanks Shivendra for ur support....
Following is the error i m getting... :-(
C:\GyPSii\bin\MOTOV3C>ARMLINK -o gyp.elf --ropi AEEAppGen.o AEEModGen.o Common.o CtlManager.o UIManager.o ResMgr.o ServerConn.o Widget.o HeaderWdg.o LayoutWdg.o SoftKeysWdg.o PopUpWdg.o GFL.o Camer
a.o Me.o PassiveMenuWdg.o ActiveMenuWdg.o ProgressBar.o MessageWdg.o Softkeyboard.o CommonTasks.o MediaPlayer.o SoundRecorder.o InputWdg.o NotifierWdg.o TextWdg.o ImageWdg.o ListWdg.o ScrollBar.o InputBox.o LightXmlParser.o login.o WebPageViewer.o base64.o --first AEEMod_Load --map --list out.map
Error: L6414E: --ropi used without --rwpi or --rw-base.
Not enough information to list the image map.
Finished: 1 information, 0 warning and 1 error messages.

try removing '--map --list out.map' for a while..
thanks,
Shivendra

try removing '--map --list out.map' for a while..
thanks,
Shivendra

Hi,
Now i am getting the following error.....
Error: L6414E: --ropi used without --rwpi or --rw-base.
Finished: 0 information, 0 warning and 1 error messages.

Hi,
Now i am getting the following error.....
Error: L6414E: --ropi used without --rwpi or --rw-base.
Finished: 0 information, 0 warning and 1 error messages.

you may add following LFLAGS-
LFLAGS = --ropi --rwpi --entry AEEMod_Load
plz find attached a sample 'mak' file, modify it as per your RVCT installation & App.
thanks,
Shivendra

you may add following LFLAGS-
LFLAGS = --ropi --rwpi --entry AEEMod_Load
plz find attached a sample 'mak' file, modify it as per your RVCT installation & App.
thanks,
Shivendra

use elf2mod instead of fromelf
get elf2mod from qualcomm site and use
LFLAGS = --split --reloc --entry AEEMod_Load
elf2mod $(TARGET).elf

use elf2mod instead of fromelf
get elf2mod from qualcomm site and use
LFLAGS = --split --reloc --entry AEEMod_Load
elf2mod $(TARGET).elf

it producing no .mod, instead a directory with ER_RO

it producing no .mod, instead a directory with ER_RO

hi,
I did not find elftomod.exe...... is this comes with RVDS3.1.

hi,
I did not find elftomod.exe...... is this comes with RVDS3.1.

Hi Pradip,
thanks for your support...
I ahve used elf2mod and got the following error :-
elf2mod: Error: RelocMod:265: ELF2Mod_Exception : RW segment relocion at offset 38604 overshoots segment size 16

Hi Pradip,
thanks for your support...
I ahve used elf2mod and got the following error :-
elf2mod: Error: RelocMod:265: ELF2Mod_Exception : RW segment relocion at offset 38604 overshoots segment size 16

If you search the forum for the errors e.g. 'RW segment relocion', you may get a resolution before hand..
for instance you may try..
http://brewforums.qualcomm.com/showthread.php?t=17473&highlight=segment+...
thanks,
Shivendra

If you search the forum for the errors e.g. 'RW segment relocion', you may get a resolution before hand..
for instance you may try..
http://brewforums.qualcomm.com/showthread.php?t=17473&highlight=segment+...
thanks,
Shivendra

Hi,
following is the make.batch file i am using.....
please have a look and suggest me what should i do in order to make mod file.
SET ARMBIN = C:\PROGRA~1\ARM\Setup2\RVCT\Programs\3.1\569\WIN_32~1 # ARM ADS application directory
SET ARMCPP = $(ARMBIN)\tcpp # ARM ADS ARM 32-bit inst. set
ANSI C++ compiler
SET ARMCC = $(ARMBIN)\armcc # ARM ADS ARM 32-bit inst. set ANSI C compiler
SET ARMLINK = $(ARMBIN)\armlink
ARMCC -c -DDYNAMIC_APP -I. -I"C:\BREW31~1.5\sdk\inc" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -g -Ospace
-O2 -c -o bin/MOTOV3C/AEEAppGen.o C:\BREW31~1.5\sdk\src\AEEAppGen.c
ARMCC -c -DDYNAMIC_APP -I. -I"C:\BREW31~1.5\sdk\inc" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -g -Ospace
-O2 -c -o bin/MOTOV3C/AEEModGen.o C:\BREW31~1.5\sdk\src\AEEModGen.c
ARMCPP -c -g -O3 -D_RVCT -DDYNAMIC_APP -I"C:\proj\src\util" -I"C:\proj\device" -I"C:\BREW31~1.5\sdk\inc"
-I"C:\proj\src\model" -I"C:\proj\src\controller" -I"C:\proj\src\view" -I"C:\proj\src\view\widgets"
-I"C:\proj\src\view\components" -I"C:\proj\src\util" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -o
bin/MOTOV3C/UIManager.o .\src\view\UIManager.cpp
ARMCPP -c -g -O3 -D_RVCT -DDYNAMIC_APP -I"C:\proj\src\util" -I"C:\proj\device" -I"C:\BREW31~1.5\sdk\inc"
-I"C:\proj\src\model" -I"C:\proj\src\controller" -I"C:\proj\src\view" -I"C:\proj\src\view\widgets"
-I"C:\proj\src\view\components" -I"C:\proj\src\util" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -o
bin/MOTOV3C/Common.o .\src\util\Common.cpp
ARMCPP -c -g -O3 -D_RVCT -DDYNAMIC_APP -I"C:\proj\src\util" -I"C:\proj\device" -I"C:\BREW31~1.5\sdk\inc"
-I"C:\proj\src\model" -I"C:\proj\src\controller" -I"C:\proj\src\view" -I"C:\proj\src\view\widgets"
-I"C:\proj\src\view\components" -I"C:\proj\src\util" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -o
bin/MOTOV3C/CtlManager.o .\src\controller\CtlManager.cpp
ARMCPP -c -g -O3 -D_RVCT -DDYNAMIC_APP -I"C:\proj\src\util" -I"C:\proj\device" -I"C:\BREW31~1.5\sdk\inc"
-I"C:\proj\src\model" -I"C:\proj\src\controller" -I"C:\proj\src\view" -I"C:\proj\src\view\widgets"
-I"C:\proj\src\view\components" -I"C:\proj\src\util" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -o
bin/MOTOV3C/ResMgr.o .\src\model\ResMgr.cpp
ARMCPP -c -g -O3 -D_RVCT -DDYNAMIC_APP -I"C:\proj\src\util" -I"C:\proj\device" -I"C:\BREW31~1.5\sdk\inc"
-I"C:\proj\src\model" -I"C:\proj\src\controller" -I"C:\proj\src\view" -I"C:\proj\src\view\widgets"
-I"C:\proj\src\view\components" -I"C:\proj\src\util" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -o
bin/MOTOV3C/ServerConn.o .\src\model\ServerConn.cpp
ARMLINK -o proj.elf --ro-base 0 AEEAppGen.o AEEModGen.o Common.o CtlManager.o UIManager.o ResMgr.o ServerConn.o --split
--reloc --entry AEEMod_Load
fromelf gypsii.elf --bin --output gypsii.mod

Hi,
following is the make.batch file i am using.....
please have a look and suggest me what should i do in order to make mod file.
SET ARMBIN = C:\PROGRA~1\ARM\Setup2\RVCT\Programs\3.1\569\WIN_32~1 # ARM ADS application directory
SET ARMCPP = $(ARMBIN)\tcpp # ARM ADS ARM 32-bit inst. set
ANSI C++ compiler
SET ARMCC = $(ARMBIN)\armcc # ARM ADS ARM 32-bit inst. set ANSI C compiler
SET ARMLINK = $(ARMBIN)\armlink
ARMCC -c -DDYNAMIC_APP -I. -I"C:\BREW31~1.5\sdk\inc" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -g -Ospace
-O2 -c -o bin/MOTOV3C/AEEAppGen.o C:\BREW31~1.5\sdk\src\AEEAppGen.c
ARMCC -c -DDYNAMIC_APP -I. -I"C:\BREW31~1.5\sdk\inc" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -g -Ospace
-O2 -c -o bin/MOTOV3C/AEEModGen.o C:\BREW31~1.5\sdk\src\AEEModGen.c
ARMCPP -c -g -O3 -D_RVCT -DDYNAMIC_APP -I"C:\proj\src\util" -I"C:\proj\device" -I"C:\BREW31~1.5\sdk\inc"
-I"C:\proj\src\model" -I"C:\proj\src\controller" -I"C:\proj\src\view" -I"C:\proj\src\view\widgets"
-I"C:\proj\src\view\components" -I"C:\proj\src\util" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -o
bin/MOTOV3C/UIManager.o .\src\view\UIManager.cpp
ARMCPP -c -g -O3 -D_RVCT -DDYNAMIC_APP -I"C:\proj\src\util" -I"C:\proj\device" -I"C:\BREW31~1.5\sdk\inc"
-I"C:\proj\src\model" -I"C:\proj\src\controller" -I"C:\proj\src\view" -I"C:\proj\src\view\widgets"
-I"C:\proj\src\view\components" -I"C:\proj\src\util" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -o
bin/MOTOV3C/Common.o .\src\util\Common.cpp
ARMCPP -c -g -O3 -D_RVCT -DDYNAMIC_APP -I"C:\proj\src\util" -I"C:\proj\device" -I"C:\BREW31~1.5\sdk\inc"
-I"C:\proj\src\model" -I"C:\proj\src\controller" -I"C:\proj\src\view" -I"C:\proj\src\view\widgets"
-I"C:\proj\src\view\components" -I"C:\proj\src\util" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -o
bin/MOTOV3C/CtlManager.o .\src\controller\CtlManager.cpp
ARMCPP -c -g -O3 -D_RVCT -DDYNAMIC_APP -I"C:\proj\src\util" -I"C:\proj\device" -I"C:\BREW31~1.5\sdk\inc"
-I"C:\proj\src\model" -I"C:\proj\src\controller" -I"C:\proj\src\view" -I"C:\proj\src\view\widgets"
-I"C:\proj\src\view\components" -I"C:\proj\src\util" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -o
bin/MOTOV3C/ResMgr.o .\src\model\ResMgr.cpp
ARMCPP -c -g -O3 -D_RVCT -DDYNAMIC_APP -I"C:\proj\src\util" -I"C:\proj\device" -I"C:\BREW31~1.5\sdk\inc"
-I"C:\proj\src\model" -I"C:\proj\src\controller" -I"C:\proj\src\view" -I"C:\proj\src\view\widgets"
-I"C:\proj\src\view\components" -I"C:\proj\src\util" --apcs=/ropi/interwork/norwpi --cpu ARM7TDMI --littleend -o
bin/MOTOV3C/ServerConn.o .\src\model\ServerConn.cpp
ARMLINK -o proj.elf --ro-base 0 AEEAppGen.o AEEModGen.o Common.o CtlManager.o UIManager.o ResMgr.o ServerConn.o --split
--reloc --entry AEEMod_Load
fromelf gypsii.elf --bin --output gypsii.mod

plz help me.... :confused:

plz help me.... :confused:

plz help me.... :confused:

plz help me.... :confused:

r u using global & static in your code?
thanks,
Shivendra

r u using global & static in your code?
thanks,
Shivendra

yes i am using global and static variable at some places.

yes i am using global and static variable at some places.

try link commands as
1. ARMLINK --ro-base 0 --rw-base 0
if the above gives some error use
ARMLINK --rw-base 0
thanks,
Shivendra

try link commands as
1. ARMLINK --ro-base 0 --rw-base 0
if the above gives some error use
ARMLINK --rw-base 0
thanks,
Shivendra