Tiny bootloader and pbp


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Tiny bootloader and pbp

    the bootloader pc app does not see the bootloader code serial port - untill it does the other steps are mute

    i have removed my config and just used the base standard 18f87k22 chip confg - 16mhz internal , no PPL4 , no protection etc
    build asm with MASM 5.86 , with options as build in absolute mode , it has the correct hex format INHX32

    i have serveral other chip set of 18f46k80 , 18f47k40 to make this work on

    I have the referance dave given me for the 18f46k80 series , will need a k40 version

    so have built that with the default chip config setting for the 18f46k80, usart 2 19200 ( for this device)

    THE BOOTLOADER PC SOFTWARE SEE IT "Yay" on manual reset
    and it bootloader pc software finds the base code config

    so ill continue to work on 18f46k80 bootloader and put in my chip config

    I am still unclear what changes i need to make to my orignal pic code for the bootloader to allow it to work

    this is going to be long project stage i think

    cheers

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


    Did you find this post helpful? Yes | No

    Default Re: Tiny bootloader and pbp

    Sheldon, The only statement required for PBP is the "DEFINE LOADER_USED 1" at the top of the program.
    Dave Purola,
    N8NTA
    EN82fn

  3. #3
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Tiny bootloader and pbp

    thanks dave


    prior to bootloader use and relating to the config of the pic protection memory blocks i had protected boot blocks
    and most of memory blocks

    which of these now cant be protected cos of the bootloader use ?

    which setting can be further locked down if using a bootloader ?

    Code:
    ;----- CONFIG5L Options --------------------------------------------------  
        
        CONFIG CP0       = ON         ;  MEMORY BLOCK 0 CODE PROTECT BIT - 7KW 800h  - 3FFFh ( when 1K BOOT OPTION used )
        CONFIG CP1       = ON         ;  MEMORY BLOCK 1 CODE PROTECT BIT - 8KW 4000h - 7FFFh
        CONFIG CP2       = ON         ;  MEMORY BLOCK 2 CODE PROTECT BIT - 8KW 8000h - BFFFh
        CONFIG CP3       = ON         ;  MEMORY BLOCK 3 CODE PROTECT BIT - 8KW C000h - FFFFh
       
       
    ;----- CONFIG5H Options --------------------------------------------------  
       CONFIG  CPD       = OFF        ; EEPROM DATA PREOTECT BIT - EXTERNAL R/W
       CONFIG  CPB       = ON         ; BOOT BLOCK CODE PROTECT BIT 
    
    ;----- CONFIG6L Options --------------------------------------------------  
        CONFIG WRT0      = OFF        ; MEMORY BLOCK WRITE PROTECT BIT 
        CONFIG WRT1      = OFF
        CONFIG WRT2      = OFF 
        CONFIG WRT3      = OFF
      
      
    ;----- CONFIG6H Options --------------------------------------------------  
        CONFIG WRTD      = OFF       ; EEPROM WRITE PROTECT BIT - INTERNAL AND EXTERNAL 
        CONFIG WRTB      = ON        ; BOOT BLOCK WRITE PROTECT 
        CONFIG WRTC      = ON        ; CONFIGURATION REGISTER WRITE PROTECT BIT 
     
    ;----- CONFIG7L Options --------------------------------------------------  
         CONFIG EBTR0     = OFF      ; MEMORY READ TABLE BLOCK PROTECT 
         CONFIG EBTR1     = OFF
         CONFIG EBTR2     = OFF
         CONFIG EBTR3     = OFF
        
    ;----- CONFIG7H Options --------------------------------------------------  
        CONFIG EBTRB     = OFF      ; TABLE READ PROTECT BOOT


    prior to bootloader

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


    Did you find this post helpful? Yes | No

    Default Re: Tiny bootloader and pbp

    Sheldon, This is the sheet for the 18F47K40 that I use here.
    Attached Images Attached Images
    Dave Purola,
    N8NTA
    EN82fn

  5. #5
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Tiny bootloader and pbp

    dave have you the asm code for MPLABX for the 18f27k40 used for the tiny bootloader

    i think as i am using the 47k40 theword values will be abit differnet

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


    Did you find this post helpful? Yes | No

    Default Re: Tiny bootloader and pbp

    Sheldon, Here is the .asm file I use here.
    Attached Files Attached Files
    Dave Purola,
    N8NTA
    EN82fn

Similar Threads

  1. test tiny bootloader via bluetooth
    By hatuan291 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 13th September 2015, 14:35
  2. Replies: 1
    Last Post: - 2nd September 2014, 21:57
  3. Open source PBP bootloader
    By cncmachineguy in forum PBP Wish List
    Replies: 40
    Last Post: - 22nd March 2014, 19:34
  4. Tiny Bootloader 18F2420
    By ultiblade in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 31st March 2010, 18:32
  5. Tiny bootloader and 18F4525
    By Najim in forum Off Topic
    Replies: 1
    Last Post: - 11th January 2006, 12:43

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