• AVR Freaks

is it possible to patch an *.Hex file

Author
paulfjujo
paulfjujo
  • Total Posts : 81
  • Reward points : 0
  • Joined: 2011/03/08 05:33:46
  • Location: France 01700
  • Status: offline
2020/05/22 11:58:22 (permalink)
0

is it possible to patch an *.Hex file

hello,

i have a development board PIC18F47Q10 Curiosity Nano
wich include a HID bootloader
is it possible to develop a program for a 18F27Q10 DIP28
program on the nano board with a PIC 18F47Q10 , then to apply somme patches on the resulting *.Hex file
to change MCU ID ( 18F27Q10)  , pass over bootloader ...etc and correct CRC at each modified line of *.Hex file
(application without using extra I/O like PORTD!)
or maybe ,the easiest way is to do all test with 18F47Q10,
then copy the resulting source code and recompile with 27Q10 and uses Pickit4
 
 
#1

2 Replies Related Threads

    jtemples
    عُضْوٌ جَدِيد
    • Total Posts : 11820
    • Reward points : 0
    • Joined: 2004/02/13 12:31:19
    • Location: Southern California
    • Status: offline
    Re: is it possible to patch an *.Hex file 2020/05/22 12:04:31 (permalink)
    +2 (2)
    You can't change the PIC's ID.
     
    You can do whatever you want with a hex file, it's just text.  But of course if you do something like add a CRC to it, you'll have to use your own tools read it.  You can't use a MCHP programmer with your non-standard files.
    #2
    NKurzman
    A Guy on the Net
    • Total Posts : 18667
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: is it possible to patch an *.Hex file 2020/05/22 12:46:43 (permalink)
    +3 (3)
    Possible, Yes.  Practical. No.
    If you are using MPLabX.  Add a New configuration for the second PIC.
    You may need to add a few #defines to cover and difference between the two PICs.  Like Config Registers for example.
    #3
    Jump to:
    © 2020 APG vNext Commercial Version 4.5