Skip to content

Commit

Permalink
fix(ESP32-S3): Lower CPU freq to improve flasher stub stability
Browse files Browse the repository at this point in the history
  • Loading branch information
radimkarnis committed Feb 16, 2023
1 parent d4c6b5a commit ecd40f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flasher_stub/include/soc_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,8 @@
#define SYSTEM_CPUPERIOD_SEL_M ((SYSTEM_CPUPERIOD_SEL_V)<<(SYSTEM_CPUPERIOD_SEL_S))
#define SYSTEM_CPUPERIOD_SEL_V 0x3
#define SYSTEM_CPUPERIOD_SEL_S 0
#define SYSTEM_CPUPERIOD_MAX 2 // CPU_CLK frequency is 240 MHz
#define SYSTEM_CPUPERIOD_MAX 1 // CPU_CLK frequency is 160 MHz - not actually max possible frequency,
// see https://github.com/espressif/esptool/issues/832 and https://github.com/espressif/esptool/issues/808

#define SYSTEM_SYSCLK_CONF_REG (SYSTEM_BASE_REG + 0x060)
#define SYSTEM_SOC_CLK_SEL_M ((SYSTEM_SOC_CLK_SEL_V)<<(SYSTEM_SOC_CLK_SEL_S))
Expand Down

0 comments on commit ecd40f7

Please sign in to comment.