 |
 |
| View previous topic :: View next topic |
| Author |
Message |
hansknec
Joined: 30 Sep 2004 Posts: 25 Location: Virginia, USA
|
|
Posted: Mon Aug 29, 2005 1:56 pm |
|
|
Ahhh Yes! There is more than one way to skin a cat isn't there. (or Potato for you PETA people)
Understood. |
|
 |
hansknec
Joined: 30 Sep 2004 Posts: 25 Location: Virginia, USA
|
| An Excellent bootloader |
Posted: Tue Aug 30, 2005 8:10 am |
|
|
Lessons learned.
1. There are other ways of getting the EEPROM data into the PIC other than the initial hex load. (ie, embed them so they write at first runtime)
2. Look at the bootloader screen and you will find a little check button called EEPROM. Check it and the #rom statement will work.
I can't believe I went through 20-30 loads of a test program and didn't see that button! I have also read it in previous posts here on the forum, but I always thought that they were talking about Tiny Bootloader, so it didn't apply to me.
I can now HIGHLY recommend the free (for personal use) PIC Bootloader from:
www.microchipC.com <http://www.microchipC.com>
There is one line that needs to be inserted in your original code to reserve 256 bytes of ROM, that's it. It also doesn't require access to a button press on your PIC or the need for RTS,CTS protocol on your RS-232. If you've got a PIC connected to a serial port via the UART (and level shift chip max232 or equivilent) you can be be bootloading 10 minutes after visiting this web site. (note: this bootloader is not for every chip.... see website for list)
Step 1: download the appropriate .hex bootloader file into your PIC using your normal programmer.
Step 2: modify your original code by adding one line to reserve the memory space. (details on web site) and recompile.
Step 3: connect your target to the serial port
Step 4: launch the PIC bootloader+ and select your newly compiled .hex file and press the write button. (don't forget to check the EEPROM button if you want your EEPROM data loaded as well) The Bootloader will now say "Searching for Bootloader".
Step 5. Cycle power on your target and the boatloader will immediately begin to write the code. It is amazingly fast. I don't quite understand how it can actually be faster than a traditional programmer, but it is.
Hope someone out there can benefit from this. BTW, I am not a paid spokesperson for this bootloader. Just a guy that found it to be quite useful. |
|
 |
fuffkin
Joined: 17 Aug 2005 Posts: 2
|
| Tiny Bootloader problem |
Posted: Fri Sep 09, 2005 7:49 am |
|
|
| To get this thread back on track, which was the Tiny Bootloader. I've tracked done the once only write: it is all to do with the WDT. The Tiny Bootloader has the WDT disabled and the code I was loading had the WDT enabled, hence it would work once and then not again. There does seem to be an easy way to use the WDT with the Tiny bootloader other than a few tweaks in the code. |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|