EVGA

Helpful ReplyHot!My Arduino-based RAM SPD reader/writer (free and open source)

Page: < 12345 > Showing page 4 of 5
Author
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/06/28 02:35:28 (permalink)
mingu2001
P.S. It would be great if a self-check sort of a function was implemented, so we could more easily diagnose a problem on the board.
Also, it would be helpful if I could know which test the program failed to validate, just for debug reasons.



Great suggestion!
 
I added a self test function, which will test the device's basic i2c bus and pin control functionality and report any issues.
The test can be invoked from within Arduino IDE Serial Monitor by sending a "?" command.
 
https://github.com/1a2m3/...re/SpdReaderWriter.ino
 

 

 
#91
mingu2001
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2017/07/30 01:51:46
  • Status: offline
  • Ribbons : 0
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/06/29 02:40:09 (permalink)
a213m
mingu2001
P.S. It would be great if a self-check sort of a function was implemented, so we could more easily diagnose a problem on the board.
Also, it would be helpful if I could know which test the program failed to validate, just for debug reasons.



Great suggestion!
 
I added a self test function, which will test the device's basic i2c bus and pin control functionality and report any issues.
The test can be invoked from within Arduino IDE Serial Monitor by sending a "?" command.
 

 

 

 




Thanks!
I've tested the nano that didn't work before with the new firmware's self test function. (Obviously, I removed the I2C Test since I have the DRAM connected to the my pro micro.)
 
Now I know either
1. I've borked the optocouplers somehow (probably fed 9v at some point by accident then..? idk :P)
or 2. The analog pins on the nano are dead. Like, dead dead. RIP..
 
Well, I'm still very satisfied with the project. I've gotten my ram to have XMP of 3200 CL16 to 3733 CL16.
Even with better timings than the 3200 default one, and even on Hynix CJR die. (Lucky for Hynix die I guess..?)
 
