Skip to main content
Visitor II
May 21, 2025
Question

Changing a define leads to 800 differences in the .bin

  • May 21, 2025
  • 2 replies
  • 280 views

Hi everyone,

in my project i have a define that is used to change the "version" of the project.

the define is always used on one byte, for example #define VER 0x36, if I change it to 0x37 I see only 20 differences in the .bin (only where is used), but when I write 0x40 I find more than 800 differences. in those 800 differences I also find changes in the startup.

Has this ever happened to anyone? Do you have any suggestions?

Thanks in advance!

    This topic has been closed for replies.

    2 replies

    Graduate
    May 21, 2025

    No, tuhis behavioour is code related. To detect the problem use STM32CubeIde:

    Use SEARCH( ctrl+h) with VER as search item and flag single word - you will see where it is used and how it is used.

    Than, I suggest you spend some time with a dozen of the nice tutorials you can find on youtube ...

    Super User
    May 21, 2025

    @DanieleCattaneo wrote:

    Has this ever happened to anyone?


    Of course it's possible!

    If the define is used in 800 places, then changing it will affect 800 places!