New to PIC24/C30 - just starting a PIC24 project, and began by taking the Microchip thumb drive data logger app and stripping out the logger stuff to leave a framework for my app. However although my app currently uses none of the USB functions, the code size (67% used) indicates that it is still including them. I would normally expect the linker to omit unused functions from the object code unless told explicitly otherwise (e.g. the __root directive in IAR does this to force unused code or variables to be included). How do I tell C30 to omit unused functions? I really don't want to have to trawl through all the USB and filesyetem code to remove stuff that my code doesn't (currently) use... that's what a (sensible) linker is for.. I can't see anything obvious in the build option settings - it is possible that there is a non-default setting from the sample project? -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist