how can i rectify this?
Is it of hardware issue or any library functions is missing?
can any one please help
It is required to know more details, like:
- MDK version
- Target selected
- Debug Adapter
Probably for your target there are example projects provided by MDK's Pack Installer that demonstrate matching Flash configuration settings:
http://www.keil.com/support/man/docs/uv4/uv4_ca_packinstaller.htm
One reason could be that the flash algorithm is not correctly set as per your target device in Options for Target -> Utilities -> SettingsSelect the correct algo and try again.
rkopsch said:- Debug Adapter
If it's a 3rd-party adaptor (eg, J-Link, ST-Link), they usually come with their own utilities. Your first step should be to use those utilities to see if the adaptor on its own is working.
Indeed, look at the specific message in the pop-up describing what the initial failure was. For example not finding the target, not having a flash algorithm for the memory in question, etc.
also look at messages in the uVision 'Output' window ...