1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-09 03:41:41 +03:00

14 Commits

Author SHA1 Message Date
Christopher Pascoe
63f1e40106 Fix RAM corruption caused by our hook of register_chipv6_phy(init_data*).
"init_data", when non-NULL, is on the heap, and the register_chipv6_phy call
sometimes modifies data in (at least) the offset range [128:249], suggesting
that it is a buffer larger than 128 bytes in size (the size of our
"phy_init_data" buffer).  When we use our static buffer (prior to this
change), the call could would overwrite the .rodata section and lead to
undefined behaviour.

To address this, just patch the heap-allocated buffer with our data.

Move phy_init_data to flash as it's now readonly and never modified.
2015-12-21 19:18:29 -08:00
Ivan Grokhotkov
b66ddbf93a Update to SDK 1.5 (#1102) 2015-12-17 23:14:59 +03:00
Ivan Grokhotkov
e02932fcdd Only erase RTC RAM if sleep mode doesn't look valid (#619)
Source: http://esp8266.ru/forum/threads/mem-check-fail.168/#post-7354
2015-08-05 08:41:15 -04:00
Ivan Grokhotkov
5b82668a75 Fix warning for __run_user_rf_pre_init declaration 2015-07-30 13:52:20 +03:00
Markus Sattler
42332fc46e allow user to run code in user_rf_pre_init.
add void to "C" functions.

example:
extern "C" void __run_user_rf_pre_init(void) {
    system_phy_set_rfoption(2);
}

see: #515 and #413
2015-07-25 09:22:37 +02:00
Markus Sattler
2ab4e360cc upate phy with values from SDK 1.1.2 (esp_init_data_default.bin) 2015-07-01 17:57:31 +02:00
Ivan Grokhotkov
3c846b720c Merge pull request #469 from Testato/patch-3
Update core_esp8266_phy.c
2015-06-26 20:19:41 +03:00
Testato
411773dffa Update core_esp8266_phy.c 2015-06-25 11:38:43 +02:00
Testato
4d740bd8e1 Update core_esp8266_phy.c 2015-06-25 11:35:24 +02:00
Testato
cd5228f7c2 Update core_esp8266_phy.c 2015-06-25 11:34:53 +02:00
Testato
61f800ec14 Update core_esp8266_phy.c 2015-06-25 11:33:34 +02:00
Ivan Grokhotkov
9dce0c4181 Provide selection between A0 and VCC (#443, #338) 2015-06-25 01:04:07 +03:00
Testato
432385604c Update core_esp8266_phy.c
added vdd33_const explanation from official Espressif documentation
2015-06-24 22:32:59 +02:00
Ivan Grokhotkov
dc08418f08 Provide init data for register_chipv6_phy 2015-06-22 03:18:02 +03:00