Hi Olin, Very good point. I may just start by implementing the bootstrap with the SD card and see how much of the library I can remove from the finished version. Thanks, Tony Olin Lathrop wrote: > Tony Vandiver wrote: > >> I'm trying to write a custom bootstrap to load in my application code >> from an SD card. I want to call file I/O routines located in my >> bootstrap from my application rather than duplicating the file I/O >> library functions in the application because it represents about 10% >> of my code space. >> > > Think hard about whether you really want to do that. The purpose of a > bootloader is to allow field code upgrades. Having the app use pieces of > the bootloader defeats that purpose and imposes interface requirements on > the bootloader that may be burdensome in the future. > > If it's only 10% of the code, then it seems like a no-brainer to duplicate > the routines in the app and the bootloader. Then look at which routines you > really use in the bootloader and how you use them. You can probably pare > down the version in the bootloader to its bare essentials. > > > ******************************************************************** > Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products > (978) 742-9014. Gold level PIC consultants since 2000. > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist