Hi all,
I work with ST10F269 cpu for 5 years and used HCompact memory model all the time. Everything worked as intended. Now my project does not fit HCompact anymore and I've switched to HLarge. It compiles, but does not work. The same program which works fine when compiled with HCompact does not work (jumps to nowhere) if I compile it by changing ONLY the memory model setting to HLarge.
Could anybody give a direction please?
Thanks!
I thought the changing the memory model from HCompact to HLarge (at least) should not break it...
And in all likelihood it didn't. It was quite probably broken already, but just so happened to work nevertheless.
Less-than-careful use of pointer voodoo, particularly any casts that modify memory space qualifiers, will do that to your code rather easily. In the case at hand, since it's the size of function pointers you changed, the effected pointers would probably be function pointers.
Thank you, Hans-Bernhard!
Of course, you were right - functions' pointers were the culprits. 99% of code of the project is written in C, but a few functions in Assembly. One of them was hard-coded as NEAR... Now everything works.
Thanks again!