PIC18F452 bootloader from MMC-card


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2004
    Location
    Tallinn, Estonia
    Posts
    42

    Default PIC18F452 bootloader from MMC-card

    Hi!
    I needed such code for one project but..net was full of "usual" serial bootloaders. So i was forced to write it. Hope, this example will help somebody!
    Code (source in assembly and .hex file) here: http://parsek.yf.ttu.ee/~felc/PIC/bootloader.zip

    Since all comments in source are presently in my native tongue (will translate, if thread looks useful), some explanation could be useful.
    Code is located form adr 0x7000 upwards. There are 2 ways to access it:
    - by jumping to label "errorloader" - first file with name "codexxxx.hex" found on the MMC is flashed to PIC.
    - by calling to label "bootloader". In this case file parameters (all 32 bytes read from catalog entry) must be saved to buffer "File_Name".
    In both cases flashing will be attempted again and again in case of read errors and/or power failures (bootloader will write a "goto errorloader" command to the reset vector. User code will be written there only in case of successful flashing.
    Code reads standard Intel .hex files.Any data mentioned to be written above 0x7000 will be ignored.
    PIC's internal EEPROM and conf. bits will be written in accordance to source file.

    Actually...I am aware that this is not very close to PICBasic. Moderators, please forgive me....

  2. #2
    2solar's Avatar
    2solar Guest


    Did you find this post helpful? Yes | No

    Default

    Hello, i just found this post. It sounds very interesting. Please correct your link, because i can't download your code.

  3. #3
    Join Date
    Sep 2004
    Location
    Tallinn, Estonia
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    Hi!
    Checked, link works OK. could be some server problem,so i uploaded the code to forum directly. Have fun!
    /Felch
    Attached Files Attached Files

Similar Threads

  1. SD or MMC card as storage for logging
    By HYETİK in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 16th January 2012, 02:07
  2. PIC18F4680 bootloader
    By vinyl_theif in forum General
    Replies: 1
    Last Post: - 29th January 2009, 17:45
  3. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  4. Bootloader Problems
    By rossfree in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th February 2005, 17:51
  5. Reading Magnetic Card on Pic16f876
    By Finn in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 4th February 2004, 23:36

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