1923 Commits

Author SHA1 Message Date
345a4f60d1 feat(app_update): add OTA init bin 2019-05-23 14:06:02 +08:00
0bffba3b61 Merge branch 'feature/add_time_head_to_lwipopt_h' into 'master'
Add newlib <time.h> declare to "lwipopts.h"

See merge request sdk/ESP8266_RTOS_SDK!953
2019-05-23 14:00:46 +08:00
5021a03283 Merge branch 'feature/remove_axtls' into 'master'
ssl: remove AX-TLS

See merge request sdk/ESP8266_RTOS_SDK!951
2019-05-23 13:47:50 +08:00
e2fe03064b feat(lwip): add newlib <time.h> declare to "lwipopts.h" 2019-05-23 11:38:04 +08:00
a06729a33b feat(ssl): remove AX-TLS
Also open source, we recommend that customers use mbedTLS.
2019-05-23 11:33:35 +08:00
1b42f75df8 Merge branch 'feature/interrupt_overhead_time_test' into 'master'
Add interrupt overhead time test

See merge request sdk/ESP8266_RTOS_SDK!946
2019-05-21 09:59:23 +08:00
8ccf4435cd fix the comment of wifi_pkt_rx_ctrl_t in esp_wifi_types.h 2019-05-20 20:44:40 +08:00
76fc05e6f8 feat(lwip): set netif hostname according to rfc952 2019-05-20 20:27:51 +08:00
9f49f9f660 feat(esp8266): Add interrupt overhead time test 2019-05-20 17:56:08 +08:00
7affcfc02d feat(cjson): Check if 32-bit type data is overflow 2019-05-20 14:04:15 +08:00
ca53760dec feat(sc): transfer smartconfig ACK type to sc_callback 2019-05-17 20:42:42 +08:00
02877a48f0 feat(mdns_example): Sync code from esp-idf
Commit ID: 2f8508c7
2019-05-17 16:45:44 +08:00
9a72ce0903 feat(mdns): Sync code from esp-idf
Commit ID: 2f8508c7

1. Fix possible crash when probing on particular interface with duplicated service instances due to naming conflicts on network. Issue: MDNS server initially sends probing packets to resolve naming confilicts with already registered service instances. In case of a conflict, instance name is altered and probing restarts. Original instance however wasnnot removed from the structure and upon service removal only one entry was removed and a dangling service might have been kept in the structure to bring about a crash. Resolution: Keep only one instance of a service in the probing structure

2. Enable pcbs before starting service thread to avoid updating pcb's internal variables from concurent tasks. Possible race condition: user task runs mdns_init, which enables pcbs while mdns-task already created could execute enable/disable of the same pcbs if an appropriate system event received

3. Fix possible deadlock on mdns deinit calling mdns_free(). Mnds_free() initiates stop and delete timer tasks, which after locking the mutex could lead to a dead lock in case timer task executed before deleting the task, as it would wait indefinitelly for unlocking the mutex. This condition is fixed by calling _mdns_stop_timer without locking the mutex, because there's no need to protect any data when stopping and deleting the timer task

4. Fix race condition in updating packet data from user task when failed to allocate or queue a new service. Issue: mdns_service_add API allocates and queues an action to be processed in mdns task context; when allocation or queueing fails, allocated structure needs to be freed. Function _mdns_free_service did not only fee all the structures, but also updates packet data. Resolution: Moved removal of packet data outside of _mdns_free_service function

5. Fix possible crash when packet scheduled to transmit contained service which might have been already removed. Packets scheduled to transmit are pushed to action queue and removed from tx_queue_head structure, which is searched for all remaining services and while service is removed, then service questions/asnwers are also removed from this structure. This update fixes possible crash when packet is pushed to action queue, and when service is removed, its answers are removed from tx_queue_head, but not from action queue. This could lead to a crash when the packet is poped from action queue containing questions/answers to already removed (freed) service

6. Use binary semaphore instead of mutex when searching. Mdns_search_once_t::lock is used to synchronize tasks (taken by one task and given by the other) so it should not be a mutex. Convert to semaphore, and rename to indicate its purpose

7. Fix memory leak in pbuf if tcpipadapter failed to get netif

