>Tell me - if a program is written in a modular style, can you >selectively write a particular module's assembly to the chip ? > >IOW, when the modules are compiled, do they always compile >into a single .hex file ? Usually under Programmer/Settings I'd >enter the Start and End address for the whole .hex file that is >produced from a single .asm file. If only a small piece of the >code, eg a single number or data value, is changed, to re- >program just that value in the chip you'd need to find it in program >memory and set the Start/End addresses accordingly. Does >each module in the linker style of programming have its own >Start/End addresses ? > >(BTW, to program an 18F452 you need to "Erase Flash Device" >first, which might screw things up) The linker produces the hex file when doing things this way. But the whole thing can be simplified by the use of batch files. Check out Olin's development environment for one method of doing this. I find that using his environment, with an editor outside MPLAB (Ultraedit is my choice, with an expanded highlighter file) and then having a DOS box open in background to fire off the batch file makes for a very easy and quick assembly cycle. Jan-Erik has documented the loops to go through to run the batch file direct from Ultraedit, on his website. he also has a very nice PDF version of Olin's documentation. http://www.embedinc.com/pic/ http://www.st-anna-data.se/ -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body