This can have two reasons:
a) JTAG clock set to high. Use RTCK or 200KHz as JTAGclock for this device.
b) Project - Options - Utilities - ULINK Settings - RAMfor Algorithm incorrect. Should be Start: 0x40000000 Size: 0x800 for thisdevice.
Mdk422 官方解决办法:
http://www.keil.com/support/docs/3561.htm
Information in this knowledgebase article applies to:
§ MDK-ARM Version 4.22(a)
§ ULINK2 USB-JTAG Adapter
§ ULINKpro USB-JTAG Adapter
Flash download does not work with Texas Instruments(former Luminary) LM3Sxxx devices in MDK-ARM version 4.22(a) when reset-type"Autodetect" isselected in the ULINK2/pro driver setup dialog. The following error dialog isdisplayed:(改为下面最后一个即可)
Cannot Write to RAM for Flash Algorithms !
Please download the attached ZIP file and extract it intothe C:\Keil\ARM\BIN folder. If MDK-ARM is installed in adifferent folder, please adapt the path accordingly.
This issue will be solved in MDK-ARM versions greater than4.22. The attached files only work for MDK-ARM version 4.22!
Request the files attached tothis knowledgebase article.
The following Discussion Forum threads may provide informationrelated to this topic.
§ "CannotWrite to RAM for Flash Algorithms"
Last Reviewed:Wednesday, October 12, 2011