lpcware

lpc11c24 dead ?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by hetii on Tue Jun 10 12:17:48 MST 2014
Hi :)

I order two lpcxpresso board with lpc11c24 as a target MCU.

On the first I did:

dfu-util -d 0x471:0xdf55 -c 0 -t 2048 -R -D /usr/local/lpcxpresso_7.2.0_153/lpcxpresso/bin/LPCXpressoWIN.enc
dfu-util 0.5

(C) 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
(C) 2010-2011 Tormod Volden (DfuSe support)
This program is Free Software and has ABSOLUTELY NO WARRANTY

dfu-util does currently only support DFU version 1.0

Filter on vendor = 0x0471 product = 0xdf55
Opening DFU USB device... ID 0471:df55
Deducing device DFU version from functional descriptor length
Run-time device DFU version 0100
Claiming USB DFU Runtime Interface...
Determining device status: state = dfuIDLE, status = 0
WARNING: Runtime device already in DFU state ?!?
Found Runtime: [0471:df55] devnum=0, cfg=1, intf=0, alt=0, name="UNDEFINED"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Deducing device DFU version from functional descriptor length
DFU mode device DFU version 0100
No valid DFU suffix signature
Warning: File has no DFU suffix
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
Resetting USB to switch back to runtime mode

#Now time to flash:

$ /usr/local/lpcxpresso_7.2.0_153/lpcxpresso/bin/crt_emu_lpc11_13_nxp -wire=winusb -pLPC11C24/301 -flash-load-exec=nxp_lpcxpresso_11c24_freertos_blinky.axf
Ni: LPCXpresso Debug Driver v7.2 (May 13 2014 18:29:32 - crt_emu_lpc11_13_nxp build 1263)
Xs:
Xc:
Nc: Emu(0): Conn&Reset. DpID:  BB11477. Info: LPCLINK_1_1
Nc: SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0  Poll delay: 0.
Nc: Loaded LPC11_12_13_32K_8K.cfx: LPC11_12_13 (32K Flash, min 8K RAM) Apr 22 2013 12:14:02  On-chip Flash Memory

Nc: NXP: LPC11C24/301  Part ID: 0x00000000
Cr:v LPCXpresso Free License - Download limit is 256K
Nt: Loading ELF file 'nxp_lpcxpresso_11c24_freertos_blinky.axf' at location 00000000
Xs:
Nc: nSRST assert (if available)
Nc: Executing in user flash.


All fine, LED blink.

On the second I did the same:


dfu-util -d 0x471:0xdf55 -c 0 -t 2048 -R -D /usr/local/lpcxpresso_7.2.0_153/lpcxpresso/bin/LPCXpressoWIN.enc
dfu-util 0.5                                                                                                                                                             
                                                                                                                                                                         
(C) 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.                                                                                                          
(C) 2010-2011 Tormod Volden (DfuSe support)                                                                                                                              
This program is Free Software and has ABSOLUTELY NO WARRANTY                                                                                                             
                                                                                                                                                                         
dfu-util does currently only support DFU version 1.0                                                                                                                     
                                                                                                                                                                         
Filter on vendor = 0x0471 product = 0xdf55                                                                                                                               
Opening DFU USB device... ID 0471:df55                                                                                                                                   
Deducing device DFU version from functional descriptor length                                                                                                            
Run-time device DFU version 0100                                                                                                                                         
Claiming USB DFU Runtime Interface...                                                                                                                                    
Determining device status: state = dfuIDLE, status = 0                                                                                                                   
WARNING: Runtime device already in DFU state ?!?                                                                                                                         
Found Runtime: [0471:df55] devnum=0, cfg=1, intf=0, alt=0, name="UNDEFINED"                                                                                              
Claiming USB DFU Interface...                                                                                                                                            
Setting Alternate Setting #0 ...                                                                                                                                         
Determining device status: state = dfuIDLE, status = 0                                                                                                                   
dfuIDLE, continuing                                                                                                                                                      
Deducing device DFU version from functional descriptor length                                                                                                            
DFU mode device DFU version 0100
No valid DFU suffix signature
Warning: File has no DFU suffix
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
Resetting USB to switch back to runtime mode

#time to flash:

$ /usr/local/lpcxpresso_7.2.0_153/lpcxpresso/bin/crt_emu_lpc11_13_nxp -wire=winusb -pLPC11C24/301 -flash-load-exec=nxp_lpcxpresso_11c24_freertos_blinky.axf
Ni: LPCXpresso Debug Driver v7.2 (May 13 2014 18:29:32 - crt_emu_lpc11_13_nxp build 1263) <= Here it freeze.


As we can see on the second board flash utility freeze.
The led shine all the time.

Is my target mcu dead? What can i do more to test it?

Update 1: I just replace lpc11c24 from this board and still had the same issue :(

Update 2: I dissolder pad beetwen lpclink and target board and use LPClink from working board to flash target boarad that have my issue.
                This step success, so something is wrong with LPClink on my non working board.
                As I notice, the LED1 start blinking and after a while stop.
                Current traceback looks like that:


/usr/local/lpcxpresso_7.2.0_153/lpcxpresso/bin/crt_emu_lpc11_13_nxp -wire=winusb -pLPC11C24/301 -flash-load-exec=nxp_lpcxpresso_11c24_freertos_blinky.axf
Ni: LPCXpresso Debug Driver v7.2 (May 13 2014 18:29:32 - crt_emu_lpc11_13_nxp build 1263)
Nc: Emu(0): Conn&Reset. DpID:  BB11477. Info: LPCLINK_1_1
Nc: SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0  Poll delay: 0.
Nc: Loaded LPC11_12_13_32K_8K.cfx: LPC11_12_13 (32K Flash, min 8K RAM) Apr 22 2013 12:14:02  On-chip Flash Memory

Nc: NXP: LPC11C24/301  Part ID: 0x00000000
Cr:v LPCXpresso Free License - Download limit is 256K
Nt: Loading ELF file 'nxp_lpcxpresso_11c24_freertos_blinky.axf' at location 00000000 <= freeze here.


Maybe some of the jtag buffer are corrupted :(

Best Regards.

Outcomes