Forum : ST7/STM8
Post Information | Post |
---|---|
October 14, 2013 - 11:53am
|
I have been testing a code with global and local variables as usual. In particular this featured a variable ... While trying to improve my application, I happened to change the definition of pippo to ... Investigating about the issue I found this inversion (and consequently the different behaviour of the code) to happen with Pippo's length>31. Now I suspect this myght happen because the compiler is not able to properly resolve some addresses it translates to absolute, but I can't understand why. Anyone has had the same issue? Looking forward to suggestions about how to solve it. |
Without explicit rules, the linker locates the segment in any order.
You cannot except the same order if you link your project twice.
Where is located you pippo variable? Page0 or data? Local or global? In pfc_data.c or adc.c?
Regards,
Stéphane