fix(ch390): deepen reset recovery

This commit is contained in:
2026-05-15 00:06:42 +08:00
parent 9ce1eed850
commit e1f4767e9a
5 changed files with 91 additions and 29 deletions
+2 -2
View File
@@ -254,9 +254,9 @@ void ch390_hardware_reset(void)
{
ch390_delay_us(10000); /* Short delay before reset */
ch390_rst(0); /* Assert reset (low) */
ch390_delay_us(3000); /* Hold reset for 3ms to satisfy datasheet minimum */
ch390_delay_us(50000); /* Recover chips stuck after repeated MCU resets */
ch390_rst(1); /* Release reset (high) */
ch390_delay_us(50000); /* Wait 50ms for CH390 to initialize reliably */
ch390_delay_us(500000); /* Allow EEPROM load, PHY, and SPI state to settle */
}
/*----------------------------------------------------------------------------