lpcware

crt_emu_cm3_nxp from LPCXpresso 7.1.1 hangs on Mac OS X

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by MOLINARO on Mon Apr 07 10:08:00 MST 2014
I am trying to flash a LPCXpresso LPC1769 with command line utilities on Mac OS X.
System : Mac OS X 10.7.5
LPCXpresso version 7.1.1

The command list I have tried in a shell script is :


cd /Applications/lpcxpresso_7.1.1_125/lpcxpresso/bin &&
./dfu-util -d 0x471:0xdf55 -c 0 -t 2048 -R -D LPCXpressoWIN.enc &&
./crt_emu_cm3_nxp -info-target -wire=winusb &&
./crt_emu_cm3_nxp -g -4 -wire=winusb -plpc1769 -flash-load-exec=/my-path/product-internal-flash.elf


Execution freezes invoking info target :

+ cd /Applications/lpcxpresso_7.1.1_125/lpcxpresso/bin
+ ./dfu-util -d 0x471:0xdf55 -c 0 -t 2048 -R -D LPCXpressoWIN.enc
dfu-util - (C) 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY
Code Red Technologies Build : 03:46:35, Nov 21 2012

dfu-util currently only supportS DFU version 1.0

Opening DFU USB device... ID 0471:df55
Claiming USB DFU Runtime Interface...
Determining device status: state = dfuIDLE, status = 0
WARNING: Runtime device already in DFU state ?!?
Found Runtime: [0x0471:0xdf55] devnum=8, cfg=0, intf=0, alt=0, name="UNDEFINED"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
bytes_per_hash=583
Copying data from PC to DFU device
Starting download: [##################################################] finished!
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
can't detach: Broken pipe
Resetting USB to switch back to runtime mode
error resetting after download: Result too large
+ ./crt_emu_cm3_nxp -info-target -wire=winusb
Ni: LPCXpresso Debug Driver v7.0 (Mar 26 2014 18:32:42 - crt_emu_cm3_nxp build 1243)
Nc: Looked for vendor directory XML file in /Applications/lpcxpresso_7.1.1_125/lpcxpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in /Applications/lpcxpresso_7.1.1_125/lpcxpresso/bin/crt_directory.xml



What I am doing wrong ?

Outcomes