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

scanf error when code is > 64K

Hallo,

I face another problem:
I am using Cx51 Ver 7.06
I am using Philips/89C669
I am using ROM(HUGE) (code size maybe > 64K)
I use number of sscanf functions and
until now everything was fine.
Now my code size actually grew more than
64K and then I get this error:

*** ERROR L121: IMPROPER FIXUP
    MODULE:  C:\KEIL\C51\LIB\CS51FPS.LIB (SCANF)
    SEGMENT: ?PR?SCANF?SCANF
    OFFSET:  000043H
If I take out some lines in the program
(not sscanf, but any other lines),
such that code is again < 64K, then I get
no error. Which means the error is not
due to sscanf function but due to code
size (It is my guess :)
What should I do now? I am not possible
to reduce any code. I am still not completely
written the prgram, which means the code
size will increase even more.
mk

Parents
  • Are you sure you have the configuration of the tools set up to use the extended (MX) feature of the architecture to have more than 64k of code? Does your startup code set also whatever bits are necessary to enable this mode in the processor?

    It seems perhaps a little unusual that you are using the small memory model with all that code. Of course, you may not need much data space, but just a lot of code.

Reply
  • Are you sure you have the configuration of the tools set up to use the extended (MX) feature of the architecture to have more than 64k of code? Does your startup code set also whatever bits are necessary to enable this mode in the processor?

    It seems perhaps a little unusual that you are using the small memory model with all that code. Of course, you may not need much data space, but just a lot of code.

Children