08-19-2011 04:04 PM
Hi everyone,
I just got my Labview for ARM cortex M3 evaluation kit and I can't download a simple program to the target. I'm using the Keil ULink 2 programmer and I get this error when compiling/downloading:
[4:23:16 PM] Status: Error
SWD Communication Failure
Error: Flash Download failed - Target DLL has been cancelled
Detail: [UVSC_PRJ_FLASH_DOWNLOAD, MSG: 0X100A, STATUS: Ex.] (1)
Status: FLASH download error.
I have read about this error and NI simply refers to Ulink2 user's guide which has this description for this error:
Serial Wire Debug communication is corrupted. The target SWD interface is not working properly. Mainly caused by the target: debug block not powered or clocked properly. Avoid Deep-Sleep modes while debugging. Lower the Max Clock frequency in the ULINK USB-JTAG/SWD Adapter section.
I have tried to "Lower the Max Clock frequency in the ULINK USB-JTAG/SWD Adapter section" but it didn't resolve the problem.
I have also tried to download the program using the usb port on the dev board but instead I get this error:
[4:51:22 PM] Status: ErrorUnexpected error occurred.
[Source: Target is in debug mode
Detail: [UVSC_PRJ_ADD_GROUP, MSG: 0x1002,
STATUS: 0xA] Code: 10]
What am I supposed to do with that?? I'm wondering if the dev board is defective. And this was supposed to be plug and play...
Any help is greatly appreciated!
08-22-2011 03:41 PM
charlestrep91,
Are you able to download an example? Does this work with any code or does it fail when you try to download anything?
http://zone.ni.com/devzone/cda/tut/p/id/6207
08-22-2011 03:54 PM
@charlestrep91 wrote:
Hi everyone,
I just got my Labview for ARM cortex M3 evaluation kit and I can't download a simple program to the target. I'm using the Keil ULink 2 programmer and I get this error when compiling/downloading:
[4:23:16 PM] Status: Error
SWD Communication Failure
Error: Flash Download failed - Target DLL has been cancelled
Detail: [UVSC_PRJ_FLASH_DOWNLOAD, MSG: 0X100A, STATUS: Ex.] (1)Status: FLASH download error.
I have read about this error and NI simply refers to Ulink2 user's guide which has this description for this error:
Serial Wire Debug communication is corrupted. The target SWD interface is not working properly. Mainly caused by the target: debug block not powered or clocked properly. Avoid Deep-Sleep modes while debugging. Lower the Max Clock frequency in the ULINK USB-JTAG/SWD Adapter section.
I have tried to "Lower the Max Clock frequency in the ULINK USB-JTAG/SWD Adapter section" but it didn't resolve the problem.
I have also tried to download the program using the usb port on the dev board but instead I get this error:
[4:51:22 PM] Status: ErrorUnexpected error occurred.
[Source: Target is in debug mode
Detail: [UVSC_PRJ_ADD_GROUP, MSG: 0x1002,STATUS: 0xA] Code: 10]
What am I supposed to do with that?? I'm wondering if the dev board is defective. And this was supposed to be plug and play...
Any help is greatly appreciated!
I'll ask the obvious question, are you intending to use SWD or just download through the JTAG. Check your settings. I have not used the ARM with LV, but can you download anything using the Keil software? Give that a try. That may tell us where the problem lies. Try to duplicate your settings in LV from the Keil sw.
08-24-2011 05:39 PM
I have uninstalled Labview 2011 and uvision 4 and then reinstalled it and now it seems to be working fine...
Thanks for your support guys!