cancel
Showing results for 
Search instead for 
Did you mean: 

Can we get information about the type of microcontroller directly from file *.bin ? I would like to know when analyzing the file *.bin what type of microcontroller is it intended for?

Aher.1
Associate
 
5 REPLIES 5
Peter BENSCH
ST Employee

Welcome, @Aher.1​, to the community!

Unless you have programmed it somehow, the BIN format does not contain address information where to load it to, nor the type of STM32.

Regards

/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.

The vector table, instruction mix and entropy can be quite effective at narrowing down the targets.​

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

@Community member​ Although this is correct, it involves a lot of effort and would only give a rough indication of the respective family, if at all, don't you think?

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.

I'm not sure it takes a "Lot of Effort", it takes knowledge and leverage, and the latter is really easy to find, you're using computers. And the former's not got a lot of the "How Do I" crowd in it. It also helps not to waste effort, ie Edison Approach

Depending on what you're given to look at, visual inspection can eliminate a lot of CPU/MCU candidates. Now clearly some are going to be harder to deal with than others, but let's say a part's shipped in the billions, there's going to be resources and tools behind that. And a lot of repetition and duplication of basic templates, and libraries, by developers who are frequently lazy and under time pressure.

If you can see it's a Cortex-M, the family/model of STM32 could be refined to very few potential candidates, along with the compiler and rough optimization level. The power of elimination and deduction can get you a long way.

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

Regenerating source, now that's a whole other thing, and depends on the size and complexity, and how that scales, but most looking to just copy/clone something don't need to recover the source. The ones looking for the source, are the ones who lost it, or have no idea what they are doing.. Even in patent type work, things will pivot about the specifics, and those opening the door to discovery and access, and identifying failures to disclose.

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