32mbit flash identification

This commit is contained in:
Def 2024-10-13 17:58:19 +03:00
commit ea797602f4
3 changed files with 11 additions and 0 deletions

View file

@ -362,6 +362,9 @@ void Flashmem_print_status(void) {
} else {
if (device_type.manufacturer_id == WINBOND_MANID) {
switch (device_type.device_id) {
case WINBOND_32MB_DEVID:
DbpString(" Memory size............. " _YELLOW_("32 mbits / 4 MB"));
break;
case WINBOND_16MB_DEVID:
DbpString(" Memory size............. " _YELLOW_("16 mbits / 2 MB"));
break;

View file

@ -55,6 +55,7 @@
#define BUSY_TIMEOUT 200000L
#define WINBOND_MANID 0xEF
#define WINBOND_32MB_DEVID 0x15
#define WINBOND_16MB_DEVID 0x14
#define WINBOND_8MB_DEVID 0x13
#define WINBOND_4MB_DEVID 0x12