diff --git a/docs/Blackbox.md b/docs/Blackbox.md index 67d70412d..49486183a 100644 --- a/docs/Blackbox.md +++ b/docs/Blackbox.md @@ -144,6 +144,7 @@ chip with 8 fat legs, which can be found at the base of the Naze32's direction a These chips are also supported: * Micron/ST M25P16 - 16 Mbit +* Micron N25Q064 - 64 Mbit * Winbond W25Q64 - 64 Mbit ## Enabling the Blackbox (CLI) diff --git a/src/main/drivers/flash_m25p16.c b/src/main/drivers/flash_m25p16.c index bf6bc39a7..be7d8e441 100644 --- a/src/main/drivers/flash_m25p16.c +++ b/src/main/drivers/flash_m25p16.c @@ -40,6 +40,7 @@ // Format is manufacturer, memory type, then capacity #define JEDEC_ID_MICRON_M25P16 0x202015 +#define JEDEC_ID_MICRON_N25Q064 0x20BA17 #define JEDEC_ID_WINBOND_W25Q64 0xEF4017 #define DISABLE_M25P16 GPIO_SetBits(M25P16_CS_GPIO, M25P16_CS_PIN) @@ -153,6 +154,7 @@ static bool m25p16_readIdentification() geometry.pagesPerSector = 256; geometry.pageSize = 256; break; + case JEDEC_ID_MICRON_N25Q064: case JEDEC_ID_WINBOND_W25Q64: geometry.sectors = 128; geometry.pagesPerSector = 256;