wawrovran
New Member
- Total Posts : 7
- Reward points : 0
- Joined: 2020/12/28 05:08:01
- Location: 0
- Status: offline
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
|
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)
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
To get a useful answer, always state which PIC you are using!
|
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)
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
|
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)
You ignored most of my questions, so that's the end of me contributing here.
To get a useful answer, always state which PIC you are using!
|
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)
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
|
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)
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?
To get a useful answer, always state which PIC you are using!
|
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)
Sorry visual, yes, i used a non standard programmer designed to extract that flash , the same to flash it back
|
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)
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
|
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)
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.
To get a useful answer, always state which PIC you are using!
|
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)
Ok, no problem, thanks anyway
|
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)
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
|