AN12037 – Why can’t detect my LpcDevice?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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.

无评分
版本历史
最后更新:
‎09-10-2020 03:00 AM
更新人: