18F8720 bootloader error


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    cjsanders's Avatar
    cjsanders Guest

    Default 18F8720 bootloader error

    I've got an 18F8720 that is having a problem downloading programs using the bootloader from Microcode studio. The error I receive is: "A problem occured trying to write to the following program location ---Address $000000

    What can be done to correct this? Is there any way to tell the bootloader to start at address $000001?

    Any help is appreciated

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Is your device is totally blank ?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    cjsanders's Avatar
    cjsanders Guest


    Did you find this post helpful? Yes | No

    Default

    No the device is not completely blank, it has the bootloader for the 18f8720 from microcode studio programmed.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Actually i can't help on that issue but, try those e-mail

    [email protected]
    [email protected]
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Tim B's Avatar
    Tim B Guest


    Did you find this post helpful? Yes | No

    Default

    Did you have the Flash program write enabled when you programmed in the bootloader?

  6. #6
    cjsanders's Avatar
    cjsanders Guest


    Did you find this post helpful? Yes | No

    Default

    Where is this setting? I can't find it in microcode loader or MPASM.

  7. #7
    Tim B's Avatar
    Tim B Guest


    Did you find this post helpful? Yes | No

    Default

    You will find it in your programer settings.

  8. #8
    cjsanders's Avatar
    cjsanders Guest


    Did you find this post helpful? Yes | No

    Default

    The closest setting I can find in the melabs programmer is
    'Low Voltage Programming Enabled/Disabled' could this be it or I am completely lost?

  9. #9
    Tim B's Avatar
    Tim B Guest


    Did you find this post helpful? Yes | No

    Default

    I use the old Epic programmer and it's there on the line under Low Voltage Programming Enable

    With out it set the boot loader cannot write to program space and when it does a check at $0000 after attempting a write it will find nothings changed. And issues the error message

  10. #10
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Config fuse settings are embedded in the boot-loader firmware .HEX file. You just need to make sure the programmer you're using is NOT making any changes to the default config fuse settings before you burn the loader firmware into the target.

    I use the MeLabs PICProto80 with the 18F8720 & MicroCode Studio Plus boot-loader. It works fine.

    Let me know a few details, and I'm sure we can get you up & running.

    Just fill in the blanks after each A:.

    1. What device programmer are you using?
    A:

    2. What version of MicroCode Studio are you using?
    A:

    3. Are you making any changes to config fuse settings (other than the defaults in the loader firmware) before programming the loader firmware into your 18F8720?
    A:

    4. Are you including DEFINE LOADER_USED 1 & DEFINE OSC in the beginning of your code?
    A:
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  11. #11
    cjsanders's Avatar
    cjsanders Guest


    Did you find this post helpful? Yes | No

    Default

    1. What device programmer are you using?
    A1:meLabs Programmer v3.1 for the bootloader
    A2: Microcode Loader for actual Programs v2.0.0.1

    2. What version of MicroCode Studio are you using?
    A:2.1.0.8

    3. Are you making any changes to config fuse settings (other than the defaults in the loader firmware) before programming the loader firmware into your 18F8720?
    A:No

    4. Are you including DEFINE LOADER_USED 1 & DEFINE OSC in the beginning of your code?
    A:Yes

    Where is this "Flash program write enabled" setting in microcode loader?

  12. #12
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Just select the 18F8720 from the programmer software drop-down menu, then open the MicroCode loader .HEX file with your MeLabs serial programmer.

    Click the C on the programmer software window to view configuration settings embedded in the loader .HEX file. If none of the Code blocks are protected you should be OK.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  2. Optimizing DIV
    By skimask in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 22nd September 2008, 04:58
  3. pbp245 compliation error
    By Woodzy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th July 2006, 05:59
  4. 16F88 Compile error
    By Toley00 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2005, 00:22
  5. Compiler/Assembler Error
    By LT_Pic in forum General
    Replies: 7
    Last Post: - 21st July 2005, 09:47

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