I want to initialize SRAM which has ECC error using e_stw. Because I want to clear a few bytes of Ram memory.
But there was a Exception when I used e_stw.
e_lis r5, SOME_RAM_SIZE@h # Initialize r5 to size of SRAM (Bytes)
e_or2i r5, SOME_RAM_SIZE@l
# e_srwi r5, r5, 0x6
# Set Base Address of the internal SRAM
e_lis r5, SOME_RAM_START@h
e_or2i r5, SOME_RAM_START@l
Can't I use e_stw to init SRAM?
I can't, how to initialize a few bytes of SRAM ? (not 64 bytes using e_stmw)
I resolved it.
I used e_stmw and r30/r31 register.
I set the resolution of clearing size as 8 bytes.
Thank you anyway.