CW6.3 for HCS08. Linker error in new project.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW6.3 for HCS08. Linker error in new project.

Jump to solution
1,351 Views
Lundin
Senior Contributor IV

I'm having several CW6.3 HCS08 (DZ16) projects working fine. Today I tried to create yet another one in the same manner as before, but I can't link it:

 

"L1107: Object _startupData not found"

 

I always remove the CW default startup08.c to replace it with my own, so that's no surprise it can't be found. But something in my new project still refers to that file. I can't find what it is however. "Find in all open projects" reveals nothing. Compiler options are identical to all projects:

 

-Ansi -Cs08 -D__ONLY_INIT_SP -Ldf=predef.h -Ms -WmsgSd2705 -WmsgSd4301

 

And the .prm file is also identical. Relevant parts of the .prm look like this:

 

 

PLACEMENT

    _DATA_ZEROPAGE,                              /* zero page variables */
    ZEROPAGE_RAM             INTO Z_RAM;


    GLOBAL_RAM,                                  /* company standard segment for statically allocated variables */
    DEFAULT_RAM                                  /* non-zero page variables */
                             INTO RAM;
    .stack                   INTO STACK_RAM;

    CODE_ROM,                                    /* company standard segment for general code */
    .init,                                       /* CW out-of-reset function */
    INTERRUPT_ROM,                               /* company standard segment for interrupt service routines */
    GLOBAL_ROM,                                  /* company standard segment for global constants */
    ROM_VAR,                                     /* constant variables */
    STRINGS,                                     /* string literals */
    DEFAULT_ROM,
    COPY                                         /* copy down information: how to initialize variables */
                             INTO ROM;
   
    
    
                            
     VECTORS                  INTO VECTOR_TABLE;  /* company standard for interrupt vector table */
                            

 END


STACKSIZE 0x280


ENTRIES

  vector_table

END

INIT interrupt_reset;

 

 

Where interrupt_reset is my reset ISR which sets the stack etc etc. This .prm works fine in several projects, but not in this new one.

 

I suspect this is related to previous projects being created in CW6.0. Are there any invisible references to startup08.c in CW6.3? And if so, how do I get rid of them?

Labels (1)
Tags (1)
0 Kudos
1 Solution
587 Views
J2MEJediMaster
Specialist I

You might want to file a Service Request on that. It sounds like the IDE's behavior has changed, and if it tripped you up, it's bound to bring grief to others as well.

 

---Tom

View solution in original post

0 Kudos
2 Replies
586 Views
Lundin
Senior Contributor IV

I created yet another new project and now it works.

 

I suspect this was the culprit: when creating a new project, I added files etc to it through the new project wizard, then I likely pressed enter. And then the wizard abruptly aborts without picking "minimum startup code". I suppose if you forget to click that, the IDE adds a silent tight coupling to startup08.c, whether the file exists in the project or not.

 

 

0 Kudos
588 Views
J2MEJediMaster
Specialist I

You might want to file a Service Request on that. It sounds like the IDE's behavior has changed, and if it tripped you up, it's bound to bring grief to others as well.

 

---Tom

0 Kudos