A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/espressif/ESP8266_RTOS_SDK/commit/ff16a35c362047b47c0b3d29c02ef9755b623447 below:

Merge branch 'feature/improve_th25q16hb_patch' into 'release/v3.4' · espressif/ESP8266_RTOS_SDK@ff16a35 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+19

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+19

-2

lines changed Original file line number Diff line number Diff line change

@@ -88,8 +88,25 @@ int FLASH_PATCH_TEXT_ATTR th25q16hb_apply_patch_0(void)

88 88 89 89

flash_id = spi_flash_get_id();

90 90

if (flash_id != 0x1560eb) {

91 -

ROM_PRINTF(FLASH_PATCH_STR("WARN: id=0x%x, is not TH25Q16HB\n"), flash_id);

92 -

return 0;

91 +

uint32_t data = 0;

92 +

bool is_th25q16hb = false;

93 +

if (flash_id == 0x0) {

94 +

spi_trans(0, 0x5A, 8, 0x10, 24, &data, 1, 0);

95 +

if (data == 0xEB) {

96 +

spi_trans(0, 0x5A, 8, 0x14, 24, &data, 1, 0);

97 +

if (data == 0x60) {

98 +

spi_trans(0, 0x5A, 8, 0x34, 24, &data, 4, 0);

99 +

if (data == 0xFFFFFF00) {

100 +

is_th25q16hb = true;

101 +

}

102 +

}

103 +

}

104 +

}

105 + 106 +

if (!is_th25q16hb) {

107 +

ROM_PRINTF(FLASH_PATCH_STR("WARN: id=0x%x, is not TH25Q16HB\n"), flash_id);

108 +

return 0;

109 +

}

93 110

}

94 111 95 112

buffer256_0 = buffer1024;

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4