linear1 forums
[part of the linear1 network]
+ [linear1 case mods]
+ [LED Center]
+ [privacy policy]
Welcome, Guest. Please login or register.
March 20, 2010, 02:16:14 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Login Register

linear1 forums  |  LED discussion  |  Microcontroller madness  |  Topic: Tiny Bootloader for PIC micros... « previous next »
Pages: [1] Print
Author Topic: Tiny Bootloader for PIC micros...  (Read 3955 times)
Najim
Strong like bull
*
Offline Offline

Posts: 4


« on: January 11, 2006, 04:34:35 AM »

Hi all,

Well here it is my first post in this forum.

I would like to program a PIC 18F4525 with the tiny bootloader wich seems to be very flexible,small and fast.
The problem is that with this micro we are supposed to make a modification in the bootloader code... but don t know which one...

If someone knows how to do it, it would help me a lot...

Have fun guys.
Najim.
Logged
Najim
Strong like bull
*
Offline Offline

Posts: 4


« Reply #1 on: January 11, 2006, 06:50:33 AM »

Hey guys I found the solution to make tinybootloader work with the pic 18F4525...
Actually it works fine without any modification Tongue The thing is that the watch dog timer has to be disabled in orther to not reset the pic when the bootloader is working...

Hope it will help someone.

Najim.
Logged
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #2 on: January 11, 2006, 08:03:08 AM »

Hi Najim, and welcome to the boards.

Tinybld is great isn't it?  I mean, 100 words, that's truely tiny ... and its so fast!

I wasn't aware watchdog needed to be turned off, but I could see that being a problem I suppose, if the bootloader remained in a loop for an extended period of time and didn't service the watchdog frequently, reset!  I wonder if there are a few nmenonics that you can throw at it, disabling the watchdog via software while in the programming loop, and re-enabling it once finished?

Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Najim
Strong like bull
*
Offline Offline

Posts: 4


« Reply #3 on: January 11, 2006, 10:04:28 AM »

Hi JustDIY,

I think you can t do it... Cause when u enable the whatchdog timer when u program the PIC, u can t disable it by software...

Yes the tiny boot it s fabulous...tiny,fast, and u can save all the serial comunication in a file...

Let s go back to work Cheesy  oh yeah

Cheers man.
Logged
justDIY
Microcontroller Madman
Administrator
Smart like tractor
*****
Offline Offline

Posts: 1652


UFOric


WWW
« Reply #4 on: January 11, 2006, 10:33:02 AM »

ok ... I see now in the datasheet

you program the pic with watchdog disabled, but can enable later in software

WDTCON.0 = SWDTEN bit ... enable watchdog in software, page 259, 18F4520 datasheet

seems to only be an option for the 18F series

so that could be handy, startup with wdt turned off with a fuse, but enable it with software whenever it might be needed, and disable it whenever it might interfere!
Logged

Want to contact me directly? gmail gordonthree
My Project Blog - http://projects.dimension-x.net

Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Najim
Strong like bull
*
Offline Offline

Posts: 4


« Reply #5 on: January 11, 2006, 11:07:52 AM »

Yep that s what I understood...

see ya.

PS: very good forum.
Logged
Pages: [1] Print 
linear1 forums  |  LED discussion  |  Microcontroller madness  |  Topic: Tiny Bootloader for PIC micros... « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.129 seconds with 19 queries.