dfuApp: Device does not support download

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

dfuApp: Device does not support download

1,533 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jeffaroo on Tue Oct 25 01:34:26 MST 2011
I recently upgraded my LPCXpresso to version 4.1.0 (Windows 7) and soon after I started getting the following error when trying to debug my code.


Quote:
dfuApp: Device does not support download.



I get the same error for all of my LPCXpresso boards.  I installed 4.1.0 on another machine and the boards work fine, so it appears that something is wrong with my v4.1.0 installation on my main machine.  I’ve reinstalled the “USB Device with DFU Capabilities” driver but that did no good.

If I run the following dfuApp command line with an LPC11C24 boarded attached.


Quote:
dfuapp.exe /f LPCXpressoWIN.enc /l log.txt



I get the following output which I can’t decode….

*****************************************************
*** DFU LOG FILE ***
 Creation Time : log.txt
*****************************************************


Open Device
Get Device Descriptor successful
Get Configuration Descriptor successful
DFU Get Status successful
---> DFUStatus: No error condition present.
---> DFUState: Device is operating in the DFU mode and is waiting for requests.

 Device Descriptor 
bLength: 0x12 
bDescriptorType: 0x01 
bcdUSB: 0x0200 
bDeviceClass: 0x00 
bDeviceSubClass: 0x00 
bDeviceProtocol: 0x00 
bMaxPacketSize0: 0x40 
idVendor: 0x0471 
idProduct: 0xdf55 
bcdDevice: 0x0001 
iManufacturer: 0x00 
iProduct: 0x00 
iSerialNumber: 0x00 
bNumConfigurations: 0x01 
 *** END OF FILE *** 



Anyone have a clue on what my problem is?

Jeff
0 Kudos
Reply
6 Replies

1,420 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jeffaroo on Wed Oct 26 19:13:27 MST 2011
Once I changed the dfuapp timeout, the “Device does not support download” error has gone away. Thanks very much for the help with that. But that has expose a new problem.  Most of my LPCXpresso boards now work just fine, but my LPC11C24 board has the following Connect to emulator or board error.


Quote:
No emulator or board available.



I’m running Windows 7 and the error occurs whether I’m running native or under a VM.  Forcing the chip into ISP mode does not help. Changing USB cables does not help.  I dropped down into the command shell and ran several tests which might help someone tell me what’s wrong.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\foobar>cd \nxp

C:\nxp>cd LPCXpresso_4.1.0_190

C:\nxp\LPCXpresso_4.1.0_190>cd lpcxpresso/bin

C:\nxp\LPCXpresso_4.1.0_190\lpcxpresso\bin>cd Scripts

C:\nxp\LPCXpresso_4.1.0_190\lpcxpresso\bin\Scripts>bootLPCXpresso.cmd hid
Booting LPC-Link with LPCXpressoHS.enc
Press any key to continue . . .
C:\nxp\LPCXpresso_4.1.0_190\lpcxpresso\bin\Scripts>set CRT_DEBUG_TRACE=1

C:\nxp\LPCXpresso_4.1.0_190\lpcxpresso\bin\Scripts>cd ..

C:\nxp\LPCXpresso_4.1.0_190\lpcxpresso\bin>crt_emu_lpc11_13_nxp.exe -info-emu -w
ire=hid
Ni: LPCXpresso Debug Driver v4.0 (Sep 21 2011 20:05:54)
1 Emulators available:
0. T1S6RGRIA    LPC-Link Probe v1.0 (Code Red - LPCXpresso)


C:\nxp\LPCXpresso_4.1.0_190\lpcxpresso\bin>crt_emu_lpc11_13_nxp.exe -info-target
 -pLPC11C24/301 -wire=hid -4
Ni: LPCXpresso Debug Driver v4.0 (Sep 21 2011 20:05:54)
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_4.1.0_190/lpcxpresso/bin/LPC11
C24/301.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_4.1.0_190/lpcxpres
so/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_4.1.0_190/lpcxpresso/b
in/crt_directory.xml

AP Ack: 04
Nc: Mem-AP ID: 0x04770021  ROM Addr: 0xE00FF003
Nc: Emu(0): Conn&Reset. DpID:  BB11477. Info: T1S6RGRIA
Nc: SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0  Poll delay: 0.
Nc: NXP: LPC11C24/301  Part ID: 0x1430102B
Chip=LPC11C24/301, from NXP (formerly Philips), in family LPC11xx, version=unkno
wn
Chip Description: NXP LPC11C24/301
ClockFreq=48.0MHz (Accurate). Clock can be changed after reset.
System reset doesn't cause power cycle. Last reset cause(s):  Power
Does have Flash and is programmable. 128M pop Mask: 0001
Mem MFlash32 of type Flash from 0000 for 32768 bytes. RO
Mem RamLoc8 of type RAM from 10000000 for 8192 bytes.
PrgFlash from 0000 to 8000 (32768 bytes). 1 Variable sized page rules (8 4K)
  'Word' width: 4. Cannot read after programming starts
Peripheral PMU at 0x40038000, size=24. Is part of Chip
  Power management Unit
Peripheral UART0 at 0x40008000, size=85. Is part of Chip
  UART
Peripheral WDT at 0x40004000, size=20. Is part of Chip
  Watchdog Timer
Peripheral TMR161 at 0x40010000, size=128. Is part of Chip
  Timer16
Peripheral TMR160 at 0x4000C000, size=128. Is part of Chip
  Timer16
