Anyone found a Bootloader for 18F26K22?


Closed Thread
Results 1 to 13 of 13

Hybrid View

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

    Default Anyone found a Bootloader for 18F26K22?

    Hello Freinds, I was wondering if anybody has come across a bootloader for an 18F26K22. I talked to David Barker (Microcode Studio) via Email and he said maybe in the future he will tackle it but no time frame yet. I have an application for replacing an 18F2620 which I require a second comm port. I tried the DS-30 bootloader but to no avail. I'm still looking... Thanks in advance....
    Dave Purola,
    N8NTA
    EN82fn

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: Anyone found a Bootloader for 18F26K22?

    Hi Dave,
    I was going to suggest the DS30 loader since I've had success with on a 18F25K22. I don't have a 26K22 to play with but what's the problem you're having with it?

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


    Did you find this post helpful? Yes | No

    Default Re: Anyone found a Bootloader for 18F26K22?

    Well, I went to there website and downloaded all the manuals and the loader files as well as the GUI interface. I have spent all of today trying to get the darn thing to be able to bootload a program. I am trying to use USART1 like normal but no go. I hooked a scope to the TX and RX pins and I did see a character or two returned from the pic 1 time only. I can see the pinging from the pc side but no responces from the pic side. I read a couple of forums and some people have had some success with the USART2 port. I was going to try that next. I have gone over all the spec's for the part and set all the registers to enable the first and second USART ports. I'm at my wit's end... like I said in my request post, I have talked to David Barker, the writer of MicroCode Studio and he has no plans on updating the MicroCode Loader for now. I would think that if you have a product that everybody uses you would support it. I kind of wish Mel Labs would support a bootloader once again. I use it for all my projects from bench to finish products... BTW, I compiled the same program without the asm lines to remap the bootloader location and used MPLAB to load it onto the 18F26K22 and the ports work just fine and as expected.
    Last edited by Dave; - 19th July 2011 at 22:22.
    Dave Purola,
    N8NTA
    EN82fn

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: Anyone found a Bootloader for 18F26K22?

    Hi Dave,
    I'm basically in the same boat, I use a bootloader for almost everything where an USART is available, it's just so convenient. Regarding Mecanique, I use MCSP and MCLoader all the time but I'm concidering the product dead - it is what it is and it what's avaialble now is what we'll get.

    I seem to remember there was something wrong/weird with the settings for the 25K22, perhaps the same thing applies to the 26K22. I don't remeber exactly where I found the information but here are a couple of links, perhaps you've seen them both, perhaps you haven't.
    http://digital-diy.com/forum/chit-ch...ader-t666.html
    http://digital-diy.com/forum/amicus-...der-t1300.html

    There's also a sample PBP program on the DS30 loader download page.

    I placed an Digikey order yesterday, if I'd knew I would include a 26K22....

    Good luck and please keep us updated!

    /Henrik.

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


    Did you find this post helpful? Yes | No

    Default Re: Anyone found a Bootloader for 18F26K22?

    In fact Hendrik, The settings.inc file is from an 18F25K22 that was modified. Virtually the same. I am going to try the USART2 port this afternoon and see if it works... I'll keep in touch...
    Dave Purola,
    N8NTA
    EN82fn

  6. #6
    Join Date
    Apr 2011
    Location
    Kent, UK
    Posts
    52


    Did you find this post helpful? Yes | No

    Default Re: Anyone found a Bootloader for 18F26K22?

    Regarding using 2 serial ports, I have had great success running two ports at different speeds using the 18F26K22. Sample coding below.

    Tim.

    Code:
    INCLUDE "DT_INTS-18.bas"         ; Base Interrupt System
    INCLUDE "ReEnterPBP-18.bas"     ; Include if using PBP interrupts
    ASM
    INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
            INT_Handler    RX1_INT,  _SERIALIN1,   PBP,  no
            INT_Handler    RX2_INT,  _SERIALIN2,   PBP,  no
            INT_Handler    TMR1_INT, _COUNTER,     PBP,  yes
        endm
        INT_CREATE                   ; Creates the interrupt processor
    ENDASM
    
                RCSTA1 = %11010000                    ' Enable 9bit serial port & continuous receive
                TXSTA1 = %01100100                    ' Enable transmit, BRGH = 1
                BAUDCON1.3 = 1                         ' Enable 16 bit baudrate generator
                SPBRGH1 = 0
                SPBRG1 = B562500                    ' 562500 Baud
                
                RCSTA2 = %10010000                    ' Enable serial port & continuous receive & parity
                TXSTA2 = %00100100                    ' Enable transmit, BRGH = 1
                BAUDCON2.3 = 1                         ' Enable 16 bit baudrate generator
                SPBRGH2 = 1
                SPBRG2 = B38400                        ' 38400 Baud @ 54MHZ

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