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

Developer

Forums

Forums:

In regards to the specific issues , I stumbled upon a few articles on how to compile the app using GNUARM compiler we managed to generate the MOD file and transferred to the phone but the app does not execute.
I believe that the issue would have been with the make file which we have used.
If a sample make file compiled using GNUARM is at your disposal , it would kick start our debugging process faster.

Thanks
Sriram

Sriram,
What problem you are facing in launching app on device?
If application is not visible in App manager: May be it got deleted. Connect Apploader and check if it is there.
If it got deleted, problem is with test signature. Check if you are putting test sig file and it is generated using proper ESN. Also, if handset is Brew 2.x, you need to test enable the handset. otherwise, app gets deleted after reset.
If app exists, may be problem with MIF file.
If you are able to se app icon in App manager, what behavior you are seeing on clicking it?

Sriram,
What problem you are facing in launching app on device?
If application is not visible in App manager: May be it got deleted. Connect Apploader and check if it is there.
If it got deleted, problem is with test signature. Check if you are putting test sig file and it is generated using proper ESN. Also, if handset is Brew 2.x, you need to test enable the handset. otherwise, app gets deleted after reset.
If app exists, may be problem with MIF file.
If you are able to se app icon in App manager, what behavior you are seeing on clicking it?

Object files has been generated once i run the command nmake /f helloworld.mak.
But mod has not been generating.
while iam running the namke command iam getting the error :
C:\Progra~1\GNUARM\bin\arm-elf-ld -Ttext 0 --emit-relocs -entry AEEMod_Load -o helloworld.elf -LC:\Progra~1\GNUARM\lib\gcc\arm-elf\4.2.0 AEEModGen.o AEEAppGen.o helloworld.o GCCResolver.o -lgcc
C:\PROGRA~1\BREWSD~1.1SP\VSAddins\common\bin\BREWelf2mod.exe helloworld.elf helloworld.mod
i have installed cygwin,GNUARM copiler, BREWSDKTOOLS111SP01,Brewsdk 3.1.5,BREW Elf2Mod.
Do i need to install BREWSDKTOOLS111SP06 instead of BREWSDKTOOLS111SP01?
I dont know the exact reason for failed to generate mod file.Problem in Nmake or setting the environment variables ?
i had set environment variable and values for cygwin\bin,gnuarm\bin,gnulibpath,nmake path(C:\Program Files\Microsoft Visual Studio\VC98\Bin),ELF2MODTOOL
am i missing any other these values?Please clarify me what might be the reason.

Object files has been generated once i run the command nmake /f helloworld.mak.
But mod has not been generating.
while iam running the namke command iam getting the error :
C:\Progra~1\GNUARM\bin\arm-elf-ld -Ttext 0 --emit-relocs -entry AEEMod_Load -o helloworld.elf -LC:\Progra~1\GNUARM\lib\gcc\arm-elf\4.2.0 AEEModGen.o AEEAppGen.o helloworld.o GCCResolver.o -lgcc
C:\PROGRA~1\BREWSD~1.1SP\VSAddins\common\bin\BREWelf2mod.exe helloworld.elf helloworld.mod
i have installed cygwin,GNUARM copiler, BREWSDKTOOLS111SP01,Brewsdk 3.1.5,BREW Elf2Mod.
Do i need to install BREWSDKTOOLS111SP06 instead of BREWSDKTOOLS111SP01?
I dont know the exact reason for failed to generate mod file.Problem in Nmake or setting the environment variables ?
i had set environment variable and values for cygwin\bin,gnuarm\bin,gnulibpath,nmake path(C:\Program Files\Microsoft Visual Studio\VC98\Bin),ELF2MODTOOL
am i missing any other these values?Please clarify me what might be the reason.

What the exact error? Can you please copy here?

What the exact error? Can you please copy here?

