Bootloader and EEPROM


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2005
    Location
    Dayton, Ohio
    Posts
    72

    Default Bootloader and EEPROM

    In my PBP program, I am using the EEPROM command to pre-load about 32 EEPROM locations with data. Works great programming the hex file direct from MeLabs' Serial Programmer.

    But when I use a bootloader to load the hex file, the EEPROM is not written to (or not loaded correctly). Is it even possible to write to EEPROM using a bootloader? Otherwise it looks like the program is loading and running fine. I'm probably missing something simple.

    (I am using the freeware TinyBld bootloader).

    Any help appreciated.

    regards,
    Jim
    Jim Robertson
    "MilesTag" DIY Lasertag
    www.lasertagparts.com/mtdesign.htm
    Dayton, Ohio

  2. #2
    mytekcontrols's Avatar
    mytekcontrols Guest


    Did you find this post helpful? Yes | No

    Default

    If you are talking about the "Tiny Bootloader" at 100 bytes in size, then no you will not be able to automatically have the EEprom loaded with the DATA statement. If I remember correctly, you can still manually enter it.

  3. #3
    Join Date
    Sep 2005
    Location
    Dayton, Ohio
    Posts
    72


    Did you find this post helpful? Yes | No

    Default

    Okay, thanks. Yes, I think you are right the more I am reading on this. And manually entering each value from the log screen would get too tedious.

    Looks like I'll have to try embedding the EEPROM data into the bootloader's asm file.
    Jim Robertson
    "MilesTag" DIY Lasertag
    www.lasertagparts.com/mtdesign.htm
    Dayton, Ohio

  4. #4
    Join Date
    Sep 2005
    Location
    Dayton, Ohio
    Posts
    72


    Did you find this post helpful? Yes | No

    Thumbs up Bootloader Success!

    For those who might be interested, other than having to manually deal with writing to the EEPROM Data memory (maybe this is the case for ALL bootloaders?), this turns out to be a very nice little bootloader app. And best of all it's FREE.

    http://www.etc.ugal.ro/cchiculita/so...bootloader.htm

    It was very easy to set up and (surprisingly to me) worked on the first try with a PIC18F2525. I simply had to add the Loader Define in my PBP source file:

    #DEFINE LOADER_USED 1

    I used the same MAX232 circuit shown on Mechanique's site. I had already built that circuit intending to buy the MCS bootloader (until I found the free one). I did not include the optional Reset portion of the circuit since I was already using the MCLR pin. All works fine without it. Even the USART TX/RX pins are pulling double duty as normal I/O pins when the PIC's main program is running. And leaving the MAX232 connected does not affect anything. So I now have in-circuit programming capability without giving up any I/O lines or having to use any jumpers. VERY SLICK. I guess I am a "bootloader convert" now.

    Thank you to those who answered my bootloader questions earlier.
    Jim Robertson
    "MilesTag" DIY Lasertag
    www.lasertagparts.com/mtdesign.htm
    Dayton, Ohio

  5. #5
    mytekcontrols's Avatar
    mytekcontrols Guest


    Did you find this post helpful? Yes | No

    Thumbs up I second that

    I also have used this bootloader and find it to be very reliable, and flexible. It also has a very nice built-in terminal window for entering or monitoring data through the same USART lines that it uses for programming.

Similar Threads

  1. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  2. PC to eeprom w/ bootloader
    By Johan in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 20th August 2007, 18:50
  3. bootloader questions
    By mischl in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 20th August 2006, 20:01
  4. Bootloader + EEPROM / DATA Command Question
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th September 2005, 20:01
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 19:59

Members who have read this thread : 0

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