Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/27/07 00:11
Read: times


 
#133763 - SDCC Compiler questions
I've been searching around for a while hoping someone else has the problem I'm having. Either I'm not searching for the right thing, or its all just me (which is entirely possible). I'm just getting back into the 8051 arena using the T89C51CC02 from Atmel. I have a working circuit that I'm very confident of. I'm changing over to the SDCC compiler with the Codeblocks IDE on Windows XP. I have a series of files that I've tested out individually and all work just fine.

To keep things simple I just have a simple forever loop in main right now:

void main(void)
{
unsigned int x;

P3_4 = 0xff;

for(;;)
{
P3_4 = !P3_4;
for(x=0;x<=0xfff;x++){}
for(x=0;x<=0xfff;x++){}

}
}

This works fine with my scope and I can see the output toggling just like it should. When I start adding C files to the project and compiling, after about the 3rd file (it depends on the file, but the compiled size is about 2.5K to 3K of code), I lose all sign of life. It doesn't matter which file it is, once I seem to hit that limit, it stops working. I don't do ANYTHING to the main loop. I just add the file and compile.

I have separate files for CAN, Serial, Digital IO and a command parser, but just about all of them are just stubs right now. I'm compiling and linking with --large on all the files (at least that's what its showing).

I'm not even sure where to start looking for the problem.

Thanks for any tips, suggestions, pointers or "you big dummy's" :-).

Scott

List of 21 messages in thread
TopicAuthorDate
SDCC Compiler questions            01/01/70 00:00      
   Need more details            01/01/70 00:00      
      SDCC C Complie Procedure            01/01/70 00:00      
   lose all sign of life?            01/01/70 00:00      
   code size limited SDCC?            01/01/70 00:00      
      answer to where to get            01/01/70 00:00      
   packihx, srec_cat            01/01/70 00:00      
      Following up....            01/01/70 00:00      
         short/long options            01/01/70 00:00      
            re: short/long options            01/01/70 00:00      
               I do not recall who it was ...            01/01/70 00:00      
               No which or why            01/01/70 00:00      
                  re: No which or why            01/01/70 00:00      
                     if it's not the watchdog            01/01/70 00:00      
                        Partial solution            01/01/70 00:00      
                           just a few more rough ideas            01/01/70 00:00      
                              interrupts            01/01/70 00:00      
                              re: Interrupts            01/01/70 00:00      
                                 function main()            01/01/70 00:00      
                                    Juergen            01/01/70 00:00      
                                 ... and the test ride?            01/01/70 00:00      

Back to Subject List