Skip to main content
MBirz.1
Associate
September 24, 2021
Solved

Compare ONLINE<->OFFLINE project

  • September 24, 2021
  • 2 replies
  • 1333 views

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.

This topic has been closed for replies.
Best answer by Peter BENSCH

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

2 replies

Peter BENSCH
Peter BENSCHBest answer
Technical Moderator
September 24, 2021

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

MBirz.1
MBirz.1Author
Associate
September 28, 2021

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