thanks Fiona for utility.
it helped me to recover 6 Mk20DX256m10 board.
initially it looked like mass erase disabled but with this utility i got MDM-AP status register = 34.
what this means is
- mass erase is enabled
- secured
also when i connected scope probe to reset pin. reset pin was not high. removed 0.1 uF capacitor on reset pin and rechecked reset pin.
i can see waveform with approx 5 uS on and 50 uS off time. this was observed on all the boards
steps to recover kinetis:
1. connect to mcu using this utility by selecting appropriate algorithm for device and around 1 MHz communication frequency.
(i have used multilink and cyclonemax)
2. you should get MDM-AP status register content.
3. if as per MDM-AP mass erase is not disabled, connect reset pin to ground.
4. try to reset mcu form utility or close and rerun the utility.
5. now MDM-AP status will change to 32. now you can release reset pin.
6. i have used codewarrior "simple flash programmer" to erase mcu.
7. got erase success, So mcu recovered :smileyhappy:
i have tried erase from this utility but looks it is not happening from here.