Skip to main content
ÖÇoba.1
Associate
Nov 11, 2020 2:40 PM UTC
Question

Stm32 code reading

I have a Stm32 which was coded by my friend. I want to reach this code and I want to change some thing. How can I do it.(note: code doesnt have reading protection)

This topic has been closed for replies.

5 replies

Peter BENSCH
ST Technical Moderator
Nov 11, 2020 4:32 PM UTC

This will depend on your time you want to spent and other resources, as changing a binary or even decompiling a binary file into a readable form is an extremely demanding task.

Good luck!

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
ÖÇoba.1
ÖÇoba.1Author
Associate
Nov 11, 2020 8:31 PM UTC

İt is easy for pic programing or others . Are you pozitive that there is not any way to read stm code .

Tesla DeLorean
Guru
Nov 11, 2020 8:54 PM UTC

Read it how?

The STM32 Cube Programmer can easily dump the code to a .BIN or .HEX

What you do after that is up to you.

You can disassemble and patch it as you would most any other MCU code.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ÖÇoba.1
ÖÇoba.1Author
Associate
Nov 11, 2020 10:29 PM UTC

Thank you for helping. By the way is there any example or source to take the Hex code with Cube programmer ?

TDK
Nov 11, 2020 10:37 PM UTC

> I have a Stm32 which was coded by my friend. I want to reach this code and I want to change some thing. How can I do it.

The simplest solution is to ask your friend for the source code and change it there.

"If you feel a post has answered your question, please click ""Accept as Solution""."