This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to define global variable or static variable in a function when develop a customized external loader?

Hi, I'm developing a customized flash memory programmer for our project. It is based on external loader examples available under the ST-LINK Utility / STM32CubeProgrammer ExternalLoader directory. We have to define a flag (global variable or static variable) to indicate whether some initialization has been done or not. But from some other forum, external loader project does not support global variable or interrupt definition. In fact from my debugging experience a static variable is always set to initial value even it is increased in every function call. Can someone give some detailed description or some other solution for this? Thanks in advance.