View Full Version : Write EEPROM
Bütyök
21-05-2004, 03:26 PM
How can I write values to external EEPROM addresses from program?
Please someone write here codes in .gsc format or in hex!
(eg.: EEP addr.: 0x0378, and I want to write 0x03 to 0x0378 )
Thanx
Bütyök
There are two functions:
EEPROM_READ_BYTES (at 0x2EF758 in NHM-5 V06.07)
EEPROM_WRITE_BYTES (at 0x2EF728 in NHM-5 V06.07)
both of them take 3 arguments:
R0 - address in EEPROM
R1 - buffer address
R2 - number of bytes
When reading, in R1 you give the buffer in RAM, where you want readed bytes to be placed, when writing whis is address in flash/RAM of data that should be written to EEPROM.
If you're writing a script for G3n0lite it will find these functions for you. Just place AUT: command in your script. Note that in G3n0lite they are simply called EEPROM_READ and EEPROM_WRITE.
Hope i helped...
NokDoc
24-05-2004, 08:06 PM
Hi,
Anda...
One was called Recalc_n_Write_Eeprom_Check_after_change. ;)
NokDoc
Bütyök
25-05-2004, 04:43 PM
Hi,
Anda...
One was called Recalc_n_Write_Eeprom_Check_after_change. ;)
NokDoc
Why?
Before I enabled Netmonitor in phone by LogoManager I read EEPROM and after enable I read too. The different between two binary file was only one byte: 0378 changed 00 to 03.
Originally I want to enable and disable Netmonitor from a menu. Accordingly asked to write EEPROM from program.
NokDoc
25-05-2004, 08:11 PM
Hi,
Eeprom: 4 zones...
The header, security area1, security area2, the user datas and pmm's.
Locations for eg 3310:
00-26-146-27E-End
Sec1, need EprRead or EprWrite/ Epr1Recalc function.
Sec2, need EprRead or EprWrite/ Epr2Recalc function.
User area has functions to read/ write data for the purposes.
I guess, that not need recalcs.
And that U proved now. ;)
NokDoc
Bütyök
25-05-2004, 10:21 PM
:)
O.K. Probably it is very hard.
But I don't know how write the phone to EEPROM area?
What happens when there is a byte in RAM or I get any characters by keypad and the program calls a routine to write them to EEPROM?
It should be very easy to prepare a data in flash and call the routine to write it to EEPROM.
Am I mistake?
NokDoc
25-05-2004, 10:52 PM
Gi,
>> Am I mistake?
Well, maybe u missed a thing.
Some guys have made very nice things, which I call demos.
Inside these patched files is such things being shown how to use.
Asking how is like travalling the entire space in 3 seconds.
So please look in those files, to see how they use new functions to read and write data to eeprom.
I think G3's fader OwnGet/SetNibble has good example.
NokDoc
Bütyök
28-05-2004, 05:28 PM
Thanx for helps!!!!
I can read and write EEPROM and RAM!!
It is very nice!
But I still don't know what happens when I activate Netmonitor by a program.
To EEPROM it writes 0x03 at address 0x0378 (in 6110). And more?
I write to EEPROM 0x03 at address 0x0378 but happens nothing.
I don't see Netmonitor Menu.
What is wrong?
What I have to know more to do it?
BR,
Bütyök
NokDoc
28-05-2004, 09:13 PM
Hi,
This location 0x378, how U got to that value?
The biggest security area I ever saw is 0x278. (3390)
So it is no security area zone and the above writeeeprom methods won't work for Ur purpose.
It's in user area, and I never experimented writing there myself.
I want the 8210-531 equivalent of that 0x378, then I can study more.
NokDoc
Bütyök
28-05-2004, 10:14 PM
Hi!
It is a 6110.
I read and saved EEPROM before enabled Netmonitor.
Enabled Netmonitor by LogoManager, and read EEPROM again.
Compare these two files by Windows Commander and there was only one different between them. It was at 0x0378 address (by Windows Commander)
I found read_eeprom and write_eeprom and calc_eeprom_chk routines - by Your motion. :)
I wrote two menus to write 0x00 and write 0x03 to EEPROM at 0x0378 and made a 5E0 routine to this.
First I wrote 0x00 to EEPROM at 0x0378 and read EE. There was 0x00 at 0x0378. After this I wrote 0x03 to EE at 0x0378 and there was really 0x03 at 0x0378.
But Netmonitor stay invisible. :(
I suspect about that Logo Manager or EEtools write to RAM too to enable Netmonitor.
What is Your opinion?
NokDoc
29-05-2004, 12:35 AM
Hi,
What's 1st 4 bytes in that file?
If its no 'F0F0FFF8', and at 00C is Ur imei, try decreasing Ur 0x378 - 0x26.
NokDoc
Kontact
29-05-2004, 05:25 AM
hmmmm.... try this one...
read epr data with enable netmon value. do some magic and put it on RAM the value that enable netmon. find the RAM loc where netmon value is putted on power on. and i think it must work now.
regards
Bütyök
29-05-2004, 07:40 PM
Hi,
What's 1st 4 bytes in that file?
If its no 'F0F0FFF8', and at 00C is Ur imei, try decreasing Ur 0x378 - 0x26.
NokDoc
From 0x00 to 0x3F it is fulfilled with 0xFF.
Let see attached file...
Rename it to .bin or .fls and view by Windows Commander (or hex editor).
NokDoc
29-05-2004, 10:33 PM
Hi,
Have the file, only no much time now.
Ur imei is still in it, maybe it was the reason why it was blanked?
NokDoc
Bütyök
30-05-2004, 11:06 PM
Hi!
There isn't any purposefulness in it.
The Nokia EEtools read it in this way and I attached the original version of reading.
I know, that I solder out the EEPROM and read it by eprommer, it contains other datas at address 0x0000 out of range 0xFF.
Thats all.
News
I have a new development in my 6110.
I can move the position of Netmonitor in Menu (all things considered it isn't a big magic), and it works correctly in this respects that when it's disabled, it's unvisible - let it anywhere else in the order of menu - and when it's enabled it's visible and works correctly.
Second development is the next:
Basicly the 6110 hasn't SIM menu. I inserted it. If a SIM card has own menu the phone show it (as 6150 and newest models).
BR,
Bütyök
Powered by vBulletin® Version 4.2.0 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.