cancel
Showing results for 
Search instead for 
Did you mean: 

How to dump firmware from STM32F071

anchevaulslovesst
Associate

Hello, I am brand new to all of this flashing firmware and stuff, I'm trying to find a way to get the firmware from a shark AV751 I just took apart with an STM32F071 to possibly make a custom app and add mapping? I know I am jumping from step 1 to step 30 without knowing anything but I want to make this just not crash into every single thing in my house. Not asking for anyone to get or make firmware but I just need a way to get the firmware from the chip to decompile and modify to add mapping. Also I thought it would just be a fun experience to do this as my first experience with GPIO other than arduino etc. Any advice appreciated!

P.S. The chip really doesn't have any (identifier maybe?) at the end of the model number, i.e. STM32F071C8 printed on the chip.

5 REPLIES 5
Danish1
Lead II

ST microcontrollers have a “Code Readout Protection” feature. If the makers of the shark AV751 chose to enable the feature to protect their investment in writing the code then it will be very difficult for anyone to extract the code.

Having said that, even if you could extract the binary executable code, it would be very difficult to convert it into something an experienced human programmer could understand and modify.

Sorry to disappoint.

Ozone
Lead II

And to mention this, the Shark AV751 is a commercial product.
Trying to read the Flash contents is usually interpreted as punishable offense.

Primary paths would be serial port, or others, supported by the ROM based system loader (see AN2606, AN3155), or SWD debugger connection. Using things like STM32 Cube Programmer.

Chance are however that they have protected against end users and competitors from recovering the firmware. Perhaps look also a firmware update packages.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Ozone
Lead II

Otherwise, the objdump tool coming with basically all GCC-based toolchains will disassemble most common formats.
Though actual implementations differ.

Although to be honest code recovery takes a whole different class of tools..

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..