2
\$\begingroup\$

How properly clone firmware from NAND Flash to a new one?

My NAND flash is MX30LF2G18AC and I use ELNEC programmer.

My steps were:

  1. I read the old one and saved the bin file.
  2. I fully erased the new one, and load the bin file then program.
  3. After soldering the new one, the device only stuck on the boot screen.

I read about bad blocks in NAND Flash, but I have no idea how I can handle that.

\$\endgroup\$
5
  • 1
    \$\begingroup\$ What's the device? How confident are you that the firmware isn't locked to something that you've changed?... like the Unique ID in the flash IC. Presumably the boot screen came from the flash, so it's "working" to some degree. \$\endgroup\$ Commented 19 hours ago
  • 1
    \$\begingroup\$ Why are you replacing the flash in the first place? Was the old one failing? If yes, can you be sure your readout was 100% correct? \$\endgroup\$ Commented 13 hours ago
  • \$\begingroup\$ The datasheet has interesting chapters (6.11 and 6.15) on feature beside pure data storage. Did you mirror these, too? \$\endgroup\$ Commented 13 hours ago
  • \$\begingroup\$ @jpa I replaced it because I had two patient monitors. Both were working, but one had a UART issue. I tested both flashes, and the issue disappeared when I installed the good one. I thought that cloning it would fix the device, but it is now stuck at the boot screen. \$\endgroup\$ Commented 2 hours ago
  • \$\begingroup\$ @thebusybee Unfortunately, I only read the working one, just like I usually do with EEPROM. \$\endgroup\$ Commented 2 hours ago

1 Answer 1

2
\$\begingroup\$

your new Flash is extremely unlikely to have bad blocks - it went through factory testing.

It's much more likely that you have a solder defect.

\$\endgroup\$
2
  • \$\begingroup\$ I tried both, and I think that if the soldering were bad, it wouldn’t even reach the boot screen. \$\endgroup\$ Commented 22 hours ago
  • \$\begingroup\$ @youssefnabil Why do you think so? You missed to name the device in your question, therefore we cannot do any research on it. It is quite possible that there is a boot loader in another location. \$\endgroup\$ Commented 13 hours ago

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.