Hello,
Now, I reserved some space in RAM without Initialization during startup. But when that space is filled with value(e.g. memset) after startup, ECU throw ivor2(data storage) interrupt.
Hmm, on write? or on read modify write?
Because ECC syndrome is written on write. So if you have uninitialized RAM after power on reset and try to read it it will throw you exception on read as you ECC syndrome does not match data.
Usually you create branch in startup testing the reset source. On power on reset you initialize whole RAM, and on other resets you exclude RAM which has to be preserved.
And how to study c language and assemble language hybird programming for the ECU?
Not sure what you are looking for. If you are looking for ASM code injection into C file, you have to check your compiler documentation.
Usually there is #pragma or any macro for that purpose.
Best regards,
Peter