Commit Graph

1028 Commits

Author SHA1 Message Date
dongheng
228843d543 fix(esp8266): Fix queue send block
Remove PM global cache queue.
2019-02-26 13:47:09 +08:00
dongheng
d23500c93c fix(esp8266): Fix log time count error 2019-02-26 13:41:53 +08:00
Supreet Deshpande
e7cf607c89 feature/wifi-provisioning: Changes to make wifi-provisioning compatible with ESP8266.
Changes:
Added Config to enable wifi-provisioning and protocomm & their pre-requisites.
Changed sdkconfig.defaults, apt headers, esp_log_internal.h for compilation.
Removed console, ble provisioning examples.
Modified esp_prov to enable only softap transport.
2019-02-25 17:39:28 +05:30
Supreet Deshpande
bfd0647ea8 feature/wifi-provisioning: Added wifi-provisioning component from idf.
Added wifi-provisioning examples and esp_prov tool.
2019-02-25 17:39:28 +05:30
Supreet Deshpande
ee8cf35595 feature/protocomm: Changes to make protocomm compatible with ESP8266.
Changes:
Removed protocomm_ble, protocomm_console and their dependencies.
Changed component.mk, CMakeLists.txt to enable only mbedtls based compilation.
2019-02-25 17:39:28 +05:30
Supreet Deshpande
66142e0196 feature/protocomm: Added the protocomm component from idf. 2019-02-25 17:39:28 +05:30
Dong Heng
ae40917d65 Merge branch 'bugfix/compilation_warnings' into 'master'
bugfix/compilation_warnings: Fixes minor compilation warnings

See merge request sdk/ESP8266_RTOS_SDK!794
2019-02-25 14:38:19 +08:00
Dong Heng
a8957ae4bd Merge branch 'feature/nvs_partition_gen_utility' into 'master'
Feature/nvs partition gen utility

See merge request sdk/ESP8266_RTOS_SDK!778
2019-02-25 14:37:50 +08:00
Supreet Deshpande
e43c3fdf67 bugfix/compilation_warnings: Fixes minor compilation warnings
Fixes minor compilation warnings in ADC and MQTTFreeRTOS.
2019-02-23 00:38:07 +05:30
Dong Heng
acf30eb368 Merge branch 'feature/esp_http_server_idf_v3.2' into 'master'
Feature/esp http server idf v3.2

See merge request sdk/ESP8266_RTOS_SDK!768
2019-02-22 10:19:18 +08:00
Supreet Deshpande
3d2bd0cce0 feature/nvs_partition_gen_utility: Changes to make nvs_partition_gen_utility compatible with ESP8266.
Changes:
Removed version, keygen, encrypt, keyfile options from help.
Updated README.md accordingly
2019-02-22 00:40:43 +05:30
Supreet Deshpande
0eae336342 feature/nvs_partition_gen_utility: Added the nvs_partition_gen_utility from idf. 2019-02-20 15:56:17 +05:30
Supreet Deshpande
efc81a6649 feature/esp_http_server_idf_v3.2:Changes to make esp_http_server compatible with ESP8266.
Changes:
Lru counter in place of timestamp added.
syslimits.h definition guards for ARG_MAX, PATH_LEN.
Renamed src/port/esp32 to src/port/esp8266.
Enabled working without IPv6. Test Scripts requiring TinyFW removed
Utility.console_log replaced by print.
2019-02-20 12:39:42 +05:30
Zhang Jun Hao
3412ec4620 fix(lib): fix set phy mode error 2019-02-19 18:43:20 +08:00
Zhang Jun Hao
9045baf644 fix(lib): fix tx conflict of tx start and tx end come in same time 2019-02-19 18:09:56 +08:00
Supreet Deshpande
825a53199d feature/esp_http_server_idf_v3.2: Added the esp_http_server component from idf. 2019-02-19 00:20:55 +05:30
Dong Heng
3a30f08a0b Merge branch 'feature/reduce_stack_info_of_panic' into 'master'
Remove unnecessary stack panic information

See merge request sdk/ESP8266_RTOS_SDK!774
2019-02-18 20:25:56 +08:00
Dong Heng
94634e187f Merge branch 'feature/add_option_to_enable_queue_sets' into 'master'
Add option to enable queue sets

See merge request sdk/ESP8266_RTOS_SDK!771
2019-02-18 20:25:39 +08:00
Dong Heng
e0b7b8b985 Merge branch 'feature/modify_platform_option_name' into 'master'
Rename "TARGET_PLATFORM_ESPxxx" to "IDF_TARGET_ESPxxx"

See merge request sdk/ESP8266_RTOS_SDK!777
2019-02-18 20:23:42 +08:00
Supreet Deshpande
32785a182f feature/esp_http_client:Changes to make esp_http_client compatible with ESP8266.
Changes:
Added rom/md5_hash.h.
Example code & sdkconfig.defaults changed for compatibility.
Changed component.mk to enable compilation only for mbedtls.
2019-02-18 11:54:05 +05:30
Supreet Deshpande
ee32bd51a1 feature/esp_http_client: Added the esp_http_client component from idf.
Added the component and the example from IDF.
2019-02-18 11:54:05 +05:30
Dong Heng
cd9a7899bf Merge branch 'feature/tcp_transport' into 'master'
feature/tcp_transport: Added the tcp_transport component from idf.

See merge request sdk/ESP8266_RTOS_SDK!769
2019-02-15 19:07:14 +08:00
Dong Heng
48c160f7e7 feat(kconfig): Rename "TARGET_PLATFORM_ESPxxx" to "IDF_TARGET_ESPxxx" 2019-02-15 19:02:26 +08:00
Dong Heng
8c2009e4b9 Merge branch 'feat/esp_http_parser' into 'master'
feature/http_parser: Added the http parser from nghttp2 in IDF.

See merge request sdk/ESP8266_RTOS_SDK!766
2019-02-15 16:45:56 +08:00
Dong Heng
a822e6bcc9 feat(freertos): Remove unnecessary stack panic information
Using "0x......" instead of origin "......" to represent hexadecimal data of stack and idf_monitor will
show its corresponding function if the address is located at a function of the project.
2019-02-14 15:38:35 +08:00
Dong Heng
4373adbc2a feat(freertos): Add option to enable queue sets 2019-02-14 10:58:13 +08:00
Dong Heng
11f2278341 Merge branch 'feature/add_func_speed_up_task_switch' into 'master'
Add configuration to speed up task switch

See merge request sdk/ESP8266_RTOS_SDK!639
2019-02-14 10:20:25 +08:00
Supreet Deshpande
56f4a7f4fc feature/tcp_transport: Changes to make tcp_transport compatible with ESP8266.
Changes:
os_get_random for RNG & conditional execution on mbedtls for websockets
Added rom/queue.h. Changed component.mk to exclude axtls based compilation.
2019-02-13 12:53:22 +05:30
Supreet Deshpande
f08ef6b688 feature/tcp_transport: Added the tcp_transport component from idf. 2019-02-13 12:34:59 +05:30
Dong Heng
2da262c512 Merge branch 'feature/protobuf' into 'master'
feature/protobuf-c: Added the protobuf-C component from esp-idf

See merge request sdk/ESP8266_RTOS_SDK!762
2019-02-12 17:23:47 +08:00
Supreet Deshpande
3eb40404a3 feat/http_parser: Added the http parser from nghttp2 in IDF. 2019-02-04 12:11:36 +05:30
Dong Heng
da0adef9c6 fix(esp8266): Fix compile script global varible error 2019-01-30 17:21:31 +08:00
XiongYu
c39f73f110 bugfix(spi): fix doxygen generation problem 2019-01-30 11:05:53 +08:00
Dong Heng
e8b19d15a2 Merge branch 'feature/esp_tls_wolfssl' into 'master'
Add wolfSSL library in esp_tls component

See merge request sdk/ESP8266_RTOS_SDK!726
2019-01-30 10:36:25 +08:00
Dong Heng
ea9c911e69 Merge branch 'feature/aws_iot_esp_tls' into 'master'
Modify network wrapper from mbedtls to esp_tls

See merge request sdk/ESP8266_RTOS_SDK!724
2019-01-30 10:34:12 +08:00
Liu Han
7cb954abc8 feat: Add wolfSSL library in esp_tls component 2019-01-30 09:14:17 +08:00
Dong Heng
3af76b4556 Merge branch 'feature/remove_raw_ota_exmaple' into 'master'
Update verify and document for OTA of ESP8285(ESP8266 + 1MB flash)

See merge request sdk/ESP8266_RTOS_SDK!733
2019-01-29 19:36:15 +08:00
Dong Heng
4a4ce2a661 Merge branch 'feature/add_get_default_mac' into 'master'
Add get default mac

See merge request sdk/ESP8266_RTOS_SDK!741
2019-01-29 19:25:46 +08:00
Dong Heng
82959d73fe feat(esp8266): Add get default mac 2019-01-29 09:15:55 +08:00
Dong Heng
27f0621af4 Merge branch 'feature/update_wolfssl_license_and_note' into 'master'
Add license note to README and header file

See merge request sdk/ESP8266_RTOS_SDK!723
2019-01-28 15:44:39 +08:00
Dong Heng
2e9cb80033 feat(ota): Add OTA binary link address verify of ESP8285 or ESP8266 + 1MB flash 2019-01-25 14:41:08 +08:00
Dong Heng
de3a9a3618 fix(ota): Fix the OTA from old to V3 read flash size error 2019-01-25 13:56:46 +08:00
Dong Heng
d200ef1770 fix(ota): Fix OTA copy buffer is not align
Using globle macro "ROM_FLASH_BUF_DECLARE" to declare a block of buffer not "uint8_t".
2019-01-25 11:45:24 +08:00
Dong Heng
04c731c802 feat(bootloader): Boot copy OTA is not depend on others 2019-01-24 19:35:03 +08:00
Dong Heng
b83c3a0c4d fix(nvs_flash): Fix recovery from power-off while page is being freed
Currently when page is being freed, items are individually moved from
FREEING page to ACTIVE page and erased. If power-off happens during the
process, the remaining entries are moved to ACTIVE page during recovery.
The problem with this approach is there may not be enough space on
ACTIVE page for all items if an item was partially written before
power-off and erased during recovery. This change moves all the items
from FREEING to ACTIVE page and then erased the FREEING page, If
power-off happens during the process, then ACTIVE page is erased and the
process is restarted.

esp-idf commit ID: 7ae1df1c
2019-01-22 11:55:20 +08:00
Dong Heng
e5c9b74005 fix(nvs_flash): don’t expect items with bad CRC to be in cache
When erasing a variable length item with an incorrect CRC32, the span
value of the item can not be trusted, so the item will be erased with
span = 1. Subsequent entries represent the data of the variable
length item, and these will be treated as separate items. For each
entry CRC32 is checked, the check most likely fails (because the
entry contains arbitrary data, and not a proper NVS item), and the
entry is erased. Erase function assumed that every item should be
present in cache, but it is not the case for the entries which are
just parts of item’s payload. This change allows for the item to be
not found in the hashlist, if the CRC32 check fails.

esp-idf commit ID: 2c3644a0
2019-01-22 11:55:20 +08:00
Dong Heng
ab9b141953 fis(nvs_flash): Fix recovery after power-off during erase operation
Current code for recovery after power-off do not clean-up partially
erased items for FULL pages. If the erasure was part of modification
operation, this gets luckily cleaned-up because of duplicate detection
logic. For erase-only operation, the problem still exists. This patch
adds the recovery for FULL pages also.

esp-idf commit ID: 9a3c4b71
2019-01-22 11:55:20 +08:00
Dong Heng
1837a115bb fix(nv_flash): Fix page selection algo to consider free entry counts as well
Current page selection algorithm selects a page for compaction based on just erased counts
and gives up when it does not find any page with erased count greater than 0. This is
problematic since the current allocation procedure skips the active page if there is not
enough room for the item in that page leaving free chunks on the pages. This change modifies
the algorithm to consider both erased as well as free counts on the candidate pages.

esp-idf commit ID: 7e79471e
2019-01-22 11:21:58 +08:00
Liu Han
7929f7bf32 feat: Modify network wrapper from mbedtls to esp_tls 2019-01-22 10:48:43 +08:00
Dong Heng
ab8fb60bd5 docs(ssl): Add license note to README and header file 2019-01-22 09:47:46 +08:00