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

code size limitation to 64k?

Hi

The problem reported in '6286 sprintf malfunction?' seems to be a more general problem: I guess that I can't have a code size more than 64k. How to break this limit?

I have read, that the 80C166 does not support the HLarge memory model, is this correct? Why this limitation? Why does the IDE/compiler/linker not complain when selecting this memory model? Which libraries (C167T.lib...C167HL.lib) are supported by the 80C166?

Thanks for any response

  • I have checked the user manual for SAB 80C166. Under topic 4.2 External memory it says:

    80C166 provides up to 4-64Kbytes of external ROM and/or RAM (total 256 Kbytes). The external memory can be used for both code and data storage. If the SAB 80C166 segmentation mode is disabled (SGTDIS bit in the SYSCON register contains a '1'), all external memory accesses are restricted to segment 0 only.

    Have you checked this?

    Franc