This what i am getting.....
OBJECT GCCResolver.o
C:\Progra~1\GNUARM\bin\arm-elf-gcc -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame -mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -g -IC:\PROGRA~1\BREW31~1.5\sdk\inc -IC:\Progra~1\GNUARM\lib\gcc\arm-elf\4.2.0\include -IC:\Progra~1\GNUARM\arm-elf\include -O2 -IC:\PROGRA~1\BREW31~1.5\sdk\inc -IC:\Progra~1\GNUARM\lib\gcc\arm-elf\4.2.0\include -IC:\Progra~1\GNUARM\arm-elf\include -o GCCResolver.o C:\PROGRA~1\BREWSD~1.1SP\VSAddins\common\templates\src\GCCResolver.c
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/BREW31~1.5/sdk/inc
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/BREW31~1.5/sdk/inc
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
---------------------------------------------------------------
C:\Progra~1\GNUARM\bin\arm-elf-ld -Ttext 0 --emit-relocs -entry AEEMod_Load -o helloworld.elf -LC:\Progra~1\GNUARM\lib\gcc\arm-elf\4.2.0 AEEModGen.o AEEAppGen.o helloworld.o GCCResolver.o -lgcc
C:\PROGRA~1\BREWSD~1.1SP\VSAddins\common\bin\BREWelf2mod.exe helloworld.elf helloworld.mod

This what i am getting.....
OBJECT GCCResolver.o
C:\Progra~1\GNUARM\bin\arm-elf-gcc -c -DDYNAMIC_APP -mcpu=arm7tdmi -mapcs-frame -mthumb-interwork -mlittle-endian -fshort-enums -fno-builtin -g -IC:\PROGRA~1\BREW31~1.5\sdk\inc -IC:\Progra~1\GNUARM\lib\gcc\arm-elf\4.2.0\include -IC:\Progra~1\GNUARM\arm-elf\include -O2 -IC:\PROGRA~1\BREW31~1.5\sdk\inc -IC:\Progra~1\GNUARM\lib\gcc\arm-elf\4.2.0\include -IC:\Progra~1\GNUARM\arm-elf\include -o GCCResolver.o C:\PROGRA~1\BREWSD~1.1SP\VSAddins\common\templates\src\GCCResolver.c
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/BREW31~1.5/sdk/inc
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/BREW31~1.5/sdk/inc
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
---------------------------------------------------------------
C:\Progra~1\GNUARM\bin\arm-elf-ld -Ttext 0 --emit-relocs -entry AEEMod_Load -o helloworld.elf -LC:\Progra~1\GNUARM\lib\gcc\arm-elf\4.2.0 AEEModGen.o AEEAppGen.o helloworld.o GCCResolver.o -lgcc
C:\PROGRA~1\BREWSD~1.1SP\VSAddins\common\bin\BREWelf2mod.exe helloworld.elf helloworld.mod

Did you install Brew elf2mod utility? If yes, what is the path. most probably problem is with path or you are not able to locate the mod file generated. I couldn't see any errors.
if elf file is generated & not able to generate mod:
Go to folder where your elf file is and from command line run command "C:\Program Files\BREW Elf2Mod\bin\elf2mod helloworld.elf". It should generate mod file.

Did you install Brew elf2mod utility? If yes, what is the path. most probably problem is with path or you are not able to locate the mod file generated. I couldn't see any errors.
if elf file is generated & not able to generate mod:
Go to folder where your elf file is and from command line run command "C:\Program Files\BREW Elf2Mod\bin\elf2mod helloworld.elf". It should generate mod file.

I have installed Brewelf2mod.
Path :
environment variables : uservariable :
variable name:ELF2MODTOOL
variable value : c:\progra~1\BREW Elf2Mod\bin
variable name:ELF2MODTOOLPATH
variable value : C:\Progra~1\BREW SDK Tools 1.1.1 SP02\VSAddins\common\bin
I have tried as you said, tried to run the elf2mod.exe from the directory which contains .elf file.I am getting the following error
C:\Program Files\BREW 3.1.5\sdk\examples\helloworld>"C:\Program Files\BREW Elf2Mod\bin\elf2mod.exe helloworld.elf"
'"C:\Program Files\BREW Elf2Mod\bin\elf2mod.exe helloworld.elf"' is not recognized as an internal or external command,
operable program or batch file.
Thanks,
Bharathi.Raja

I have installed Brewelf2mod.
Path :
environment variables : uservariable :
variable name:ELF2MODTOOL
variable value : c:\progra~1\BREW Elf2Mod\bin
variable name:ELF2MODTOOLPATH
variable value : C:\Progra~1\BREW SDK Tools 1.1.1 SP02\VSAddins\common\bin
I have tried as you said, tried to run the elf2mod.exe from the directory which contains .elf file.I am getting the following error
C:\Program Files\BREW 3.1.5\sdk\examples\helloworld>"C:\Program Files\BREW Elf2Mod\bin\elf2mod.exe helloworld.elf"
'"C:\Program Files\BREW Elf2Mod\bin\elf2mod.exe helloworld.elf"' is not recognized as an internal or external command,
operable program or batch file.
Thanks,
Bharathi.Raja

