Rafael Vidal Aroca wrote: > - But if I reset the PIC, sometimes the user code runs, but most > times it does not run. That's very strange...when i say sometimes the > user code runs, i mean that......it's really hard to this "sometime" > happen. Did you take the provided hex-file or did you take the ASM file and assembled your own version (selecting another baudrate or other parameters)? You may have to do that since the bootloader cannot write the CONFIG word from the hex file of your PIC-program. I found some errors in the source, for example _MY_WDT is defined and set to a value depending on the value of WATCHDOGTIMER, but _MY_WDT is not used in the _CONFIG statement, but _WDT_OFF is hard coded. Do you use the 'timeout' or the 'pin' method? Maybe you problem has to to do with startup timing, maybe even your power supply. Difficult to say from here. > As i need to program via bootloader botth 16F877A and 16F877 this > problem is the first that i want help to solve. For the moment I use only the non-A version, so I don't suffer from this problem (yet). > The second problem is the one i reported in the last email. > I know that A pics have different flash writing procedures, but this > should be concerned to the pic's firmware and not pc software. Well, with a bootloader memory is actually written by the instructions of the bootloader! I believe there is an alternative bootloader for the 16F87xA chips which writes word-by-word and does not have the 4-word restriction. > Finally > the Windows Donwnloader works, so why does the Linux Downloader does not > if it sends the same serial data that Windows sends. Probably a bug in the linux code... > And for last: each time the Linux downloader sends a WRITE flag, the > first two bytes are correctly written, but the others not. So the > program memory has 2 instructions....2 instructions....nothing. > Everty time a WRITE is sent 2 instructions are written... Don't understand what you mean here exactly, but it sounds like a problem in the linux downloader. Maybe better to write your own downloader for Linux! My C-source is on my homepage (http://www.robh.nl/picsoft.htm#downldr2). Rob -- Rob Hamerling, Vianen, NL phone +31-347-322822 homepage: http://www.robh.nl/ -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body