Hi Wang,
I tested with a TWR-K60N512 which I hope would be similar to the hardware you are using.
The flash project worked OK.
For RAM target you may need to make sure the options are set correctly to avoid it erasing the Flash and trying to program the security. The flash should already contain a dummy program as well to avoid issues with resetting a blank device.
Let me know if this doesn't help.
FYI the last part of the log showing successful programming (download):
Starting 3rd party flash programming...
DiMemoryDownload() - DI_DNLD_TERMINATE - Programming memory image...
===========================================================
Programming target
Device = 'MK60DN512ZM10'
Trim, F=0, NVA@0000, clock@0000
Ram[1FFF0000...2000FFFF]
Erase=EraseNone
Security=default
Total bytes=5320
doRamWrites=T
Erase Time = 0.25 s, Speed = 20.60 kBytes/s, rc = 0
Programming & verifying Time = 0.40 s, Speed = 13.15 kBytes/s, rc = 0
DiMemoryDownload() - DI_DNLD_TERMINATE - Programming complete, rc = 0
DiMemoryDownload() - DI_DNLD_TERMINATE - Resetting target
bye
Hi Wang,
I tested with a TWR-K60N512 which I hope would be similar to the hardware you are using.
The flash project worked OK.
For RAM target you may need to make sure the options are set correctly to avoid it erasing the Flash and trying to program the security. The flash should already contain a dummy program as well to avoid issues with resetting a blank device.
Let me know if this doesn't help.
FYI the last part of the log showing successful programming (download):
Starting 3rd party flash programming...
DiMemoryDownload() - DI_DNLD_TERMINATE - Programming memory image...
===========================================================
Programming target
Device = 'MK60DN512ZM10'
Trim, F=0, NVA@0000, clock@0000
Ram[1FFF0000...2000FFFF]
Erase=EraseNone
Security=default
Total bytes=5320
doRamWrites=T
Erase Time = 0.25 s, Speed = 20.60 kBytes/s, rc = 0
Programming & verifying Time = 0.40 s, Speed = 13.15 kBytes/s, rc = 0
DiMemoryDownload() - DI_DNLD_TERMINATE - Programming complete, rc = 0
DiMemoryDownload() - DI_DNLD_TERMINATE - Resetting target
bye