This is because of the path of elf2mod, it needs dos path...try with c:\progra~1\BREW Elf2Mod\bin\elf2mod helloworld.elf

This is because of the path of elf2mod, it needs dos path...try with c:\progra~1\BREW Elf2Mod\bin\elf2mod helloworld.elf

Thanks for your quick response.
I have tried that too.

Thanks for your quick response.
I have tried that too.

I am getting error :
C:\Program Files\BREW Elf2Mod\bin>elf2mod.exe helloworld.elf
elf2mod: Error: ELFFile:38: ELF2Mod_Exception : helloworld.elf : open failed

I am getting error :
C:\Program Files\BREW Elf2Mod\bin>elf2mod.exe helloworld.elf
elf2mod: Error: ELFFile:38: ELF2Mod_Exception : helloworld.elf : open failed

Unable to open helloworld.elf file. Check elf file is proper & isn't read-only.

Unable to open helloworld.elf file. Check elf file is proper & isn't read-only.

helloworld.elf which is not read only file. Its attribute is Archive.

helloworld.elf which is not read only file. Its attribute is Archive.

can you please attach the elf file?

can you please attach the elf file?

Attached the helloworld.elf file.Please refer the attached file.

Attached the helloworld.elf file.Please refer the attached file.

I was able to create the mod; may be you weren't running commands properly...attached mod & screen shot of commands I run (from both dirs its working fine).

I was able to create the mod; may be you weren't running commands properly...attached mod & screen shot of commands I run (from both dirs its working fine).

Yesterday i given the helloworld.elf as string i.e "C:\Program Files\BREW Elf2Mod\bin\elf2mod.exe helloworld.elf".
Now i have tried to run the same command like you given, I was able to generate the mod file. But i couldnt find helloworld.mod file in present directory or elf2mod directory.

Yesterday i given the helloworld.elf as string i.e "C:\Program Files\BREW Elf2Mod\bin\elf2mod.exe helloworld.elf".
Now i have tried to run the same command like you given, I was able to generate the mod file. But i couldnt find helloworld.mod file in present directory or elf2mod directory.

Thanks lot.
Actually i was looking for some other file format, but it created in the format of hard disk camera movie. So Mod file has been created.

Thanks lot.
Actually i was looking for some other file format, but it created in the format of hard disk camera movie. So Mod file has been created.

compiler : GNU
Device : LG RD6600
Download tool : Apploader.
Once loaded the .mif,.sig,.mode files and i was trying to reset the phone, but device keep on resetting itself , It cant able to come to the ON mode...It is in condition on 1 and 0.
I have removed the battery and tried to switchON but no use of it.Device could not able to recognize the USB port due to the reason of 1 and 0 condition.Modem was trying to get ON mode but immediately went to the OFF mode....
How to resolve this problem?.Plz guide me...

compiler : GNU
Device : LG RD6600
Download tool : Apploader.
Once loaded the .mif,.sig,.mode files and i was trying to reset the phone, but device keep on resetting itself , It cant able to come to the ON mode...It is in condition on 1 and 0.
I have removed the battery and tried to switchON but no use of it.Device could not able to recognize the USB port due to the reason of 1 and 0 condition.Modem was trying to get ON mode but immediately went to the OFF mode....
How to resolve this problem?.Plz guide me...

I downloaded my app to the phone, after resetting the phone from brew app loader, the device kept resetting itself .
Since it kept resetting, there is no way I can connect the app loader to the phone and remove the app. I am wondering if there is a (hard reset)/(master reset) to eliminate the application from the phone and stop the reset cycle.
I have tried to remove the SIM and trying to switch oN but No use of it....Its not stop the reset cycle.

I downloaded my app to the phone, after resetting the phone from brew app loader, the device kept resetting itself .
Since it kept resetting, there is no way I can connect the app loader to the phone and remove the app. I am wondering if there is a (hard reset)/(master reset) to eliminate the application from the phone and stop the reset cycle.
I have tried to remove the SIM and trying to switch oN but No use of it....Its not stop the reset cycle.

