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

Library CODE area problem

My code supposed to use ECODE memory region only.
I've noticed that several issues are related to this requirement:
- placing "code" directive in C places the function in CODE only area.
- if code uses library ( not explicitly specified ) the code is placed
in CODE area. This feature violates my requirements.

Do You know how to places the library code in ECODE area?

I'm using library long multiplication function ( input parameters
in registers, as well as output).
Does anyone have any hint for MUL function in KEIL A51 or long numbers (32 bits) ?
Regards
Robert

Parents Reply Children
  • it's not a problem with name ECODE.
    it's a problem with name CODE.
    Keil takes assumption, that code must reside in CODE are only.
    This limitation brings severe consequences. Library must be in CODE
    area, which location is taken from the Uranium.
    If I name my area BIGBANG the code compile, but the final hex will be broken
    into two parts:
    CODE
    BIGBANG
    This mean code compiles without errors but crash afterwards for no reason