Peripheral I2C0 at 0x40000000, size=64. Is part of Chip
  I2C Interface
Peripheral ADC at 0x4001C000, size=56. Is part of Chip
  Analog to Digital Converter
Peripheral SSP1 at 0x40058000, size=40. Is part of Chip
  SPI Interface
Peripheral SSP0 at 0x40040000, size=40. Is part of Chip
  SPI Interface
Peripheral TIMER1 at 0x40018000, size=120. Is part of Chip
  Timer
Peripheral TIMER0 at 0x40014000, size=120. Is part of Chip
  Timer
Peripheral CCAN at 0x40050000, size=388. Is part of Chip
  C_CAN
Peripheral IOCON at 0x40044000, size=176. Is part of Chip
  IO Configuration Block
Peripheral GPIO3 at 0x50030000, size=49176. Is part of Chip
  GPIO
Peripheral GPIO2 at 0x50020000, size=49176. Is part of Chip
  GPIO
Peripheral GPIO1 at 0x50010000, size=49176. Is part of Chip
  GPIO
Peripheral GPIO0 at 0x50000000, size=49176. Is part of Chip
  GPIO
Peripheral SYSCTL at 0x40048000, size=1016. Is part of Chip
  System control block
Peripheral NVIC at 0xE000E000, size=3380. Is part of Chip
  NVIC CM0 Control/Status Regsiters
Peripheral DCR at 0xE000EDF0, size=16. Is part of Chip
  M0 Debug Core Registers
 <link href="file:///C:/nxp/LPCXpresso_4.1.0_190/lpcxpresso/bin/nxp_lpc11_13_per
ipheral.xme" type="simple" show="embed" />
CPUID=0x410CC200, Little-Endian. Name=CM0, Chip=LPC11C24/301,
CpuNum=0, Rev=0.0, MaxInts=32, SysTickCal=0004
State is: Stopped (stop cause: Step)
Emulator support: 'Code Red HID emulator support for Cortex-M3', version: 2.0
Connected to emu0: 'T1S6RGRIA'
Connection state: ConnAndReset. DP ID=BB11477. Sticky=10
Speed=1. Frequency=3000KHz. Packet delay=0, Poll delay=0. Info from speed test.
Retries=0. Since last Info request: 0
AP is_sel=SEL. AP rel idx=0 for ID=4770021
ROM table @E00FF003. Debug is OK. Bank=0, CtrlBase=23000000
0 devices:


Any clues??

Jeff
0 Kudos
Reply

1,420 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Oct 26 06:11:45 MST 2011

Quote:

It seems to be coming down to an VM interaction with Windows 7.  I’ve been running LPCXpresso on Windows 7 under Parallels


This vital piece of information was missing from your previous posts.

I can confirm that the dfuapp and the drivers have not changed in LPCXpresso for over a year and therefore the most likely cause of this issue is that you have upgraded your VM, which has introduced the issue.

To increase this timeout:
Window->Preferences
LPCXpresso
  Debug Emulator

and change the "LPC-Link Boot delay" to 500
0 Kudos
Reply

1,420 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jeffaroo on Tue Oct 25 23:01:42 MST 2011
OK now we're getting somewhere.  The idea of increasing the timeout in the ./Scripts/bootlpcxpresso.cmd worked.  Once I edited the script and ran it, the error message disappeared and the LPC-link probe appeared on my device list.

However the LPCXpresso IDE still displays the old "Device does not support download" error.  And if I run ./bin/DFUAPP.exe I still get the error message too.  Do I have to do something other than modify the ./Scripts/bootlpcxpresso.cmd??

Jeff
0 Kudos
Reply

1,420 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jeffaroo on Tue Oct 25 22:30:45 MST 2011
It seems to be coming down to an VM interaction with Windows 7.  I’ve been running LPCXpresso on Windows 7 under Parallels for several months without problems but now I get the following error.


Quote:
dfuApp: Device does not support download.



The following configurations work OK on my Mac laptop.

[LIST]
[*]Dual-boot the computer directly into Windows 7. OK.
[*]VMWare running Windows 7. OK.
[*]Parallels running Windows XP. OK.
[/LIST]


But Parallels running Windows 7 doesn't work any more.  I’ve even tried installing a new VM with a fresh install of Windows 7 and LPCXpresso but no luck.

I’ve looked at your FAQ regarding running under a VM but I don’t think that applies here since as far as I can tell the DFU loader doesn’t get as far as installing the new firmware (“Device does not support download??”).

Any suggestions on how to debug this?

Jeff
0 Kudos
Reply

1,420 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Oct 25 20:50:17 MST 2011
You can try using the ./Scripts/bootlpcxpresso.cmd from a command-line prompt to determine if it succeeds in uploading the probe firmware and/or experiment with different dfuapp.exe timeout values. A different timeout setting may be a better fit for your USB controller. For example, instead of

"%BOOT_HOME%\..\dfuapp" /f "%BOOT_HOME%\..\%ROM%" /tl 250 /l dfuapp.log

try

"%BOOT_HOME%\..\dfuapp" /f "%BOOT_HOME%\..\%ROM%" /tl 500 /l dfuapp.log
0 Kudos
Reply

1,420 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Oct 25 06:38:47 MST 2011
As the boards work on another PC, the most likely reasons are hardware related (if you get this far, there is not an installation problem). Try:
- USB cable. You need to use a shielded USB2 compliant cable
- Power. Try another USB port.
0 Kudos
Reply