You can try re-flashing the phone...so that app gets erased. I think, No other way:(

You can try re-flashing the phone...so that app gets erased. I think, No other way:(

Thanks !
Re-flashing is like factory reset (burn the image).
How to re-flashing? do we need to go any LG-show rooms to re-flashing?

Thanks !
Re-flashing is like factory reset (burn the image).
How to re-flashing? do we need to go any LG-show rooms to re-flashing?

Yes, you can go to LG service centers and get it done.

Yes, you can go to LG service centers and get it done.

We went LG center they are trying to flash the binary file using cable which like data cable.But it could not able to detect because it went to the Zero and One condition (ON and OFF).This is expected condition right? if iam wrong please correct me.
Due to the reason of re flashing getting failed they are suspecting that Board problem...Is it possible?
Before re flashing the image have to diagnose/erase the content of the device right using JTAG then only we able to flash/burn the image.
Because that mif/mod file causing the problem.
if iam wrong please correct me.

We went LG center they are trying to flash the binary file using cable which like data cable.But it could not able to detect because it went to the Zero and One condition (ON and OFF).This is expected condition right? if iam wrong please correct me.
Due to the reason of re flashing getting failed they are suspecting that Board problem...Is it possible?
Before re flashing the image have to diagnose/erase the content of the device right using JTAG then only we able to flash/burn the image.
Because that mif/mod file causing the problem.
if iam wrong please correct me.

i am trying to open a html form using IHtmlviewerand want to store the image.In simulator i can able to open the html form,But i couldnot able to see any browse button in simulator.But if iam running this html form alone i can able to browse the file. Please guide me what is the problem here?
Brew version : 3.1.x
compiler : GNU
File Description:
File to upload/store in database:

i am trying to open a html form using IHtmlviewerand want to store the image.In simulator i can able to open the html form,But i couldnot able to see any browse button in simulator.But if iam running this html form alone i can able to browse the file. Please guide me what is the problem here?
Brew version : 3.1.x
compiler : GNU
File Description:
File to upload/store in database:

bharathi wrote:We went LG center they are trying to flash the binary file using cable which like data cable.But it could not able to detect because it went to the Zero and One condition (ON and OFF).This is expected condition right? if iam wrong please correct me.
Due to the reason of re flashing getting failed they are suspecting that Board problem...Is it possible?
Before re flashing the image have to diagnose/erase the content of the device right using JTAG then only we able to flash/burn the image.
Because that mif/mod file causing the problem.
if iam wrong please correct me.
i suspect there is something missing here!!
u can reflash the phone in fastboot/boot mode i guess. from where system image/userdata are flashed.
u also have the provision to change the boot image as well.
can you conform from them the same

bharathi wrote:We went LG center they are trying to flash the binary file using cable which like data cable.But it could not able to detect because it went to the Zero and One condition (ON and OFF).This is expected condition right? if iam wrong please correct me.
Due to the reason of re flashing getting failed they are suspecting that Board problem...Is it possible?
Before re flashing the image have to diagnose/erase the content of the device right using JTAG then only we able to flash/burn the image.
Because that mif/mod file causing the problem.
if iam wrong please correct me.
i suspect there is something missing here!!
u can reflash the phone in fastboot/boot mode i guess. from where system image/userdata are flashed.
u also have the provision to change the boot image as well.
can you conform from them the same

Thanks ! Ya i will conform.

Thanks ! Ya i will conform.

Atul,
I am also getting same error (i.e. the application is visible in app manager but selecting application shows time bar but nothing happens and i am again on the app manager screen).
I have also tried to load the helloworld.mod which u have uploaded but that is also showing same behaviour.
are you able to execute this helloworld.mod on handset?
Munsih

Atul,
I am also getting same error (i.e. the application is visible in app manager but selecting application shows time bar but nothing happens and i am again on the app manager screen).
I have also tried to load the helloworld.mod which u have uploaded but that is also showing same behaviour.
are you able to execute this helloworld.mod on handset?
Munsih

Probably, digital sig failure or initappdata failure. Please try to debug with Brew logger. Attach logs if possible.

Probably, digital sig failure or initappdata failure. Please try to debug with Brew logger. Attach logs if possible.