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

uVision2 Linker, memory for ICODE, FCODE...

Hi..
I use an infineon xc167ci without module. I program it using infineon memtool. I can erase the flash, but I cannot program it. On uVision2 "OPTIONS FOR TAGRGET TARGET1=>L166MISC" there is a linker control string determing how memory of the xc167ci is used. The memory location for program memory is 0xC00000 -> 0xC1FFFF(Datasheet), but uVision always writes some code to 0x018000 -> 0x01803B. I can see that in memtool. The linker control string allows e.g. FCODE, FCONST, HCONST,... to write something to this area. But memtool says error: check memory mapping. What do I have to do? Does that have anything to do with startup stuff, for I use no minimodul, so maybe there's something wrong with pu- or pd-resistors.

Parents
  • Mhmm,

    did you set small memory model for your target ?
    I wonder that you have FCODE - that
    indicates that your program is an area located where normally a external memory would be.
    If you do it right than you will see
    NCODE ?PR?test.

    Userstack is ok.

    Otherwise I need your map file or
    some more informations.

    Stefan

Reply
  • Mhmm,

    did you set small memory model for your target ?
    I wonder that you have FCODE - that
    indicates that your program is an area located where normally a external memory would be.
    If you do it right than you will see
    NCODE ?PR?test.

    Userstack is ok.

    Otherwise I need your map file or
    some more informations.

    Stefan

Children