Tiny Bootloader 18F2420


Closed Thread
Results 1 to 12 of 12
  1. #1
    Join Date
    Apr 2006
    Location
    GearSweaterMountain, The Netherlands
    Posts
    52

    Default Tiny Bootloader 18F2420

    Hi there,

    I have been trying to get this to work for ages but without any result ...

    I'm trying to use the tiny bootloader, i've searched on the forum, found some information
    but was'nt able to use it ..

    The problem: TinyBld keeps telling
    "Connected to \\.\COM1 at 19200
    Searching for PIC ...Not found,
    ERROR!"

    It's a 18F2420, i used the hex file included tinybld18F2420_int8MHz_19200.HEX
    but that does'nt work. I'm sure the max232 works because when i use the code below
    i receive "test" in a terminal program.

    Does somebody have a working compiled hex for a 18F2420 with internal 8mhz osc lying around ?

    Anyone ?

    Code:
    define OSC 8
    OSCCON = %01111110
    
    DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    DEFINE HSER_SPBRG 51  ' 9600 Baud @ 8MHz, 0,16%
    SPBRGH = 0
    BAUDCON.3 = 1         ' Enable 16 bit baudrate generator
    
    ADCON0 = 0
    ADCON1 = %00001111
    TRISA = %00000000
    TRISC = %11000000
    
    START:
    hserout ["test"]             
    pause 1000
    goto start
    
    progend:
    goto progend
    Best Regards,

    UB

  2. #2
    Join Date
    Dec 2009
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Tiny Boot 18F2420

    Did you ever get the tinyboot for 18F2420 working?

  3. #3
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rinthesun View Post
    Did you ever get the tinyboot for 18F2420 working?
    The original post is over 18 months old... you might not get a response !

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    This is what would worry me...

    tinybld18F2420_int8MHz_19200.HEX

    Are you trying to 'reliably' load a random PIC at 19200 Baud when running an INTERNAL 8MHz Oscillator? Only in your dreams!

  5. #5
    Join Date
    Apr 2006
    Location
    GearSweaterMountain, The Netherlands
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Hi there,

    Well i did get it to work, but by using a 16F88 ....
    I could not get the tiny bl to work on the 2420, so i tried a different part to be sure it actually worked, it did work on a 16F88. Reducing the code and adding some extra analogue parts caused that i could stick to 16F88 and so i did ...

    I still have a working 16F88 tiny bootloader hex + flash the led demo for pbp.

    Let me know if you need i it ....

    Best regards,
    Ultiblade

  6. #6
    Join Date
    Dec 2009
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Bootloader 18F2420

    Thanks for your reply. I do have the Tiny Bootloader reliable working with a 16F886 and hoped to get it working with the 18F family. Someone must have it working from the info on the Tiny Bootloader site. I will first try it with a 18F252 and if that works try the 18F2420. If I have any luck I will post it here.

  7. #7
    Join Date
    Apr 2006
    Location
    GearSweaterMountain, The Netherlands
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Strange thing is that on the tiny website there is sample code called tinybld18F2420_int8MHz_19200.HEX and should work ...

    The code sample never did work. Add the fact that Melanie is talking about "in your dreams", trying first on the 252 will be a good idea.

    Succes !

    Best regards,
    UB

  8. #8
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    You can also modify the TinyB18F.asm code for other PIC types. The cool part of using PIC18 device is that you can run the bootloader WITHOUT a MAX232! Just invert your USART with RXDTP and TXCKP. I have been meaning to try it since I read this thread: http://www.picbasic.co.uk/forum/showthread.php?t=10361

    I finally tried it using a PIC18f2520 with a 22k resistor on the RX line, and with the addition of

    Code:
    	BSF BAUDCON,RXDTP
    	BSF BAUDCON,TXCKP
    to the sample .asm file they call TinyB18F.asm , which is included in the Tiny Bootloader download.

    Nice to get rid of a $4.00 chip, and do it in hardware, well ... sort of software/hardware!

    And it works!!
    Last edited by ScaleRobotics; - 30th December 2009 at 21:57.

  9. #9
    Join Date
    Dec 2009
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Tiny with 18F2420

    I have tiny working with the 18F252 and the 18F2420. I will upload the file in a day or so.

  10. #10
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    scalerobotics, WOW you pay $4.00 for an MAX-232.... You must be made of money...

    Dave Purola,
    N8NTA

  11. #11
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default MAX232 alternative

    Quote Originally Posted by Dave View Post
    scalerobotics, WOW you pay $4.00 for an MAX-232.... You must be made of money...
    No, mostly water really.

    Thanks Dave, I guess I was using a Mercedes, when I could have used a Chevy.

    A quick search of Digikey for MAX232 reveals the actual price of a Maxim MAX232 dip is $3.31 to $6.60 ( Unless you like the larger electrolytic caps). But, if you use an ST232C, instead of a MAX232, (after tax and a few capacitors), the cost is $1.25.

    Either way, you will save some money and space on your board if you invert your coms and buy two resistors.

  12. #12
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    scalerobotics, There is just something wrong in my mind about connecting negative voltages to a unipolar input pin... I think the cost of a few transistors and a few resistors is worth the piece of mind....

    Dave Purola,
    N8NTA

Similar Threads

  1. PIC18F4680 bootloader
    By vinyl_theif in forum General
    Replies: 1
    Last Post: - 29th January 2009, 17:45
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  3. USBDemo with Bootloader
    By vacpress in forum USB
    Replies: 4
    Last Post: - 25th January 2007, 22:29
  4. Tiny bootloader and 18F4525
    By Najim in forum Off Topic
    Replies: 1
    Last Post: - 11th January 2006, 11:43
  5. Bootloader Problems
    By rossfree in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th February 2005, 17:51

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts