+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2009
    Posts
    3

    Angry Configuration bits in a HEX file gone missing?

    Hi Everybody,


    Hi, we are pleased to see that you are using our forum.

    We'd like you to become a member of our community. Membership is FREE, please REGISTER and view our forums without these annoying reminders!

    Once registered you may post on the forums, download from the file areas and use the WIKI without interruption.






    I'm currently working on a bootloader application - the idea is that the master pic will program all the slave pics connected to it over eusart. For that I need to know the exact structure of a hex file, so I can stream it correctly and setup table writes in pic's flash.

    As far as datasheet is concerned the config bytes has the addressess 300000h - 3FFFFFh.

    As far as I know, the configuration bits should be included in the hex file. I can't seem to find them though. I tried the method of setting them differently and recompile the program, but the hex files are exactly the same! No matter what configuration bits I change. Is it possible that this bits are stored somewhere else with the new MPLAB?

    I working on pic18f4525 with picbasic pro and mplab 8.43. I include a hex file of my program (a tiny bootloader compiled actually).

    Thanks in advance if you can find those for me. Cheers!

    greg


    :020000040000FA
    :04000000A0EF5FF01E
    :08BF3800000000000000000001
    :10BF4000240EAC6E190EAF6E900EAB6E4B0EAD6E36
    :10BF500047D8C10854E14E0EAD6E4B0EAD6E006A6F
    :10BF60003FD80000F86E076E3BD8F76EA96E38D840
    :10BF7000F66EA86E35D8016E012A00EE09F0F56E56
    :10BF80002FD8EC6E012EFBD700661FD007AC03D074
    :10BF9000040E1ED818D007AE04D00C00C40E18D85A
    :10BFA00012D0940E15D80A00080E056E00EE0AF0A5
    :10BFB000080E066EEE50F56E0F00062EFBD7840EAF
    :10BFC00007D8052EF5D7A694C8D74E0EAD6EC7D7A5
    :10BFD000A66E550EA76EAA0EA76EA68200001200CE
    :10BFE000030E026E036A046A9EAA03D0AE500026B6
    :10BFF0001200042EF9D7032EF6D7022EF3D7AB9EEC
    :02C000009BD7CC
    :020000040030CA
    :03000100011E0ECF
    :020005008181F7
    :060008000FC00FE00F40E5
    :00000001FF

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,935

    Default

    Here they are ...
    Code:
    :020000040000FA
    :04000000A0EF5FF01E
    :08BF3800000000000000000001
    :10BF4000240EAC6E190EAF6E900EAB6E4B0EAD6E36
    :10BF500047D8C10854E14E0EAD6E4B0EAD6E006A6F
    :10BF60003FD80000F86E076E3BD8F76EA96E38D840
    :10BF7000F66EA86E35D8016E012A00EE09F0F56E56
    :10BF80002FD8EC6E012EFBD700661FD007AC03D074
    :10BF9000040E1ED818D007AE04D00C00C40E18D85A
    :10BFA00012D0940E15D80A00080E056E00EE0AF0A5
    :10BFB000080E066EEE50F56E0F00062EFBD7840EAF
    :10BFC00007D8052EF5D7A694C8D74E0EAD6EC7D7A5
    :10BFD000A66E550EA76EAA0EA76EA68200001200CE
    :10BFE000030E026E036A046A9EAA03D0AE500026B6
    :10BFF0001200042EF9D7032EF6D7022EF3D7AB9EEC
    :02C000009BD7CC
    :020000040030CA          <-- Extended Linear Address Record
    :03000100011E0ECF        <-- CONFIG1H,2L,2H
    :020005008181F7          <-- CONFIG3H,4L
    :060008000FC00FE00F40E5  <-- CONFIG5L - 7H
    :00000001FF
    DT

  3. #3
    Join Date
    Dec 2009
    Posts
    3

    Default

    Hi Darrel,

    Thanks so much! That is great.

    What has happened was I also somehow compiled .asm file as a relocatable code, and this prevented the config bytes from being updated. Thats why I couldn't find them in simple comparison.

    Thanks again and regards,

    greg

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 18
    Last Post: - 26th March 2011, 18:55
  2. Warning: Some configuration words not in hex file
    By Byte_Butcher in forum General
    Replies: 2
    Last Post: - 14th December 2009, 06:25
  3. INH8XM HEX file structure
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 30th December 2006, 22:46
  4. No hex file...?
    By mypylon in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th November 2005, 14:02
  5. error on compiling
    By parker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th June 2005, 14:31

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