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

Developer

Forums

Helo all,

can any body help me i am getting the follwing error....

i previously successfully compiled in ADS 1.2. but when i complied the same project using the Gnude... i got the following error...

C:\gnude/bin/arm-elf-ld: cannot open AEEAppGen.o: No such file or directory

also the .o file are not generated in the path...

i changed paths in bulidme.bat and run it ... i also added multiple file in the make file.... what may be wrong plz help

Can you post your makefile? Somewhere along the line, AEEAppGen.o is not being created, so I suspect that the rule for creating AEEAppGen.o from AEEAppGen.c is missing/ cannot be inferred.

Can you post your makefile? Somewhere along the line, AEEAppGen.o is not being created, so I suspect that the rule for creating AEEAppGen.o from AEEAppGen.c is missing/ cannot be inferred.

Is that the only error you are getting?
if so, where is AEEAppGen.o being created?
-Tyndal

Is that the only error you are getting?
if so, where is AEEAppGen.o being created?
-Tyndal

Hello tyndal,
thanx for the replay i am attaching the make file u can look at it ...

Hello tyndal,
thanx for the replay i am attaching the make file u can look at it ...

Well, I'm seeing lots of "This file depends on this file" information, but no rule telling make how to build one from the other! i.e. You should have a rule telling make to use GCC with the appropriate flags in order to build each .o from the corresponding .c.
I'd post my makefile, but (although it works!) it's an absolute mess and not at all the right thing to do, I'm sure (I'd never used make before I wrote it), and I don't want to teach you bad habits! ;) I'm sure tyndal has a nice, tidy working makefile he can show to you!
Good luck,
Simon

Well, I'm seeing lots of "This file depends on this file" information, but no rule telling make how to build one from the other! i.e. You should have a rule telling make to use GCC with the appropriate flags in order to build each .o from the corresponding .c.
I'd post my makefile, but (although it works!) it's an absolute mess and not at all the right thing to do, I'm sure (I'd never used make before I wrote it), and I don't want to teach you bad habits! ;) I'm sure tyndal has a nice, tidy working makefile he can show to you!
Good luck,
Simon

hello simon,
can u plz pointout the commands that i missed out ...

hello simon,
can u plz pointout the commands that i missed out ...

Hi skuma_rao,
Here is my makefile; as I said, I have no experience with writing them, so it is definitely not the best way to do it. But it works for me!
You will probably have to change some of the path definitions to suit your directory structure.
Hope this helps,
Simon

Hi skuma_rao,
Here is my makefile; as I said, I have no experience with writing them, so it is definitely not the best way to do it. But it works for me!
You will probably have to change some of the path definitions to suit your directory structure.
Hope this helps,
Simon

i changed the ADD_OBJS parameter and added all the dependencing as before but know it is giving the errors on each class uses.....
is there any parameter in the attached make file that i have to set to make it a c++ makefile....

i changed the ADD_OBJS parameter and added all the dependencing as before but know it is giving the errors on each class uses.....
is there any parameter in the attached make file that i have to set to make it a c++ makefile....

Heh - you missed out the most critical part again :)
Something like this
$(TARGET).o: $(TARGET).cpp
$(GCC) $(CFLAGS) -o $(TARGET).o $(TARGET).cpp
AEEAppGen.o:
$(GCC) $(CFLAGS) -o AEEAppGen.o $(AEESRCPATH)/AEEAppGen.c
AEEModGen.o:
$(GCC) $(CFLAGS) -o AEEModGen.o $(AEESRCPATH)/AEEModGen.c
GCCResolver.o:
$(GCC) $(CFLAGS) -o GCCResolver.o $(GCCHOMEPATH)/GCCResolver.c
%.o : %.cpp
$(GCC) $(CFLAGS) -o $*.o $*.cpp
(near the end of my sample makefile) is required so that make knows how to create the .o file from the source. For the record, the makefile I provided already is a C++ make file.
Try again with the code above inserted and adapted for use with your project, and if there are still errors, post an error log here and I'll see what I can do - remember though, I am most definitely not an expert on make! :)
Good luck,
Simon