Anyways, thanks for the support, and implementation of my suggestion!
#92
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/07/11 03:11:21 (permalink)
New version: 20210710
  • Added pin control self-check to during connection (issues will appear in log if found, otherwise you won't see any new messages), per mingu2001's request
  • Added "copy all lines" RMB menu option to the log viewer
  • New icons and artwork
#93
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/08/17 21:27:56 (permalink)
New version with a couple of fixes: 20210817
  • Fixed RSWP dialog window reapplying last RSWP settings when closing window
  • Fixed crash when manually overriding RAM type with unsupported RAM type
#94
Peredast
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2021/08/21 09:44:58
  • Status: offline
  • Ribbons : 0
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/08/21 10:12:25 (permalink)
Good day! Thank you for great project!
Can you help me to fix RSWP? 
Should I connect SA0SW on arduino and SA0 on EEPROM?
if i connect it, selftest shows "9v control inactive" and RSWP is gray
If i not connect, selftest shows "SA0 control inactive" and RSWP active but don't work.
 
#95
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/08/21 13:37:28 (permalink)
SA0 control isn't required for RSWP.
 
What exactly doesn't work? Enter "9 1" (no quotes) in Arduino serial monitor and check if you have 9V present on SA0 pin on DIMM/EEPROM.
#96
Peredast
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2021/08/21 09:44:58
  • Status: offline
  • Ribbons : 0
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/08/21 20:28:46 (permalink)
a213m
What exactly doesn't work?

after pressing "clear RSWP", i'm check RSWP and it always "enable"
When i try to write modified spd to EEPROM, it stops on trying to write modified bite with error "Could not write to offset 0x.."
#97
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/08/21 20:34:41 (permalink)
Does reading work? How did you connect RAM to Arduino? Via a DIMM adapter, DIMM slot, or soldered directly to a motherboard?
 
After you click "Clear RSWP", what message is displayed?
 
A photo of your device would help diagnose further.
#98
Peredast
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2021/08/21 09:44:58
  • Status: offline
  • Ribbons : 0
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/08/21 23:01:42 (permalink)
a213m
Does reading work? How did you connect RAM to Arduino? Via a DIMM adapter, DIMM slot, or soldered directly to a motherboard?
 
After you click "Clear RSWP", what message is displayed?
 
A photo of your device would help diagnose further.


Sorry, my mistake.
I used 78 pin for GND as on your photo, but it not work wor me.
Than i changed it for another pin (131) and it work!
Thanks
 
#99
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/10/10 03:19:09 (permalink)
New version with a minor fix: 20211010
  • Fixed hanging that occurred if the device was disconnected during long EEPROM operations (read/write/verify)
(Only the DLL is updated, the EXE is unchanged, thus you'll see a mix of old and new files).
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/11/03 02:06:02 (permalink)
New version 20211103 with lots of performance improvements and feature updates
 

GUI

  • Fixed "Select I2C address" dialog window reapplying last selected I2C address when closing window
  • Fixed "Override RAM type" dialog window reapplying last selected RAM type when closing window
  • Redesigned "Set RSWP" and "Check RSWP" windows for future RAM support
  • Fixed screenshot button capturing its tooltip and dropdown menu
  • Fixed high memory usage spikes when resizing or moving window
  • Added Thaiphoon Burner plain text report clipboard import

Firmware

  • Improved reading and writing performance
  • Added automatic RSWP support detection
  • Added automatic DDR4 detection
 
Please note, the firmware configuration file is updated, SA0 and SA2 controls are no longer there, and pin A0, which was used to control optional SA0 state, is now by default assigned to a different function for future RAM support.
If your device uses pin A0 to control SA0 state, either disconnect it, or just change the value of OFF_SW to an unused pin.
post edited by a213m - 2021/11/03 02:46:15
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/11/05 01:07:07 (permalink)
New version with important fixes and minor UI fix: 20211105
 

GUI

  • Fixed log tab title not clearing counter when disabling log entries counter
  • Fixed partial page writes to pre-DDR4 EEPROMs
  • Fixed incorrect PSWP identification

Firmware

  • Fixed device name assignment
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/11/11 23:45:29 (permalink)
New version with performance, features, and cosmetic updates: 20211111

GUI

Firmware

  • Added option to set I2C clock
  • Improved SA1 test reliability
post edited by a213m - 2021/11/11 23:47:50
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/11/19 23:49:31 (permalink)
New version: 20211119
 

GUI

  • Fixed some option items not highlighting in settings window after being edited
  • Fixed some groupboxes not resizing when settings window is resized
  • Fixed incorrect I2C clock reporting upon initial connection
  • Added part number identification for all RAM types
  • Integrated firmware (Help > Firmware update...)

Firmware

  • Added factory reset settings command
Atter1884
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2021/11/26 00:50:58
  • Status: offline
  • Ribbons : 0
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/11/26 01:09:18 (permalink)
Dear a213m,
 
I've found your project and it looks amazing! Super job!
I have a few question though:
1. Would your project work with DDR3 (1.35V)/DDR4 (1.2V) SODIMM modules?
I would buy a SODIMM to DIMM adapter to make the soldering. Something like this:
2. You mentioned that "DDR4 does not support permanent software write protection". This means all DDR4 modules' SPD can be written with your tool, including SODIMM?
 
Thanks in advance and keep up the good work!
 
Regards,
Atter
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/11/26 01:36:46 (permalink)
Hi,
 
1. The program/device interface with SPD EEPROMs via SDA, SCL, SA#, VDDSPD, and VSA lines which are present on all DIMM modules, so all kinds of DIMMs up to DDR4 are currently supported. Full size DIMMs and SODIMMs use the same EEPROM chips, so there's no difference for the program what module types they are used on. An adapter is needed, as DIMM and SODIMM pinouts differ.
 
(You link wasn't posted, but if you meant to buy something like this, then yes, this will work: https://m.media-amazon.com/images/I/613ts61Ts9L._AC_SL1000_.jpg)
 
2. If the DDR4 EEPROM isn't write protected, then yes, it can be written to, but if it is, the protection can be removed with the program to enable writing. DDR4 not supporting permanent write protection is per Jedec's specification. EEPROMs used on DDR3 and prior could be reversibly or permanently write protected via a software command, but starting from DDR4 software permanent write protection was removed, so DDR4 of any type only supports reversible write protection.
Atter1884
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2021/11/26 00:50:58
  • Status: offline
  • Ribbons : 0
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/11/26 01:46:29 (permalink)
Hi!
 
Thanks for the quick reply!
Yes, the link was removed... I found (and linked) the same adapter that you've linked. :)
 
Everything is clear for now, i will get the tools and build the device.
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/01 01:06:14 (permalink)
New version: 20211201
 

GUI

  • Fixed CRC status appearing when SPD data is not loaded
  • Improved performance

Firmware

  • Fixed restore defaults command not resetting I2C clock settings
  • Fixed DDR4 detection compatibility
  • Improved RSWP reliability
 
Just like the last time, firmware files are integrated into the main program, click "Help > Firmware upgrade..." to extract them.
Also the binaries are compiled for .NET 4.0, so separate XP version is not included as the program will work in all version of Windows.
Cool GTX
EVGA Forum Moderator
  • Total Posts : 28661
  • Reward points : 0
  • Joined: 2010/12/12 14:22:25
  • Location: Folding for the Greater Good
  • Status: offline
  • Ribbons : 120
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/01 09:31:33 (permalink)
thanks for keeping your updates rolling

Learn your way around the EVGA Forums, Rules & limits on new accounts Ultimate Self-Starter Thread For New Members I am a Volunteer Moderator not an EVGA employee
RTX Project EVGA X99 FTWK 2xEVGA2080Ti EVGA1200P2  Nibbler EVGA X99 Classified EVGA 3080Ti FTW3 Ultra 1600P2
Save $$$ @EVGA.com use ANYONE's Associate code @ checkout --> Even if your an Associate You can SAVE (on most items) 3% - 10% Depends on item

a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/02 03:16:31 (permalink)
Minor update: 20211202
 

GUI

  • Includes updated firmware (see below)

Firmware

  • Updated Read RSWP in compliance with Jedec EE1002(A) and TSE2002av definitions
 
This update is for DDR3 and older RAM, which requires VHV on SA0 to read RSWP status.
Other than that, there are no changes.
 
Edit: download again, I forgot to update version string in settings, everything is fine now.
post edited by a213m - 2021/12/02 04:11:03
Atter1884
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2021/11/26 00:50:58
  • Status: offline
  • Ribbons : 0
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/03 00:04:13 (permalink)
Hi!
 
The tool gets better and better! Keep up the good work!
 
I ordered some parts to create a PCB for DDR3 and DDR4 memory modules and i found something:
DDR3-SODIMM doesn't have SA2 pin on the connector side. Is it required for something or the tool will work without it?
 
Thanks!
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/03 00:16:02 (permalink)
Don't worry about SA2, since its configuration isn't required for any operations. SODIMM modules already have SA2 pin wired to ground on the PCB since they are meant to be used in systems where no more than 4 modules may be present.
 
 
Atter1884
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2021/11/26 00:50:58
  • Status: offline
  • Ribbons : 0
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/03 01:37:37 (permalink)
Great, thanks for the info!
rekeyed
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2021/12/04 14:25:35
  • Status: offline
  • Ribbons : 0
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/04 15:02:15 (permalink)
Hi a213m, amazing project, thank you!
 
While waiting DDR4 SO-DIMM adapter, I tried reading/writing DDR3 modules.
But in event log I found error:
COM10: DDR3-SDRAM RSWP disabledl; SA1 control unavaliable

When I connected to device with terminal and tried to change SA1 manually, SA1 works well. It is serial data dump (hex bytes):
21 73 01 70 01 01 01 73 04 70 01 00 01 73 01
Red bytes received from device, green - written to device. Voltage on SA1 pin changes accordingly.
What could be the problem?
 
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/04 15:40:01 (permalink)
The data dump suggest everything is assembled properly.
 
Enter 'f' (0x66) and show me the response
then enter 'e' (0x65) and show me the response
 
What Arduino board are you using?
rekeyed
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2021/12/04 14:25:35
  • Status: offline
  • Ribbons : 0
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/04 15:55:39 (permalink)
21 66 10 65 10
Arduino Nano (Mega328p)
 
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/04 16:14:32 (permalink)
Ok, I see. It fails to perform SA1 test in rswpSupportTest() function.
 
First, enter this command in terminal:
 
70 01 00 73 70 01 01 73 70 01 00 73 70 01 01 73 70 01 00 73

 
if the output only contains 0x01's, then try adding line "delay(10)" after digitalWrite(pin, state); on line 988.
 
https://github.com/1a2m3/SPD-Reader-Writer/blob/54f283f487492ce1e26f7d2405f8b7004ce95654/firmware/SpdReaderWriter.ino#L988
 
The whole function should look like this:
 

bool setConfigPin(uint8_t pin, bool state) {
  digitalWrite(pin, state);
  delay(10);
  return digitalRead(pin) == state;
}

 
Then try again and report the result.
rekeyed
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2021/12/04 14:25:35
  • Status: offline
  • Ribbons : 0
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/04 16:42:01 (permalink)
21 70 01 00 73 70 01 01 73 70 01 00 73 70 01 01 73 70 01 00 73 01 01 01 04 01 04 01 04 01 04
then again 73 01
seems to be, falling SA1 is too slow. so I added 10K resistor from SA1 to GND, now device works well.
 
tested adding delay to setConfigPin function, also works without additional resistor.
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/04 17:40:38 (permalink)
Thanks for feedback, I'll include a fix in the next release.
a213m
SSC Member
  • Total Posts : 798
  • Reward points : 0
  • Joined: 2006/02/08 11:10:24
  • Location: πŸ‡¨πŸ‡¦
  • Status: offline
  • Ribbons : 19
Re: Would anyone be interested in open source and free DDR4 SPD reader/writer? 2021/12/06 22:53:48 (permalink)
New version: 20211206

GUI

  • Check RSWP and Set RSWP windows properly centered for all supported RAM types
  • Check RSWP and Set RSWP windows standardized for all supported RAM types
  • Improved automatic EEPROM SPD size detection
  • Added dialog box result after PSWP operation
  • Removed redundant "Set RAM type" option

Firmware

  • Enforced hardware support
  • Improved RSWP support
  • Improved PSWP support
  • Improved pin controls
 
Page: < 12345 > Showing page 4 of 5
Jump to:
  • Back to Mobile