Sounds like you need a larger memory model (move memory stack to long range), personally with the size of micro you are using I would choose a hardware stack model over memory stack.
I'm using the ST72F521R9T. I used the large model (''+modml''). it has been linked,but it doesn't work in run time. I tested same software which is compiled in all models. Only ''+modml'' is cruched in run-time. why ? One more strange thing(COSMIC): I compiled for example memory medum''+modmm'',and I expect to get an error if it links with lib file ''libis.st7''.(should link with ''libimm.st7''). howcome? Thanks atz
You should compile with +modms model according to the figures shown in your error messages. Locals are in page zero and globals outside. Loading a stack model library on a static model application will produce errors only if functions from the library are actually called by the application and if they have more than one argument.