Skip to content

Commit 65cb92f

Browse files
committed
Adjust report flash speeds for H2
1 parent e4f46ec commit 65cb92f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: cores/esp32/chip-debug-report.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,16 @@ static void printFlashInfo(void){
128128
if(fhdr.magic == ESP_IMAGE_HEADER_MAGIC) {
129129
uint32_t f_freq = 0;
130130
switch(fhdr.spi_speed) {
131+
#if CONFIG_IDF_TARGET_ESP32H2
132+
case 0x0: f_freq = 32; break;
133+
case 0x2: f_freq = 16; break;
134+
case 0xf: f_freq = 64; break;
135+
#else
131136
case 0x0: f_freq = 40; break;
132137
case 0x1: f_freq = 26; break;
133138
case 0x2: f_freq = 20; break;
134139
case 0xf: f_freq = 80; break;
140+
#endif
135141
default: f_freq = fhdr.spi_speed; break;
136142
}
137143
log_printf(" Bus Speed : %lu MHz\n", f_freq);

0 commit comments

Comments
 (0)