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
  • Hi Erwin,

    concerning the ON-CHIP FLASH, ensure
    you have set under "Options for Target" ->
    "Target" use on-chip ROM(128KB)
    use on-chip XRAM (0xC000-0xCFFF)

    If no external RAM or other memory the
    external memory entrys should be empty.
    Than under Linker -> "L166 Misc" only
    do the entry for the vector table as 0xC00000
    .
    Thats all.
    But please check your startup file to be sure EBC is enabled.
    At older versions the userstack was placed in NCODE area, so have look at M66-map file
    and use the USERSTACKDPP3 directive (C166 manual) if necessary.
    For the memtool check out you have selected the right target ( differences between step AA,AB ... )

    Stefan

Reply
  • Hi Erwin,

    concerning the ON-CHIP FLASH, ensure
    you have set under "Options for Target" ->
    "Target" use on-chip ROM(128KB)
    use on-chip XRAM (0xC000-0xCFFF)

    If no external RAM or other memory the
    external memory entrys should be empty.
    Than under Linker -> "L166 Misc" only
    do the entry for the vector table as 0xC00000
    .
    Thats all.
    But please check your startup file to be sure EBC is enabled.
    At older versions the userstack was placed in NCODE area, so have look at M66-map file
    and use the USERSTACKDPP3 directive (C166 manual) if necessary.
    For the memtool check out you have selected the right target ( differences between step AA,AB ... )

    Stefan

Children
More questions in this forum