cancel
Showing results for 
Search instead for 
Did you mean: 

Compare ONLINE<->OFFLINE project

MBirz.1
Associate

Dear experts,

I am new to STM32 world, so I apologize, if my question is inappropriate.

Is there a way how can I see the program differences between saved project (PC) and the one that is loaded in the MCU?

I'm using System Workbench IDE to program stm32f405rgt6.

MCU is integrated in working device, that needs some changes to be done. But I'm not sure if I have the correct revision of project.

Mostly I work with PLCs, and there is a possibility to compare program, that is loaded in CPU memory, and the software project in programming device. But this is totally different world.

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

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

If you have not activated RDP on the STM32, you can read out the flash content, e.g. as a BIN file, and then compare it with the PC version. Of course, you have to know what each version looks like. If necessary, you can store the version number as a fixed constant or as text in the code so that you can immediately recognize it in the BIN.

Good luck!

If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.

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

View solution in original post

2 REPLIES 2
Peter BENSCH
ST Employee

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

If you have not activated RDP on the STM32, you can read out the flash content, e.g. as a BIN file, and then compare it with the PC version. Of course, you have to know what each version looks like. If necessary, you can store the version number as a fixed constant or as text in the code so that you can immediately recognize it in the BIN.

Good luck!

If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.

/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.
MBirz.1
Associate

Thank you Peter for your answer. I can see, that there is no easy straight forward way how to compare offline and online projects.