All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Reading NAND/Flash directly from an MCU
PostPosted: August 3rd, 2022, 16:35 
Offline
User avatar

Joined: March 30th, 2016, 15:52
Posts: 27
Location: Washington, USA
Hey all.
Had a thought pop in my head recently and figured I'd ask around.

Most MCUs these days have flash (NAND/NOR) embedded in the IC for loading into RAM so the MCU can boot.

Has anyone thought about how it might be possible to access this NAND directly (say in an instance where the MCU fails and you can't debug via JTAG/SWD/etc.)

I am sure there is an embedded controller in most cases that links directly from the embedded CPU to the NAND structure itself.

What do you all think?


Top
 Profile  
 
 Post subject: Re: Reading NAND/Flash directly from an MCU
PostPosted: August 3rd, 2022, 17:08 
Offline

Joined: October 3rd, 2005, 0:40
Posts: 4311
Location: Hungary
such controllers usually use NOR flash as internal nonvolatile storage. This peripheral is attached to an internal bus through which the MCU accesses it. I highly doubt there's any other way to access these than these buses. So if the device is unable to work on its own, accessing the flash is extremely difficult.
Not completely impossible but there must be a very good reason for someone to chose this way...

pepe

_________________
Adatmentés - Data recovery


Top
 Profile  
 
 Post subject: Re: Reading NAND/Flash directly from an MCU
PostPosted: August 7th, 2022, 19:14 
Offline
User avatar

Joined: April 22nd, 2015, 20:32
Posts: 413
Location: Portugal
crackz0r wrote:
Hey all.
Had a thought pop in my head recently and figured I'd ask around.

Most MCUs these days have flash (NAND/NOR) embedded in the IC for loading into RAM so the MCU can boot.

Has anyone thought about how it might be possible to access this NAND directly (say in an instance where the MCU fails and you can't debug via JTAG/SWD/etc.)

I am sure there is an embedded controller in most cases that links directly from the embedded CPU to the NAND structure itself.

What do you all think?



It is completely possible. However you need to decap the processor, and then probe it very precisely. Not all labs have the hardware or knowledge to do it.

_________________
BTC Wallet - 3AoQPTBsz9PbfoanCx44Lw76Y2TwtKa1x5
Instagram https://www.instagram.com/datarecovery_morde.pt/


Top
 Profile  
 
 Post subject: Re: Reading NAND/Flash directly from an MCU
PostPosted: August 13th, 2022, 16:14 
Offline

Joined: August 13th, 2016, 17:10
Posts: 193
Location: Vienna, Austria
It might also be (and my personal guess is that it's quite likely), that the internal SPI bus is also brought outside, so that it can be flashed during production. But the pins might not be further connected on the PCB, so just desoldering the chip might give you access to the SPI bus. I guess the difficult thing is to actually find those SPI bus pins...


Top
 Profile  
 
 Post subject: Re: Reading NAND/Flash directly from an MCU
PostPosted: August 13th, 2022, 18:55 
Offline

Joined: October 3rd, 2005, 0:40
Posts: 4311
Location: Hungary
I haven't seen internal flash with SPI interface, it is usually directly connected to the internal buses with paralel interfaces. Not telling it can't exist just haven't seen so far.

pepe

_________________
Adatmentés - Data recovery


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 22 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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group