Makefile big-endian | developer.brewmp.com Makefile big-endian | developer.brewmp.com

Developer

Makefile big-endian

I had posted something to this effect earlier on brew1.1 but didn't get any replies. Then I realised this thread is more pertinent here ...

We are having a problem compiling for Nokia 3589i. We have edited the minimum makefile to compile for big-endian format. This makefile is able to build a mod file without any errors but the mod file power cycles the phone as soon as it is run. Even a simple drawtext program, a la "Helloworld", doesn't work. I'm thinking its maybe due to some missing flags in the makefile.

1. We are using evaluation version of ADS (1.2). Can this be an issue? Is big endian only supported by RVCT?

2. I'm attaching my minimal makefile, maybe you can debug it? Or send an alternative replacement makefile that you know works.

3. In brief, I am using

:To Compile all files using armcc (including AEEAppGen and ModGen) these flags
-DDYNAMIC_APP -DBIGENDIAN -cpu ARM7TDMI -apcs /ropi/interwrk -bigend -DFEATURE_BIG_ENDIAN -zas4 -fa -g -Ospace -O2 -fy

:To link, I am using these flags,
armlink -o app.elf -ropi -entry AEEMod_Load $(allobjs) -first AEEMod_Load

Anything wrong here?

Regards

Have you tried the ARM makefile generator (part of the Visual Studio Add-ins)? It automatically generates a makefile for your BREW project, and all you have to do is change the line
END = -littleend
to
END = -bigend
I've never run into any problems with this method.

Have you tried the ARM makefile generator (part of the Visual Studio Add-ins)? It automatically generates a makefile for your BREW project, and all you have to do is change the line
END = -littleend
to
END = -bigend
I've never run into any problems with this method.

mohlendo wrote:Have you tried the ARM makefile generator (part of the Visual Studio Add-ins)?
I tried searching the net for visual studio add-ins but didn't find the arm makefile generator. Does it come with ADS as a pluging or is it available elsewhere.
Can you give a url where I can download this thing?
Regards

mohlendo wrote:Have you tried the ARM makefile generator (part of the Visual Studio Add-ins)?
I tried searching the net for visual studio add-ins but didn't find the arm makefile generator. Does it come with ADS as a pluging or is it available elsewhere.
Can you give a url where I can download this thing?
Regards

BREW® Add-Ins 3.0 for Microsoft Visual Studio
https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/devmisc

BREW® Add-Ins 3.0 for Microsoft Visual Studio
https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/devmisc

tyndal wrote:BREW® Add-Ins 3.0 for Microsoft Visual Studio
https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/devmisc
What are the enviornment variables need to be set for this thing to work?
It rants about "Can't find the installation path for BREW Addins".
Regards

tyndal wrote:BREW® Add-Ins 3.0 for Microsoft Visual Studio
https://brewx.qualcomm.com/brew/sdk/download.jsp?page=dx/devmisc
What are the enviornment variables need to be set for this thing to work?
It rants about "Can't find the installation path for BREW Addins".
Regards

Hey, I think I have your problem sorted out.
View your system vars, and in there should be a BREWADDINS variable set to something like "C:\PROGRA~1\BREWAD~1"
On my WinXP box, this works fine. However, on my Win 2K box, it wasn't so fond of this variable (even though it is valid, I checked).
You'll have to specify the path *without* the '~', ie the full path.
So, change it to "C:\Program Files\Brew Addins" (or wherever you installed your addins).
Post back if this isn't working.

Hey, I think I have your problem sorted out.
View your system vars, and in there should be a BREWADDINS variable set to something like "C:\PROGRA~1\BREWAD~1"
On my WinXP box, this works fine. However, on my Win 2K box, it wasn't so fond of this variable (even though it is valid, I checked).
You'll have to specify the path *without* the '~', ie the full path.
So, change it to "C:\Program Files\Brew Addins" (or wherever you installed your addins).
Post back if this isn't working.

Quote:
I've never run into any problems with this method
then you can't have written a lot of apps for it
-DFEATURE_BIG_ENDIAN -fy is needed too (first for net code)

Quote:
I've never run into any problems with this method
then you can't have written a lot of apps for it
-DFEATURE_BIG_ENDIAN -fy is needed too (first for net code)