Heh - you missed out the most critical part again :)
Something like this
$(TARGET).o: $(TARGET).cpp
$(GCC) $(CFLAGS) -o $(TARGET).o $(TARGET).cpp
AEEAppGen.o:
$(GCC) $(CFLAGS) -o AEEAppGen.o $(AEESRCPATH)/AEEAppGen.c
AEEModGen.o:
$(GCC) $(CFLAGS) -o AEEModGen.o $(AEESRCPATH)/AEEModGen.c
GCCResolver.o:
$(GCC) $(CFLAGS) -o GCCResolver.o $(GCCHOMEPATH)/GCCResolver.c
%.o : %.cpp
$(GCC) $(CFLAGS) -o $*.o $*.cpp
(near the end of my sample makefile) is required so that make knows how to create the .o file from the source. For the record, the makefile I provided already is a C++ make file.
Try again with the code above inserted and adapted for use with your project, and if there are still errors, post an error log here and I'll see what I can do - remember though, I am most definitely not an expert on make! :)
Good luck,
Simon

sorry i attached the wrong file .....
here is the make file that i used ...

sorry i attached the wrong file .....
here is the make file that i used ...

and here is the log file

and here is the log file

here is the log file plz take a look

here is the log file plz take a look

Are the files
QwikLite.bid
QwikLite_res.h
contained in the same directory as QuickLite_.cpp? Your log suggests otherwise. Let me know how the directory structure for your source is arranged.

Are the files
QwikLite.bid
QwikLite_res.h
contained in the same directory as QuickLite_.cpp? Your log suggests otherwise. Let me know how the directory structure for your source is arranged.

|
|--Qwiklite_res.h, .bar
|
|-- all header file ( .bid file also)
|
|-- all source file

|
|--Qwiklite_res.h, .bar
|
|-- all header file ( .bid file also)
|
|-- all source file

If I read that correctly, your header files & .bid are not in the same directory as your source...?
If this is the case, you will need to add the directories containing these files to your include path (the variable INC in the make file I provided).

If I read that correctly, your header files & .bid are not in the same directory as your source...?
If this is the case, you will need to add the directories containing these files to your include path (the variable INC in the make file I provided).

i copied the .bid and _res.h file to src file but it did not worked i here attached the my recent make file and error log file

i copied the .bid and _res.h file to src file but it did not worked i here attached the my recent make file and error log file

here is the log file

here is the log file

Now it's all the other header files that are causing the problem :) Did you read the log? It states quite clearly that it cannot find several .h files, and in general the reason for this is that they are
a) Not in the same directory as the source; and
b) Not in the include path, as set in INC.
Fixing either a) or b) should solve your problem :)
Good luck!
Simon

Now it's all the other header files that are causing the problem :) Did you read the log? It states quite clearly that it cannot find several .h files, and in general the reason for this is that they are
a) Not in the same directory as the source; and
b) Not in the include path, as set in INC.
Fixing either a) or b) should solve your problem :)
Good luck!
Simon

do i have to add path seting like below for all files
EmotVideo.o:
$(GCC) $(CFLAGS) -o EmotVideo.o ./src/EmotVideo.cpp
..
..
..

do i have to add path seting like below for all files
EmotVideo.o:
$(GCC) $(CFLAGS) -o EmotVideo.o ./src/EmotVideo.cpp
..
..
..

Hmmm...I'm not sure. Hopefully, changing the lines
%.o : %.cpp
$(GCC) $(CFLAGS) -o $*.o $*.cpp
to
%.o : ./src/%.cpp
$(GCC) $(CFLAGS) -o $*.o ./src/$*.cpp
would fix it, but I really don't know enough about make to be able to answer for certain.

Hmmm...I'm not sure. Hopefully, changing the lines
%.o : %.cpp
$(GCC) $(CFLAGS) -o $*.o $*.cpp
to
%.o : ./src/%.cpp
$(GCC) $(CFLAGS) -o $*.o ./src/$*.cpp
would fix it, but I really don't know enough about make to be able to answer for certain.

now i am getting the following error...
C:\gnude/bin/arm-elf-ld: cannot find -lgcc
make: *** [C:\PROGRA~1\BREWSD~1.1\Examples\Qwiklite\src\QwikLite_.elf] Error 1

now i am getting the following error...
C:\gnude/bin/arm-elf-ld: cannot find -lgcc
make: *** [C:\PROGRA~1\BREWSD~1.1\Examples\Qwiklite\src\QwikLite_.elf] Error 1

Does the directory
c:/gnude/lib/gcc-lib/arm-elf/3.3
exist? Does it contain libgcc.a?

Does the directory
c:/gnude/lib/gcc-lib/arm-elf/3.3
exist? Does it contain libgcc.a?

