• AVR Freaks

Hot!Pic18 eeprom problem

Author
wawrovran
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2020/12/28 05:08:01
  • Location: 0
  • Status: offline
2021/01/14 17:39:12 (permalink)
0

Pic18 eeprom problem

Hi to all, i have just a one off question.
Im trying to learn some programming on my feet.
I have an eeprom downloaded from a pic18 which come in bin format, i need to edit some of the characters to alter one function, but when i do, and reflash to the pic it erases all the characters i have edited, i believe it have something to do with the crc, but i have no idea on how to alter the file without altering the crc or create a valid one.
Any guides?
Thanks
#1

10 Replies Related Threads

    ric
    Super Member
    • Total Posts : 29861
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Pic18 eeprom problem 2021/01/15 03:59:05 (permalink)
    0 (2)
    What PIC18 chip?
    Are you sure you mean EEPROM? PICs store their code in FLASH. Some have a very small EEPROM for storing some data.
    How are you working with bin format? Most programmers require a hex file.
     
    What programming software are you using?
    Hex files have a checksum on each line.
    bin files don't, unless the person who wrote the PIC18 program has implemented something themself.
     
    Just modifying some text characters in a bin image does not sound like "learning programming"...
    post edited by ric - 2021/01/15 04:00:28

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    wawrovran
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2020/12/28 05:08:01
    • Location: 0
    • Status: offline
    Re: Pic18 eeprom problem 2021/01/15 04:03:55 (permalink)
    0
    On my feet, hehe, well, i need to replace that data and dont seem like i will find anybody who knows how so i have to get at the basics at least.
    What editor do you suggest?
    Can i just take the hex content and edit it and then just copy the values on the bin file?
    I was just changing the values on the editor itself, virtual stidio
    #3
    ric
    Super Member
    • Total Posts : 29861
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Pic18 eeprom problem 2021/01/15 04:18:59 (permalink)
    0 (2)
    You ignored most of my questions, so that's the end of me contributing here.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #4
    wawrovran
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2020/12/28 05:08:01
    • Location: 0
    • Status: offline
    Re: Pic18 eeprom problem 2021/01/15 04:37:56 (permalink)
    0
    Sorry i read a bit fast, its a pic18f6620, whether its eeprom or flash, its something im not pretty sure, the debugger dont say anything about, the file its 1kb.
    As i said virtual studio to edit
    #5
    ric
    Super Member
    • Total Posts : 29861
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Pic18 eeprom problem 2021/01/15 04:42:01 (permalink)
    +1 (1)
    You left out what programmer you are using.
    How did you get this "bin file" out of the PIC18F6620?
    How are you trying to put the edited version back into it?
     
    What is "virtual studio" ? You don't mean "visual studio" do you?

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #6
    wawrovran
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2020/12/28 05:08:01
    • Location: 0
    • Status: offline
    Re: Pic18 eeprom problem 2021/01/15 04:53:03 (permalink)
    +1 (1)
    Sorry visual, yes, i used a non standard programmer designed to extract that flash , the same to flash it back
    #7
    wawrovran
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2020/12/28 05:08:01
    • Location: 0
    • Status: offline
    Re: Pic18 eeprom problem 2021/01/19 12:18:16 (permalink)
    +1 (1)
    Why its important the programmer?
    Say i use a pickit3, what difference will be, i do have a pickit, but i believe it do not read it properly
    #8
    ric
    Super Member
    • Total Posts : 29861
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Pic18 eeprom problem 2021/01/19 12:39:55 (permalink)
    0 (2)
    wawrovran
    Why its important the programmer?
    Say i use a pickit3, what difference will be, i do have a pickit, but i believe it do not read it properly

    That tells me a bit about what software you might be using to get data in and out of your chip.
    The Microchip tools to drive the PICkit3 do not use "bin files", so I am trying to determine exactly what you are doing.
    If you choose to leave out important details, then it is a waste of time trying to help you.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #9
    wawrovran
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2020/12/28 05:08:01
    • Location: 0
    • Status: offline
    Re: Pic18 eeprom problem 2021/01/19 12:53:36 (permalink)
    0
    Ok, no problem, thanks anyway
    #10
    wawrovran
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2020/12/28 05:08:01
    • Location: 0
    • Status: offline
    Re: Pic18 eeprom problem 2021/01/19 12:59:02 (permalink)
    0
    By the way, its called orange, i dont think you knew it so no difference in case someone wants to help without being fuzzy
    post edited by wawrovran - 2021/01/19 13:02:14
    #11
    Jump to:
    © 2021 APG vNext Commercial Version 4.5