8. Fix malfuctional query_txt. When running a query for a single txt, result entries were not created and attached to result structure. This issue was introduced when fixing memory leak in txt structure, which worked correctly for PTR queries, but caused trouble for TXT query

9. Fix possible crash when mdns_free called while action queue not empty

10. Fix memory leak when query for service receives multiple ptr entries for one instance

11. Fix crash after init if no memory for task. Mdns init first starts timer task, then starts service task. If service task failed to be created, timer task needs to be stopped too

12. Fixed crash on free undefined ptr after skipped strdup. Shortcircuit evaluation may cause skip of _mdns_strdup_check of any further question field, which after clear_rx_packet freed undefined memory

13. Fix networking running udp_sendif from lwip thread

14. Check all mallocs for failure and add default hook to log error with free heap. Solves crash about _mdns_result_txt_create when stress test

15. Fixed static memory leak

16. Resolve memory leak when txt record received multiple times

17. Skip sending search when finished, not properly locked timer task

18. Sending search packets also in probing and announcing state. Mdns queries did not work properly when send imeadiately after set_hostname, which cuased reinit of pcb and therefore restarted probing, so search packets were blocked until probing finished
2019-05-17 16:29:24 +08:00
49980d6f36 Merge branch 'chore/remove_ci_setup_python_req_packets' into 'master'
Remove python request packet from CI to save compiling time

See merge request sdk/ESP8266_RTOS_SDK!942
2019-05-16 20:35:59 +08:00
c48ce73138 chore(ci): Remove python request packet from CI to save compiling time 2019-05-16 20:32:11 +08:00
43d4d27c11 Merge branch 'bugfix/pwm_channel_num_type_error' into 'master'
bugfix(pwm): fix pwm channel num type error

See merge request sdk/ESP8266_RTOS_SDK!941
2019-05-16 17:09:56 +08:00
1a86bb75f6 Merge branch 'feature/support_cmake' into 'master'
SDK supports cmake

See merge request sdk/ESP8266_RTOS_SDK!939
2019-05-16 16:39:25 +08:00
1e70364fc1 chore(ci): CI install python dependence for the SDK 2019-05-16 16:31:15 +08:00
268e9d5846 feat(examples): Add cmake compiler script for examples 2019-05-16 16:22:24 +08:00
cca13e0f99 feat(make): Sync code from esp-idf and modify for ESP8266
Commit ID: f6bfe13e
2019-05-16 16:22:11 +08:00
4c45455ff0 bugfix(pwm): fix pwm channel num type error
Fixes https://github.com/espressif/ESP8266_RTOS_SDK/issues/588
2019-05-16 15:51:36 +08:00
09d8546659 Merge branch 'chore/ci_build_docs' into 'master'
Build documents at CI always

See merge request sdk/ESP8266_RTOS_SDK!940
2019-05-16 15:10:46 +08:00
2a0b0f601b docs(doxygen): Fix header files which is not doxygen style 2019-05-16 15:07:27 +08:00
209ffcfaa6 chore(ci): Build documents at CI always. 2019-05-16 13:14:15 +08:00
9801a9a093 Merge branch 'bugfix/fix_ssc_state_mixed' into 'master'
[SDK8266-369] Fix SSC state mixed

See merge request sdk/ESP8266_RTOS_SDK!938
2019-05-15 14:02:52 +08:00
9a5ed5dd7a fix(esp8266): Update ssc library
1. Fix SSC state mixed
2. Modify RX queue from 64 to 128

Commit ID: cf530ee3
2019-05-15 13:55:37 +08:00
d9decc2a4d Merge branch 'feature/upgrade_sphinx_and_breathe' into 'master'
docs: Upgraded Sphinx, Breathe and Blockdiag to the latest versions

See merge request sdk/ESP8266_RTOS_SDK!800
2019-05-13 19:45:39 +08:00
eca84e256a Merge branch 'bugfix/fix_disable_rom_printf' into 'master'
Fix generating binary error when disable rom print

See merge request sdk/ESP8266_RTOS_SDK!936
2019-05-13 09:54:15 +08:00
286abed96c fix(esptool_py): Fix generating binary error when disable rom print 2019-05-13 09:50:41 +08:00
07d80fa96d Merge branch 'feature/sync_ping' into 'master'
Fix UDP sync register messsage error