no there is no C:\gnude\lib\gcc-lib\arm-elf\3.3 directory it is C:\gnude\lib\gcc-lib\arm-elf\3.3.1 so i changed the LIBDIRS in make file and it worked now i am get errors as
C:\gnude/lib/gcc-lib/arm-elf/3.3.1/libgcc.a(unwind-sjlj.o)(.text+0x140): In function `_Unwind_RaiseException_Phase2':
../../gcc-3.3.1/gcc/unwind.inc:67: undefined reference to `abort'
C:\gnude/lib/gcc-lib/arm-elf/3.3.1/libgcc.a(unwind-sjlj.o)(.text+0x3d8): In function `_Unwind_SjLj_Resume':
../../gcc-3.3.1/gcc/unwind.inc:230: undefined reference to `abort'
C:\gnude/lib/gcc-lib/arm-elf/3.3.1/libgcc.a(unwind-sjlj.o)(.text+0x444): In function `_Unwind_SjLj_Resume_or_Rethrow':
../../gcc-3.3.1/gcc/unwind.inc:256: undefined reference to `abort'

no there is no C:\gnude\lib\gcc-lib\arm-elf\3.3 directory it is C:\gnude\lib\gcc-lib\arm-elf\3.3.1 so i changed the LIBDIRS in make file and it worked now i am get errors as
C:\gnude/lib/gcc-lib/arm-elf/3.3.1/libgcc.a(unwind-sjlj.o)(.text+0x140): In function `_Unwind_RaiseException_Phase2':
../../gcc-3.3.1/gcc/unwind.inc:67: undefined reference to `abort'
C:\gnude/lib/gcc-lib/arm-elf/3.3.1/libgcc.a(unwind-sjlj.o)(.text+0x3d8): In function `_Unwind_SjLj_Resume':
../../gcc-3.3.1/gcc/unwind.inc:230: undefined reference to `abort'
C:\gnude/lib/gcc-lib/arm-elf/3.3.1/libgcc.a(unwind-sjlj.o)(.text+0x444): In function `_Unwind_SjLj_Resume_or_Rethrow':
../../gcc-3.3.1/gcc/unwind.inc:256: undefined reference to `abort'

Good! We're getting closer and closer :)
You are missing the -fno-exceptions flag from your CFLAGS, for some reason; add this, and report back :)

Good! We're getting closer and closer :)
You are missing the -fno-exceptions flag from your CFLAGS, for some reason; add this, and report back :)

Now i am getting the following error that i have not faced the problem...
C:\PROGRA~1\BREWSD~1.1\Examples\Qwiklite\src\QwikLite_.o(.text+0x1b0): In function `AEEClsCreateInstance':
: multiple definition of `AEEClsCreateInstance'
QwikLite_.o(.text+0x1b0): first defined here
make: *** [C:\PROGRA~1\BREWSD~1.1\Examples\Qwiklite\src\QwikLite_.elf] Error 1

Now i am getting the following error that i have not faced the problem...
C:\PROGRA~1\BREWSD~1.1\Examples\Qwiklite\src\QwikLite_.o(.text+0x1b0): In function `AEEClsCreateInstance':
: multiple definition of `AEEClsCreateInstance'
QwikLite_.o(.text+0x1b0): first defined here
make: *** [C:\PROGRA~1\BREWSD~1.1\Examples\Qwiklite\src\QwikLite_.elf] Error 1

I don't have the most recent copy of your make file (you seem to have edited it out of your posts) but I'm betting you have two copies of QwikLite_.o in your list of ADDOBJs, or it's being linked twice or something.

I don't have the most recent copy of your make file (you seem to have edited it out of your posts) but I'm betting you have two copies of QwikLite_.o in your list of ADDOBJs, or it's being linked twice or something.

here is my recent make file...

here is my recent make file...

here is my recent mke file

here is my recent mke file

Can I see the sources of
QuickLite_.cpp
QuickLite.cpp
(or .c, whichever they are...)

Can I see the sources of
QuickLite_.cpp
QuickLite.cpp
(or .c, whichever they are...)

here is the part of the .cpp file

here is the part of the .cpp file

And QuickLite.cpp, please.

And QuickLite.cpp, please.

there is no QuickLite.cpp file it is Qwiklite.cpp

there is no QuickLite.cpp file it is Qwiklite.cpp

Can I see the QwickLite.cpp file, then, please?

Can I see the QwickLite.cpp file, then, please?

here is the partial code

here is the partial code

That appears to be QwickLite_.cpp again. Here is what I'm getting at: the list of .o files in your makefile include QwickLite.o and QwickLite_.o, implying the existence of the two files QwickLite.cpp and QwickLite_.cpp. I'm guessing that both of these files contain a definition of AEEClsCreateInstance, which is what is causing the error. If one of these two .cpp files does not in fact exist, you need to amend your makefile to reflect this.
Hope this helps,
Simon

