cancel
Showing results for 
Search instead for 
Did you mean: 

Changing a define leads to 800 differences in the .bin

DanieleCattaneo
Visitor

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!

2 REPLIES 2
mbarg.1
Senior III

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

Andrew Neil
Super User

@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!

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.