Skip to content

Commit f1a8287

Browse files
committed
Merge pull request #1079 from martinayotte/master
add BergMicro Flash IDs
2 parents 5422eab + 5d7a3e9 commit f1a8287

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cores/esp8266/Esp.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,16 @@ uint32_t EspClass::getFlashChipSizeByChipId(void) {
283283
case 0x1340EF: // W25Q40
284284
return (512_kB);
285285

286+
// BergMicro
287+
case 0x1640E0: // BG25Q32
288+
return (4_MB);
289+
case 0x1540E0: // BG25Q16
290+
return (2_MB);
291+
case 0x1440E0: // BG25Q80
292+
return (1_MB);
293+
case 0x1340E0: // BG25Q40
294+
return (512_kB);
295+
286296
default:
287297
return 0;
288298
}

0 commit comments

Comments
 (0)