I have a large structure I wish to locate in code space. The problem appears to be the linker intreprets the accesses to this structure as a subroutine call. I get the error "Too many recursive calls to segment...". The structure works fine in XDATA. It also worked fine in code space until there were enough routines accessing the structure. Anyone have a clue?
You are correct. Read only is the goal. Can't do any re-mapping. I am using a Cygnal 8051 type processor. The flash and RAM are internal and fixed. By the way, I have looked high and low for a way to turn off the recursion errors. I have not found it yet. Thanks again.