AnsweredAssumed Answered

CW 10.4 compiler/linker bug when copying project

Question asked by Aaron Lager on Jul 29, 2013
Latest reply on Aug 16, 2013 by Aaron Lager

I have a coldfire V2 project that compiles and runs fine.

I then followed the "How to copy a CW 10 project" http://mcuoneclipse.com/2012/10/21/copy-my-codewarrior-project/

but the new project, in the same workspace, compiles or links incorrectly, creating a run time exception.

See the image, on the left the code should call tickDriverInit() at address 0x1000040e, but the disasembly shows the jsr to some other "random" address, which causes a run time exception.

cw10.4_compiler_bug.png

 

I verified that the original project has the correct code in the disassembly view.  Why is this happening, how to I fix it?

I've been over the compiler, link and assembler settings with a fine toothed comb, and can not find any differences.  What am I missing?

 

Let me know what other info might be needed to track this down.

Thanks,

Aaron

 

UPDATE: Building an identical project from scratch works just fine, but making copies produces the above error.

Outcomes