See merge request sdk/ESP8266_RTOS_SDK!918
2019-05-09 19:37:29 +08:00
ab906e6e78 fix(lwip): Fix UDP sync register messsage error
Raw socket will not register message.
2019-05-09 19:20:22 +08:00
3ba190e8cb Merge branch 'feature/add_aes_128_cbc_base_on_esp_aes' into 'master'
Add AES-CBC-128 encrypt/decrypt wrap APIs

See merge request sdk/ESP8266_RTOS_SDK!933
2019-05-08 14:27:05 +08:00
9402943622 feat(wpa_supplicant): Add AES-CBC-128 encrypt/decrypt wrap APIs 2019-05-08 14:19:47 +08:00
34b5169803 Merge branch 'feature/add_spiffs_example' into 'master'
Add SPIFFS base example

See merge request sdk/ESP8266_RTOS_SDK!931
2019-05-06 17:23:15 +08:00
2041f86c3e feat(spiffs): Add SPIFFS base example 2019-05-06 17:16:31 +08:00
4e5e762697 Merge branch 'bugfix/pwm_jitter' into 'master'
bugfix(pwm): fix pwm jitter

See merge request sdk/ESP8266_RTOS_SDK!922
2019-05-06 17:02:51 +08:00
1f6b19def9 Merge branch 'bugfix/fix_pwm_cannot_reenter_nmi' into 'master'
fix(lib): fix pwm cannot reenter nmi

See merge request sdk/ESP8266_RTOS_SDK!920
2019-05-06 16:32:44 +08:00
03b546fadb Merge branch 'bugfix/fix_socket_when_socket_offset_is_not_zero' into 'master'
Fix socket multi-thread has no socket offset check

See merge request sdk/ESP8266_RTOS_SDK!930
2019-05-06 16:18:17 +08:00
081c1c5bb7 fix(lwip): Fix socket multi-thread has no socket offset check 2019-05-06 16:11:49 +08:00
8acd8378aa Merge branch 'bugfix/fix_unaligned_access_to_flash' into 'master'
Fix unaligned access to the flash if some LUT is type of "uint8_t" or "uint16_t"

See merge request sdk/ESP8266_RTOS_SDK!929
2019-05-06 11:38:10 +08:00
0fa41f1fb9 fix(util): Fix unaligned access to the flash if some LUT is type of "uint8_t" or "uint16_t"
Make the "uint8_t" or "uint16_t" LTU 4-byte-align.
2019-05-06 10:54:22 +08:00
ff208010f4 Merge branch 'feature/load_old_phy_parameter' into 'master'
Add feature to copy old RF parameters to new SDK partition

See merge request sdk/ESP8266_RTOS_SDK!928
2019-05-05 10:05:27 +08:00
37ffcbe9e6 feat(esp8266): Add feature to copy old RF parameters to new SDK partition
The old SDK's RF parameters is also kept.
2019-05-05 09:58:18 +08:00
2b579ef758 Merge branch 'docs/update_toolchain_download_link' into 'master'
Update toolchain download link URL

See merge request sdk/ESP8266_RTOS_SDK!927
2019-04-29 17:33:13 +08:00
5f10a0ecca doc(setup): Update toolchain download link URL 2019-04-29 17:24:10 +08:00
ce126a77ee Merge branch 'bugfix/fix_tcpip_mem_leak' into 'master'
Fix recv pbuf memory leak

See merge request sdk/ESP8266_RTOS_SDK!926
2019-04-28 20:01:21 +08:00
f2a0d64277 fix(tcpip_adapter): Fix recv pbuf memory leak 2019-04-28 15:57:24 +08:00
9ddfce9a4a fix(lib): fix pwm cannot reenter nmi 2019-04-28 11:12:58 +08:00
26d93c1126 Merge branch 'feature/add_global_isr_switch' into 'master'
Add global ISR swith

See merge request sdk/ESP8266_RTOS_SDK!925
2019-04-28 10:50:09 +08:00
ea43a0c9a6 feat(system): Add global ISR swith 2019-04-28 10:40:50 +08:00