That appears to be QwickLite_.cpp again. Here is what I'm getting at: the list of .o files in your makefile include QwickLite.o and QwickLite_.o, implying the existence of the two files QwickLite.cpp and QwickLite_.cpp. I'm guessing that both of these files contain a definition of AEEClsCreateInstance, which is what is causing the error. If one of these two .cpp files does not in fact exist, you need to amend your makefile to reflect this.
Hope this helps,
Simon

QwikLite_.cpp file is the only file i use in this project ...... i donot have the Qwiklite.cpp file can u plz point out the wrong file listing in the make file ....

QwikLite_.cpp file is the only file i use in this project ...... i donot have the Qwiklite.cpp file can u plz point out the wrong file listing in the make file ....

Interesting. Well, one problem is caused by including $(target).o in the APP_OBJS line, so removing this should improve matters, but I do not know if it will fix your problem. Out of interest, does the file QwickLite.o (with no "_") exist anywhere?
Anyway, let me know how it goes!

Interesting. Well, one problem is caused by including $(target).o in the APP_OBJS line, so removing this should improve matters, but I do not know if it will fix your problem. Out of interest, does the file QwickLite.o (with no "_") exist anywhere?
Anyway, let me know how it goes!

thanx man it worked .... i am very greatfull to your prompt helps .... removing the (TARGET).o worked.....
i will test the mod file on real phone tomarrow morning ....
if u have any suggestion plz give me in this regrad....
i am very thank full .... in my opinion the guys like u increase the popularity of the GNU softwares...
thanx again... with regrads
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))

thanx man it worked .... i am very greatfull to your prompt helps .... removing the (TARGET).o worked.....
i will test the mod file on real phone tomarrow morning ....
if u have any suggestion plz give me in this regrad....
i am very thank full .... in my opinion the guys like u increase the popularity of the GNU softwares...
thanx again... with regrads
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))

You are very welcome :)
Glad it works now; have fun playing with it on the phone!
All the best,
Simon

You are very welcome :)
Glad it works now; have fun playing with it on the phone!
All the best,
Simon

Hello Friend,
I am very happy to post the make file and .bat file for the MediaPlayer Example that i created with the kind help of MR Simon...
i wellcome suggestion to improve the make file contents.....
with regrads,
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))
NOTE : Due to the restriction of one file attachment i appended the .bat file in side the MediaPlayer.mak.txt file read the header of the file to make both files...

Hello Friend,
I am very happy to post the make file and .bat file for the MediaPlayer Example that i created with the kind help of MR Simon...
i wellcome suggestion to improve the make file contents.....
with regrads,
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))
NOTE : Due to the restriction of one file attachment i appended the .bat file in side the MediaPlayer.mak.txt file read the header of the file to make both files...

Hello simon,
i downloaded the .mod file generated by the Gnude to the phone but it didnot worked is my program has some bugs ( as it works for the ADS 1.2).
i here attach the ADS 1.2 make file plz take a look at the same and Gnude make file.
hope u can help me...
with regrads
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))

Hello simon,
i downloaded the .mod file generated by the Gnude to the phone but it didnot worked is my program has some bugs ( as it works for the ADS 1.2).
i here attach the ADS 1.2 make file plz take a look at the same and Gnude make file.
hope u can help me...
with regrads
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%73%6b%75%6d%61%72%5f%72%61%6f%40%68%6f%74%6d%61%69%6c%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))

Ouch - I really wouldn't know where to begin with this. If the .mod is compiling fine, then it's highly unlikely (though possible, I guess) that the problem is with the make file; rather, your source is very probably at fault. The only thing I can recommend is that you insert some DBGPRINTF statements into your code to try to narrow down exactly where and why it crashes.
Here are a few areas whose treatment differs between compilers; maybe you are falling foul of one of them.
1) array[marco()] = polo();
Some compilers will call marco() before polo(); others will do the other way round.
2) blah = myfunction(marco(), polo())
Again, the order in which marco() and polo() are evaluated differs from compiler to compiler (I believe the ANSI standard states that this kind of thing is undefined.)
3) blah = myfunction(i++,i++)
Very similar to 2); it is undefined which of the several possible arguments myfunction() will be given.
That's all I can think of for now; have you got the correct resources installed on your phone? Did the phone actually crash, or just behave incorrectly?

