vdudouyt / stm8flash

program your stm8 devices with SWIM/stlinkv(1,2)
GNU General Public License v2.0
402 stars 182 forks source link

global variables in the code cause programming error #120

Closed Yoda49 closed 2 years ago

Yoda49 commented 5 years ago

When i put some global variables in code - stm8flash show error "Writing Intel hex file Address XXXX is out of range at line XX.

Same error causes with static variables in functions.

TG9541 commented 4 years ago

@Yoda49: are you sure you're looking at the right spot? @vdudouyt: Valentin, I guess that the issue tracker needs some cleaning. I'd like to suggest you build a support community ;-)

spth commented 3 years ago

Without further information, there is nothing we can do here. I assume you write a program in C, compile it with SDCC for the STM8, then try to write the resulting .ihx file to an STM8 device? If yes, could you provide a minimal code sample, show how you invoke SDCC, which version of SDCC you use, the resulting .ihx file and tell us which device you are targeting using which stm8flash command line?