I need to produce etpu ECC error and for that I need to intialize the etpu module. So anyone help me how to intialize and most important thing is unable to flash the code into etpu code memory
I would recommend to see following thread where I have summarized how to use eTPU:
Here you can example procedure how to use eTPU PWM function, step by step:
Because of your question it is quite important to mention that eTPU code is not being executed from flash but eTPU initialization routines copy the code from flash to eTPU RAM as you can see below:
Retrieving data ...