RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Thu Dec 25, 2025 5:10 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How To: Reading the ECU EEPROM with Arduino
PostPosted: Sat Jun 06, 2020 9:33 am 
Offline
Newbie

Joined: Sat Apr 25, 2020 12:58 pm
Posts: 75
(I have learned so much from the people here, it is my turn to give back)

I wanted to know if the VIN is stored inside the EEPROM IC that is next to the SH7058/SH7059 processor.
Some EEPROM dumps had VINs and others didn't.

Since my area of focus is the "newer" ECUs I got out my 2011 G37 ECU (SH7059) and looked at the EEPROM.
It is a "95320", a 4KB EEPROM made by ST Micro and it uses the (very common) Serial Peripheral Interface (SPI) bus.
The Arduino Nano and Uno have built in hardware support for the SPI bus, so no "bit banging" would be needed.

In looking at the datasheet, the pinout and commands are the same as the AT25HP512 serial EEPROM.
This allowed me to use the tutorial and code shown here: https://www.arduino.cc/en/Tutorial/SPIEEPROM

I wired it up, using an $2 Arduino Nano, an 8 pin IC clamp (remove the conformal coating on pins) and a few wires:
Attachment:
ECU_EPROM_Reader_sm.jpg


The program needed a few small changes, since the example only read the first 256 bytes... so I changed it to read out 0 - 4095 bytes.
Then I compiled the code (very easy to do with the Arduino IDE) and sent it to the Arduino Nano.

After it reads the EEPROM, it simply prints it on the display (aka serial monitor that is part of the Arduino IDE)

To get the binary file, I simply copy the "hex ascii" code and use a "hex ascii to bin" converter, like this one:
https://tomeko.net/online_tools/hex_to_file.php?lang=en

Just paste in the hex ascii, click on covert and download the binary file.

I was wasn't sure if there would be proper communication with the EEPROM since the SPI bus is connected to the SH7059, but it worked great on the 4 ECUs I have. You just need to make sure the IC clip is making good contact with all the pins.


Attached is the EEPROM dump:
Attachment:
1NX7B_EEPROM_2011_G37x.BIN


By the way, the VIN is in all 4 EEPROM dumps :)


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: How To: Reading the ECU EEPROM with Arduino
PostPosted: Tue Feb 09, 2021 8:27 am 
Offline
Newbie

Joined: Tue Feb 09, 2021 8:14 am
Posts: 1
Can you pls share your code with me? Big thanks


Top
 Profile  
 
 Post subject: Re: How To: Reading the ECU EEPROM with Arduino
PostPosted: Sun Jul 11, 2021 1:21 pm 
Offline
Newbie

Joined: Sat Apr 25, 2020 12:58 pm
Posts: 75
ases wrote:
Can you pls share your code with me? Big thanks

Ummmm.... The link to the code is in the prevoius post.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl