This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

flash ecc and ram ecc

Other Parts Discussed in Thread: HALCOGEN, TMS570LS20206

I have enable ram ECC,but when write RAM data,RAM ecc region's data all 0xaa.AND when I enable flash ECC,flash data all 0xaa too.I don't know why.I wish you can help me. THANKS.

  • Hi,

    Can you please confirm what device you are trying this on?

    Have you used Halcogen or some startup software to correctly initialize the system?

  • Sorry,I forgot .I use TMS570LS20206.I use KEIL4 and use keil4's startup.system initiaton file use halcogen .

    after systeminit(),I call  _coreEnableEventBusExport_(),and _coreEnableRamEcc_(), then enable RAM ecc control.

    then I run my program,I find out FROM 08400000 ,data are all 0xaa.

    for example
     export     _coreEnableEventBusExport_
       

    _coreEnableEventBusExport_

            mrc   p15, #0x00, r0,         c9, c12, #0x00
            orr   r0,  r0,    #0x10
            mcr   p15, #0x00, r0,         c9, c12, #0x00
            bx    lr

     export     _coreEnableRamEcc_
       

    _coreEnableRamEcc_

            mrc   p15, #0x00, r0,         c1, c0,  #0x01
            orr   r0,  r0,    #0x0C000000
            mcr   p15, #0x00, r0,         c1, c0,  #0x01
            bx    lr

    enable RAM ECC.

  • Zhangjie, are you calling _memoryInit_ as well?

    The 0xaa throughout the CPU RAM looks like the remnants of some memory test sequence. I just want to make sure that at the end of the init before you enabled ECC you initialized the memory back to 0s using MSINENA.

    It will help to have the full init sequence.

    For the flash have you already programmed the flash content with ECC and still observing the ECC to be 0xaa?

  • 1.I have called _memoryInit_ ,and after calling   _memoryInit_,memory data all 0,and ecc ram all 0x0c.But when my program run,after ram memory data change,the ECC RAM data to 0xaa. when I write to ram memory, need I  disable ram ecc?

    2.For the flash,when I enable cp15's ECC,Flash data to be 0xaa.I have programmed the flash ecc data  to flash ecc space.

  • Zhangjie,

    I would suggest you disabling ECC for the moment. First get your program running then we can come back to the ECC issue.

    Thanks and regards,

    Zhaohong

  • Zhangjie,

    I am closing this thread because we have not heard from you for over 4 weeks. You can start a new thread if you need more information.

    Thanks and regards,

    Zhaohong