diff options
| author | sakumisu <[email protected]> | 2022-08-11 20:39:56 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-08-11 20:40:16 +0800 |
| commit | 5c8c6d6ec2c6c2b068dcbbfe764e99f84a100ab3 (patch) | |
| tree | 88101331834b2f6db8c6ecd8ae9a887fbd028414 | |
| parent | cb906c90b8edb93b1dcae0b69ee295fe63a7717c (diff) | |
add some delay to keep host power stable
| -rw-r--r-- | demo/stm32/usb_host/stm32f429igt6/MDK-ARM/stm32f429igt6.uvoptx | 6 | ||||
| -rw-r--r-- | port/dwc2/usb_hc_dwc2.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/demo/stm32/usb_host/stm32f429igt6/MDK-ARM/stm32f429igt6.uvoptx b/demo/stm32/usb_host/stm32f429igt6/MDK-ARM/stm32f429igt6.uvoptx index ef00e507..3de13968 100644 --- a/demo/stm32/usb_host/stm32f429igt6/MDK-ARM/stm32f429igt6.uvoptx +++ b/demo/stm32/usb_host/stm32f429igt6/MDK-ARM/stm32f429igt6.uvoptx @@ -103,7 +103,7 @@ <bEvRecOn>1</bEvRecOn> <bSchkAxf>0</bSchkAxf> <bTchkAxf>0</bTchkAxf> - <nTsel>3</nTsel> + <nTsel>6</nTsel> <sDll></sDll> <sDllPa></sDllPa> <sDlgDll></sDlgDll> @@ -114,7 +114,7 @@ <tDlgDll></tDlgDll> <tDlgPa></tDlgPa> <tIfile></tIfile> - <pMon>BIN\CMSIS_AGDI.dll</pMon> + <pMon>STLink\ST-LINKIII-KEIL_SWO.dll</pMon> </DebugOpt> <TargetDriverDllRegistry> <SetRegEntry> @@ -150,7 +150,7 @@ <SetRegEntry> <Number>0</Number> <Key>ST-LINKIII-KEIL_SWO</Key> - <Name>-U066EFF555453774987091527 -O2287 -SF4000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP (ARM Core") -D00(2BA01477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024.FLM -FS08000000 -FL0100000 -FP0($$Device:STM32F429IGTx$CMSIS\Flash\STM32F4xx_1024.FLM)</Name> + <Name>-U066EFF555453774987091527 -O2287 -SF2000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP (ARM Core") -D00(2BA01477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024.FLM -FS08000000 -FL0100000 -FP0($$Device:STM32F429IGTx$CMSIS\Flash\STM32F4xx_1024.FLM)</Name> </SetRegEntry> </TargetDriverDllRegistry> <Breakpoint> diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c index 67170715..89cb5032 100644 --- a/port/dwc2/usb_hc_dwc2.c +++ b/port/dwc2/usb_hc_dwc2.c @@ -1335,6 +1335,7 @@ static void dwc2_outchan_irq_handler(uint8_t ch_num) void dwc2_reset_handler(void *arg) { + usb_osal_msleep(300); /* let the usb host power keep stable */ usbh_reset_port(1); } |
