PICBasic Pro Getting Bootloader Into PIC the First Time


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2017
    Posts
    28

    Default PICBasic Pro Getting Bootloader Into PIC the First Time

    Where are the instructions on how to do this?

    Or do you just click program and installs itself on a blank chip?

    Have PICBasic Pro installed and downloaded MEProg.

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


    Did you find this post helpful? Yes | No

    Default Re: PICBasic Pro Getting Bootloader Into PIC the First Time

    To get the bootloader firmware into the PIC you need a device programmer such as a PICKit3 or MeLabs U2. Once the bootloader firmware is in the PIC you use it's associated PC software (if it's not a SD card bootloader or something of that nature of course) to "push" your firmware into the PIC.

    MeProg is the PC software used to "drive" the MeLabs U2 programmer - it does not, as far as I know, have any provisions for bootloading.

    Most common (but not all) bootloaders for 8bit PICs uses the UART in the PIC to communicate with the PC during the bootload process. This obviously means that you need a PIC with an UART on board in order to use the bootloader.

  3. #3
    Join Date
    Aug 2011
    Posts
    412


    Did you find this post helpful? Yes | No

    Default Re: PICBasic Pro Getting Bootloader Into PIC the First Time

    You also have to have a PIC capable of writing to its flash memory in order to use a bootloader.

    The 12F683 you mentioned isn't one of them.

  4. #4
    Join Date
    Mar 2017
    Posts
    28


    Did you find this post helpful? Yes | No

    Default Re: PICBasic Pro Getting Bootloader Into PIC the First Time

    Henrick

    "MeProg is the PC software used to "drive" the MeLabs U2 programmer"

    Does MeProg programming the D-Stick and the Experimenter boards?

    Don't know the name for that. Microchip calls theirs 'PKOB'.

    Serial loader perhaps?

    " UART in the PIC to communicate" AND "need a PIC with an UART on board"

    UART to UART. Very interesting. Makes sense.

    'Reply at Forum' emails have been going to Spam. Apologize for delay.

  5. #5
    Join Date
    Mar 2017
    Posts
    28


    Did you find this post helpful? Yes | No

    Default Re: PICBasic Pro Getting Bootloader Into PIC the First Time

    Tumbleweed

    "have a PIC capable of writing to its flash memory"

    Hendrick said it requires a UART. "writing to its flash memory". Same thing?

    Notifications were going to Spam. Sorry it took awhile to respond.

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


    Did you find this post helpful? Yes | No

    Default Re: PICBasic Pro Getting Bootloader Into PIC the First Time

    Hendrick said it requires a UART. "writing to its flash memory". Same thing?
    No, it's not the same thing.

    tumbleweeds point is actually more important than mine. For any bootloader to work (be it serial, USB, or whatever) the PIC itself needs the ability to program its own flash memory and not all PIC chips can do that.

    The most COMMON type of bootloader within the 8bit PIC families is serial and the most common ones (like the MCS Loader, DS30 Loader, Tiny Bootloader etc) relies on the fact that the PIC has an UART to handle the serial communications between the PC and the PIC. There are USB bootloader available, then the PIC must have USB peripheral to handle the communication.

    The D-Stick contains a PIC16F1937 it does not have a USB peripheral even though the D-Stick has a USB-port. So there must be a USB-Serial chip on the stick presenting itself as a virtual COM-port to the PC. The bootloader type is then serial but I but I don't know if they're using an off the shelf one or a custom one.

    Does MeProg programming the D-Stick and the Experimenter boards?
    With MeProg and MeLabs U2 programmer you can program "any" 8bit PIC, including the 16F1937 on the D-Stick and whatever chip is on the Trainer board. But since both the D-Stick and the Trainer board has a bootloader you don't NEED a device programmer (which is what the U2 is) to get programs into them.

    If you buy a blank chip from Digikey you DO need a device programmer to get the program into the PIC. That program MAY be a bootloader so that you from THAT point on don't need the device programmer.

    It may be confusing at first but it's really quite simple.

  7. #7
    Join Date
    Mar 2017
    Posts
    28


    Did you find this post helpful? Yes | No

    Default Re: PICBasic Pro Getting Bootloader Into PIC the First Time

    Thank you for all the responses.

    Alerts were going to my spam folder.

    I think that is fixed now.

Similar Threads

  1. Replies: 2
    Last Post: - 23rd December 2013, 10:19
  2. PIC-LCD3310 Pin Outs for PicBasic(pro)
    By douglas.mauro in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th March 2009, 07:17
  3. PICBasic Pro vs Proton PICBasic
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 3rd November 2006, 16:11
  4. ISA / PCI cards Controlled by a pic/picbasic pro ?
    By magicmarty in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 16th January 2005, 21:50
  5. PicBasic Pro & PicBasic syntax different
    By Billyc in forum General
    Replies: 5
    Last Post: - 16th April 2004, 21:19

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