Ouch - I really wouldn't know where to begin with this. If the .mod is compiling fine, then it's highly unlikely (though possible, I guess) that the problem is with the make file; rather, your source is very probably at fault. The only thing I can recommend is that you insert some DBGPRINTF statements into your code to try to narrow down exactly where and why it crashes.
Here are a few areas whose treatment differs between compilers; maybe you are falling foul of one of them.
1) array[marco()] = polo();
Some compilers will call marco() before polo(); others will do the other way round.
2) blah = myfunction(marco(), polo())
Again, the order in which marco() and polo() are evaluated differs from compiler to compiler (I believe the ANSI standard states that this kind of thing is undefined.)
3) blah = myfunction(i++,i++)
Very similar to 2); it is undefined which of the several possible arguments myfunction() will be given.
That's all I can think of for now; have you got the correct resources installed on your phone? Did the phone actually crash, or just behave incorrectly?

Thanx for replay once again.....
Before programming i have taken good care of all that point u mentioned...
I think the problem is with the make file ......
I have some douts about the Gnude hope u can help me....
1. Is the mod file made with "TARG = -mthumb" will work for the ARM phones i am loading mod file to LG vx6000 which is a ARM7 phone. how to change the TARG option...
2. what does the "OPT" option is for, as i tries with -01,-02,-03 and with each option it gives different warnings.
3. where can i find the help for Gnude compiler options...

Thanx for replay once again.....
Before programming i have taken good care of all that point u mentioned...
I think the problem is with the make file ......
I have some douts about the Gnude hope u can help me....
1. Is the mod file made with "TARG = -mthumb" will work for the ARM phones i am loading mod file to LG vx6000 which is a ARM7 phone. how to change the TARG option...
2. what does the "OPT" option is for, as i tries with -01,-02,-03 and with each option it gives different warnings.
3. where can i find the help for Gnude compiler options...

Hmmm...I'm not sure how to help. This subforum has several threads on the best compiler flags to use with gcc; I suggest you look at those.
Did you try it with the flags from my makefile? Those work perfectly for me...
"OPT" stands for optimisation, and usually ranges from 1 to 3; you should probably see if it works with no optimisations (can't remember the flag offhand; sorry) as some optimisations reduce the stability of the application.
You didn't answer whether the handset crashed or not. Does it appear to run at all, or will it crash immediately? If it runs at all, use DBGPRINTF to find out where. I need a better description of what exactly is going wrong.

Hmmm...I'm not sure how to help. This subforum has several threads on the best compiler flags to use with gcc; I suggest you look at those.
Did you try it with the flags from my makefile? Those work perfectly for me...
"OPT" stands for optimisation, and usually ranges from 1 to 3; you should probably see if it works with no optimisations (can't remember the flag offhand; sorry) as some optimisations reduce the stability of the application.
You didn't answer whether the handset crashed or not. Does it appear to run at all, or will it crash immediately? If it runs at all, use DBGPRINTF to find out where. I need a better description of what exactly is going wrong.

with ur options application is up and running shows the startup screen, menu and file selection and about option etc but when it goes to the main code it hangs the phone and after one min phone restarts due to watchdog....
i think some think about program logic i am debuging the code....
but then how cm it is working with ADS 1.2...

with ur options application is up and running shows the startup screen, menu and file selection and about option etc but when it goes to the main code it hangs the phone and after one min phone restarts due to watchdog....
i think some think about program logic i am debuging the code....
but then how cm it is working with ADS 1.2...

The fact that a lot of the stuff runs suggests strongly that it has compiled fine and is crashing only due to the way your code is being compiled. Do the DBGPRINTF thing; find out how far along the program is getting. Stick with my original compiler flag settings.
The Watchdog often means that you are stuck in a loop somewhere, so as you gradually narrow the problem down you should start to surround any for/ while loops with a pair of DBGPRINTF statements to make sure the loop is entered then exited cleanly.

The fact that a lot of the stuff runs suggests strongly that it has compiled fine and is crashing only due to the way your code is being compiled. Do the DBGPRINTF thing; find out how far along the program is getting. Stick with my original compiler flag settings.
The Watchdog often means that you are stuck in a loop somewhere, so as you gradually narrow the problem down you should start to surround any for/ while loops with a pair of DBGPRINTF statements to make sure the loop is entered then exited cleanly.

And ensure that your compiler is not doing weird things: i remember having static data created by the compiler because i was using enums.. So always double check your map file!
/kUfa

And ensure that your compiler is not doing weird things: i remember having static data created by the compiler because i was using enums.. So always double check your map file!
/kUfa