Skip to content

Commit 39883f5

Browse files
Links2004igrr
authored andcommitted
upate phy with values from SDK 1.1.2 (esp_init_data_default.bin)
1 parent ddf03fc commit 39883f5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cores/esp8266/core_esp8266_phy.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ static uint8_t phy_init_data[128] =
5656
[26] = 225, // spur_freq_cfg, spur_freq=spur_freq_cfg/spur_freq_cfg_div
5757
[27] = 10, // spur_freq_cfg_div
5858
// each bit for 1 channel, 1 to select the spur_freq if in band, else 40
59-
[28] = 0, // spur_freq_en_h
60-
[29] = 0, // spur_freq_en_l
59+
[28] = 0xff, // spur_freq_en_h
60+
[29] = 0xff, // spur_freq_en_l
6161

6262
[30] = 0xf8, // Reserved, do not change
6363
[31] = 0, // Reserved, do not change
@@ -86,7 +86,7 @@ static uint8_t phy_init_data[128] =
8686
// 2: 24MHz
8787
[48] = 1,
8888

89-
89+
9090

9191
// sdio_configure
9292
// 0: Auto by pin strapping
@@ -165,7 +165,7 @@ static uint8_t phy_init_data[128] =
165165
// 0x8: -14db,
166166
// 0x4: -17.5,
167167
// 0x0: -23
168-
[94] = 0x0f,
168+
[94] = 0x00,
169169

170170

171171
// lp_bb_att_ext
@@ -226,7 +226,7 @@ static uint8_t phy_init_data[128] =
226226
// 3: auto measure frequency offset and correct it, bbpll is 160M, it only can correct + frequency offset.
227227
// 5: use 113 byte force_freq_offset to correct frequency offset, bbpll is 168M, it can correct + and - frequency offset.
228228
// 7: use 113 byte force_freq_offset to correct frequency offset, bbpll is 160M , it only can correct + frequency offset.
229-
[112] = 0,
229+
[112] = 3,
230230

231231
// force_freq_offset
232232
// signed, unit is 8kHz

0 commit comments

Comments
 (0)