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:
https://community.freescale.com/message/559771
Here you can example procedure how to use eTPU PWM function, step by step:
http://cache.freescale.com/files/soft_dev_tools/doc/app_note/AN4687.pdf
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: