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

Problems with Code in internal and external Flash

I'am working on a custom board, based on XC167CI with external flash AMD 29F400 wired to CS0 and we are using Keil uVision9 V3.02 ULINK USB. So we have internal memory at 0xC00000 and external one at 0x00000.
I have to split the code in internal and external code because of speed performance and size.

The XC167 starts external.
Most of the code is locate in the external flash, only fast calculations are in internal memory.
The flash-operation with Keil seems to be OK, but during the verify a problem occurs.

Contents missmatch at: 01D080H (Flash=FFH Required=0DH)! 

I have checked th memory and there is really a FFH at this address. The M66-file shows Code there!!
Does Keil abort the flash-operation???

If I flash the Code only in the external ROM, it works fine.

Any ideas???
Thanks
Alex

Parents
  • Here are some lines from my map file:

    012712H   0129E1H   0002D0H   CODE  REL   WORD   ---  ---  PUBL  FCODE   ?C_LIB_CODE
    0129E2H   012BF3H   000212H   CODE  REL   WORD   ---  ---  PUBL  FCODE   ?PR?TRACE
    012BF4H   012D8BH   000198H   CODE  REL   WORD   ---  ---  PUBL  FCODE   ?PR?VARIABLEN
    300000H   3001FFH   000200H   DATA  REL   WORD   ---    1  PUBL  NDATA   ?C_USERSTACK
    300200H   30021FH   000020H   DATA  REL   WORD   ---    1  PUBL  NDATA   ?C_USERSTACK1
    300220H   30023FH   000020H   DATA  REL   WORD   ---    1  PUBL  NDATA   ?C_USERSTACK2
    

    The error is:
    Contents missmatch at: 012D80H (Falsh=FFH Required=3DH)
    

    The error occurs in the "variablen"-file, but if I change the last file the error is still there.
    I think the problem is not a file, because I can load every file at the end of the external code and nothing works.

Reply
  • Here are some lines from my map file:

    012712H   0129E1H   0002D0H   CODE  REL   WORD   ---  ---  PUBL  FCODE   ?C_LIB_CODE
    0129E2H   012BF3H   000212H   CODE  REL   WORD   ---  ---  PUBL  FCODE   ?PR?TRACE
    012BF4H   012D8BH   000198H   CODE  REL   WORD   ---  ---  PUBL  FCODE   ?PR?VARIABLEN
    300000H   3001FFH   000200H   DATA  REL   WORD   ---    1  PUBL  NDATA   ?C_USERSTACK
    300200H   30021FH   000020H   DATA  REL   WORD   ---    1  PUBL  NDATA   ?C_USERSTACK1
    300220H   30023FH   000020H   DATA  REL   WORD   ---    1  PUBL  NDATA   ?C_USERSTACK2
    

    The error is:
    Contents missmatch at: 012D80H (Falsh=FFH Required=3DH)
    

    The error occurs in the "variablen"-file, but if I change the last file the error is still there.
    I think the problem is not a file, because I can load every file at the end of the external code and nothing works.

Children
No data