On Thu, Jun 24, 2004 at 11:35:14AM -0300, Tato wrote: > Ok, I will try to explain but please English is not > my first language, so forgive my mistakes. What mistakes? ;-) > > >Two questions. > >1) What is going to be your licensing? > FREE for ANY use. Cool. Might I suggest then putting a BSD license on it. It states that the code is free for any use, but that you retain copyright, and that others cannot strip the copyright notice from the code. Also I posted some code during this thread. If you used any of it, just mark is as BSD licensed code and stick a copyright with my name on it. > > >2) While I understand the support issue, can I personally get a copy to > take a look at >under whatever licensing terms you plan to use. I > promise I won't ask any questions. > You can ask any question. You missed my point. Your documentation would answer questions. By promising not to ask questions I was just stating I wouldn't waste your time. In fact I apologize for doing so because I apparently prompted you to write this E-mail message in response. > > I developed this bootloader because I needed it and I needed in a > hurry. I tried several but none worked with 16F819 so I did it. > I called it ProPic Loader because of my ProPic 2 Programmer. Cool. > It's very simple, uses only 178 words, it's not well commented > but works just fine. I'm using the internal oscilator and comunicating > at 2400bps. Interesting! The internal oscillator is one of the things that attracts me to the nanowatt parts like the 16F819 and the 16F88. Being able to bootload using it is quite helpful. > > Basically it sends a 'P' caracter at the boot time and waits for a > command. Typical. > If in 0.52s it doesn't receive any command, it boots the user code or if > there is no user code, it repeats the above. Typical, and very good. > > The commands are: > 'E' - erase the memory and re-write some of the bootloader code. > 'B' - boot the user code. > 'W' - write a 4 words code. Hmmm. Simple but quite effective from the look of it. > > The two main problem I had with the 16F819 are the 32 words > erase block and 4 words writing block. Both are standard issues. We talked about them a couple of weeks ago. BTW did my erase code that I posted work? > > What I did to solve the second problem was send data in 4 words blocks > with the address. Every 4 words block is preceeded with it's address. > I know it's not that efficient but hey I was in a hurry :-) Standard development rule: get it to work first. Worry about pretty/efficient/ optimized later. > > The 32 words erase block problem was solved re-writing the bootloader > code everytime it's erased. > > The asm code and Delphi downloader are available at: > http://propic2.com/ploader/ Now you're talking! Let me go take a look. OK. I took a look, but I'm a bit confused. PLoader.asm only seems to have bit banged serial routines. There doesn't seem to be anything there to read/buffer input, erase, and program. Did I miss something? BTW did you decide to bitbang. Interesting design choice if you did. I like it. > > I hope it will be usefull for someone else. Can you double check that you loaded the most up to date source? BAJ -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu