AN12037 – Why can’t detect my LpcDevice?

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

AN12037 – Why can’t detect my LpcDevice?

AN12037 – Why can’t detect my LpcDevice?

AN12037 is a commonly adopted solution among LPC users when USB DFU Secondary Bootloader. However when customers run the demo code, they would find their PCs has problem of recognizing LpcDevice.

Scenario 1: “ LpcDevice flashes in Device Manager in a very short time then disappear for ever… “

Scenario 2: “ Device Manager can’t recognize LpcDevice…”

 pastedImage_2.png

 

This is because the default demo code set DFU device only exist in 5 seconds. User must type dfu command ( dfu-util.exe -l ) very fast before de-initialize USB

pastedImage_3.png 

 

So we suggest modify the code to increase the DFU device existence time.

Change

if ( dwSysTicks > 5 )

to

if ( dwSysTicks > 30 )

 

Theoretically, the DFU existance time increases to 30 seconds. Thus we can have enough time slot to type DFU command.

No ratings
Version history
Last update:
‎09-10-2020 03:00 AM
Updated by: