sjb
Joined: 13 Apr 2010 Posts: 34 Location: UK
|
Problem with fuses and multiple compilation units |
Posted: Thu Apr 22, 2010 5:04 am |
|
|
I have traditional c style project with multiple .c files that are compiled and then linked with ccs v4.1.06 but the fuse setting in the .hex file are wrong (target is a PIC18F8720).
Each .c file #includes the same header that contains all the fuse settings.
The reference manual has only brief information on how the linker works and no specific mention of the #fuses but what I'm doing seems correct.
If I compile with just one .c file the the fuse setting are correct.
Can anyone confirm that #fuse settings are handled correctly when linking multiple .o files, or suggest what I might be missing.
Steven |
|