Xiaofan Chen wrote : > Sorry the first sentence should be as following. > "This is because the linker script is supposed not to be used with > interrupts." Becuse it doesn't have any *named* code-section at the interrupt vector address ? That doesn't stop it from beeing used with interrupts, of course, just put the interrupt verctor address in your CODE directive instead and the linker will put the ISR where it belongs. Yes, this makes the code a *little* less portable between different PIC architectures where the interrupt vector address are on different address (e.g. PIC16 vs. PIC18), but that's a minor problem, IMHO. Jan-Erik. > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist