ARM

Post Reply
Gwe89
Pro
Posts: 332
Joined: 09 Feb 2019, 21:21

ARM

Post by Gwe89 »

Is there any way to read the flash from an ARM STM32F105 and write it back
Go4IT
Pro
Posts: 967
Joined: 08 Feb 2019, 12:25

Re: ARM

Post by Go4IT »

Based on what the chip give you access to :-)
Usually, every MCU with own Flash is ment to be erased and programmed only. This is because normally there is no need to read back it's contents, as a developer can always reprogram it.
Most Chipvendors (STM also) have debug-adapters and software to do all those stuff.
And also every MCU has so called "fuses" which may prevent a readback by protocol, even if it exist.
So if the chip is read-protected, there is no way of getting the content in an usual way (even JTAG). You need some security holes to do so. Maybe in hardware maybe in the running program. One could be that you are able to store an own program in the MCUs SRAM which then reads the Flash contents and send it byte by byte out to some common interface (USB, serial, JTAG, an IO-Port, whatever).

To answer you question as short as you wrote it: "NO, there is no easy way to do".
DGAlexandru
Pro
Posts: 364
Joined: 04 Aug 2019, 22:47

Re: ARM

Post by DGAlexandru »

Gwe89 wrote: 28 Sep 2019, 14:24 Is there any way to read the flash from an ARM STM32F105 and write it back
I've broken 2 UC DS clones tring to read their firmware :D
What I have started doing is developing my own code to have that STM behave like an UC DS - well at least be recognised by Windows drivers as one.
Next step is making them comunicate with the clone version of software. I can get data to them, but didn't manage to send something back.
If I'm following examples of STM to make it work as a USB to COM adapter it works.

I'm trying to makke UC DS think that I have something real and use its firmware update procedure to get the needed code :roll:
User avatar
Stevebe
Pro
Posts: 258
Joined: 08 Feb 2019, 12:28

Re: ARM

Post by Stevebe »

That would be super helpful I have broken one trying,
Digimod
Post Reply