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

accesses to a structure in code space causes error

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?

Parents
  • Ah! The old read the manual routine. This is great; however, I have about 200 references to my structure, from 60 or so subroutines. This does not seem like a very user friendly solution. This may be what I have to do, .... doesn't mean I have to like it. I have never run into this problem before using the Keil compiler. I do embedded systems "stuff" (obviously) and it is very common to place structures in the code space.

    Thanks for the pointer.

Reply
  • Ah! The old read the manual routine. This is great; however, I have about 200 references to my structure, from 60 or so subroutines. This does not seem like a very user friendly solution. This may be what I have to do, .... doesn't mean I have to like it. I have never run into this problem before using the Keil compiler. I do embedded systems "stuff" (obviously) and it is very common to place structures in the code space.

    Thanks for the pointer.

Children