It is not stable that to use usbdm debug MK60DN512 in cw10.6.

cancel
Showing results for 
Search instead for 
Did you mean: 

It is not stable that to use usbdm debug MK60DN512 in cw10.6.

Jump to solution
645 Views
wangbaode
Contributor IV

dear pgo,

It is not stable that to use usbdm debug MK60DN512 in cw10.6. The error is in pic1.

but I can program it through arm programmer . in kds ,it alse can work.

bye

Tags (2)
0 Kudos
1 Solution
332 Views
pgo
Senior Contributor V

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.

pastedImage_1.png

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

View solution in original post

0 Kudos
2 Replies
333 Views
pgo
Senior Contributor V

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.

pastedImage_1.png

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

0 Kudos
332 Views
wangbaode
Contributor IV

Hi pgo,

Thanks for your reply. According to your suggest, It works well .

bye

0 Kudos