Ivan Grokhotkov
77b754b47f
newlib: fix return value of no-VFS _read_r if nothing received
...
'read' function should return 0 when encountering an end of file. When
newlib calls read and sees EOF returned, it assumes that this
condition is permanent and never calls 'read' for this file again
(unless the read pointer is moved using fseek).
The correct behavior in case no characters were received over UART is
to return -1. In this case newlib will retry reading from file on next
call to fread, fgetc or another function which calls __srefill_r.
2022-05-02 20:47:18 +02:00
Ivan Grokhotkov
598e8db29c
docs: update build system reference and migration guides for lwip
...
Previous commit removes lwip from the common requirements.
This commit updates the documentation to describe the resulting
changes.
2022-05-02 20:47:18 +02:00
Ivan Grokhotkov
47659be5b8
build system: remove lwip from common requirements
...
lwip was added to common requirements list to provide "sys/socket.h"
header to all components without additional requirements specified.
However, lwip pulls in a lot of dependencies on other components.
This commit removes lwip from common requirements to reduce the number
of components in G1-only apps.
To compensate for this removal, the following changes are made:
- newlib (which is a common requirement) has a public dependency on
lwip if lwip is present in the build. This ensures that sys/socket.h
is available as long as lwip component is included into the build.
- lwip is now a public requirement of esp-tls since esp_tls.h includes
sys/socket.h header.
- lwip is now a public requirement o esp_http_client because
sys/socket.h is included from esp_http_client.h
- lwip is now a private requirement of esp_wifi for "smartconfig_ack"
- lwip is now a private requirement of mqtt for socket functions
- lwip is now a public requirement of tcp_transport because
esp_transport_tcp.h includes sys/socket.h header.
- mbedtls checks if lwip component is present in the build. If yes,
net_sockets.c is added to the build, along with the dependency on
lwip. Previously lwip was a public requirement of mbedtls
unconditionally.
system/g1_components test app is updated to reflect the changes
Default public dependencies of a component before and after this
change, except common requirements:
- esp_timer (public dependency of freertos)
- bootloader_support (public dependency of esp_hw_support)
- vfs (public dependency of lwip)
- esp_wifi (public dependency of lwip)
- esp_event (public dependency of esp_wifi)
- esp_netif (public dependency of esp_event)
- esp_eth (public dependency of esp_netif)
- esp_phy (public dependency of esp_wifi)
After:
- esp_timer (public dependency of freertos)
- bootloader_support (public dependency of esp_hw_support)
Altogether, the following components have been always added as
public requirements to all other components, and are not added now
([breaking-change]):
- lwip
- vfs
- esp_wifi
- esp_event
- esp_netif
- esp_eth
- esp_phy
Application components now need to explicitly declare dependencies on
these components.
2022-05-02 20:47:17 +02:00
Ivan Grokhotkov
ab6151fc8e
test_utils: add missing dependency on esp_netif
2022-05-02 20:47:17 +02:00
Ivan Grokhotkov
81f2a94f9a
esp_system: make dependencies on vfs and esp_wifi optional
2022-05-02 20:47:17 +02:00
Martin Vychodil
aa1200607a
Merge branch 'feature/mmc_validate_hs_mode' into 'master'
...
Add high speed mode switch validation check for mmc.
See merge request espressif/esp-idf!17545
2022-05-02 22:45:20 +08:00
Mahavir Jain
eef5e73842
Merge branch 'contrib/github_pr_8851' into 'master'
...
Fixed the commented out coap_new_optlist() in the coap_client example. (GitHub PR)
Closes IDFGH-7262
See merge request espressif/esp-idf!17969
2022-05-02 14:53:53 +08:00
Jiang Jiang Jian
baa5b8ed7d
Merge branch 'bufix/esp32c3_s3_build_err' into 'master'
...
component_bt: Fix ESP32C3/S3 build error after enabled light sleep
Closes BT-2086
See merge request espressif/esp-idf!17546
2022-05-01 17:48:18 +08:00
Jiang Jiang Jian
4adab0b707
Merge branch 'bugfix/default_ssid_not_set' into 'master'
...
esp_wifi: Fix for default ssid not set.
Closes IDFGH-7141
See merge request espressif/esp-idf!17910
2022-05-01 17:35:44 +08:00
Jiang Jiang Jian
e30e664519
Merge branch 'bugfix/fix_esp32c3_brownout_under_deepsleep' into 'master'
...
rtc: fix c3 brownout bug after deepsleep
Closes IDF-4875
See merge request espressif/esp-idf!16654
2022-05-01 17:28:54 +08:00
Mahavir Jain
b9c4e5215f
Merge branch 'fix/add_support_of_flash_erase_to_flash_enc_test' into 'master'
...
flash_encryption_example_test: Add support for erasing the flash for the
See merge request espressif/esp-idf!17955
2022-04-30 14:49:38 +08:00
Aditya Patwardhan
4dec4b87e7
flash_encryption_example_test: Add support for erasing the flash for the
...
target.
2022-04-30 00:28:35 +00:00
David Čermák
2941cd353a
Merge branch 'bugfix/tcp_transport_documentation' into 'master'
...
tcp_transport: Fix documentation for connect functions
See merge request espressif/esp-idf!17270
2022-04-30 07:45:21 +08:00
Chen Yu Dong
4bb8bbc682
Merge branch 'ci/do_not_fetch_submodules_in_target_tests' into 'master'
...
Ci/do not fetch submodules in target tests
See merge request espressif/esp-idf!17958
2022-04-29 21:18:56 +08:00
Darian
52bf6367b9
Merge branch 'refactor/freertos_smp_move_idf_api' into 'master'
...
freertos: Move SMP FreeRTOS IDF API additions to seperate files
See merge request espressif/esp-idf!17897
2022-04-29 17:25:17 +08:00
Jiang Jiang Jian
96ff900d7d
Merge branch 'Optimize/udp_example_receive_data_with_recvmsg_interface' into 'master'
...
udp example:Optimization udp example with recv_msg
Closes IDFGH-5400
See merge request espressif/esp-idf!17949
2022-04-29 15:03:22 +08:00
Aditya Patwardhan
b6a5ace34d
Merge branch 'ci/reenable_http2_req_test' into 'master'
...
ci: Re-enable HTTP/2 request example test
Closes IDF-4916
See merge request espressif/esp-idf!17911
2022-04-29 14:39:00 +08:00
Mahavir Jain
88766de666
Merge branch 'docs/ota_server_verification' into 'master'
...
docs: Add section for server verification (esp_https_ota)
See merge request espressif/esp-idf!17913
2022-04-29 13:52:43 +08:00
Mahavir Jain
7acaa7f96d
Merge branch 'bugfix/http_auth_for_multiple_redirect' into 'master'
...
esp_http_client: Fix redirect by resetting auth_header before parsing
Closes IDF-4821
See merge request espressif/esp-idf!17736
2022-04-29 12:46:02 +08:00
Laukik Hase
ba4e318e4c
ci: Re-enable HTTP/2 request example test
2022-04-29 09:55:09 +05:30
Laukik Hase
1a7eac2d69
docs: Add section for server verification (esp_https_ota)
...
- Updated OTA example README
2022-04-29 09:50:06 +05:30
Vamshi Gajjela
f116228cd6
Add high speed mode switch validation check for MMC.
2022-04-28 15:23:21 +02:00
Kapil Gupta
f38e6cb4fa
Merge branch 'bugfix/tkip_countermeasure_changes' into 'master'
...
wpa_supplicant: Unicast key renew in TKIP mic failure
See merge request espressif/esp-idf!17819
2022-04-28 18:50:44 +08:00
Chen Yudong
1f9a754cee
CI: do not fetch submodules in target tests
2022-04-28 18:36:58 +08:00
nosuz
6127da32e4
Fixed the commented out coap_new_optlist() example in the coap_client example.
...
coap_new_optlist() requires 3 arguments but the example had 2 arguments.
2022-04-28 18:49:55 +09:00
Jiang Jiang Jian
1b81efc320
Merge branch 'bugfix/idle_task_skipped_light_sleep' into 'master'
...
pm_impl: fix neither enter light sleep nor enter "waiti" state in idle task
Closes IDFGH-6294
See merge request espressif/esp-idf!17820
2022-04-28 16:11:29 +08:00
xueyunfei
231ef90fc5
udp example:Optimization udp example with recv_msg
2022-04-28 07:55:28 +00:00
Roland Dobai
9b64c40981
Merge branch 'feature/add_freertos_gdb_integration' into 'master'
...
tools: add freertos support to GDB
Closes GCC-226
See merge request espressif/esp-idf!17571
2022-04-28 14:36:58 +08:00
Roland Dobai
fdf784b7d7
Merge branch 'feature/add_gdb_as_a_tool' into 'master'
...
tools: add GDB v11.1 as a tool
Closes IDF-3880, IDF-4079, OCD-411, IDFGH-4510, and GCC-90
See merge request espressif/esp-idf!17100
2022-04-28 14:35:13 +08:00
Wang Fang
0fc099c7ea
Merge branch 'docs/update_timer_related_documents' into 'master'
...
docs: updated timer related documents
Closes DOC-2946 and DOC-2993
See merge request espressif/esp-idf!17953
2022-04-28 12:22:47 +08:00
Wang Fang
e6230c4143
docs: updated timer related documents
2022-04-28 10:41:15 +08:00
Fu Hanxi
dd9b9945b6
Merge branch 'ci/fix_IT_missing_esptool' into 'master'
...
ci: fix missing esptool for integration tests
Closes IDFCI-1213
See merge request espressif/esp-idf!17928
2022-04-28 06:48:05 +08:00
Michael (XIAO Xufeng)
6bc8dd0f92
Merge branch 'feature/support_esp32s3_bbpll_fix' into 'master'
...
rtc: update esp32s3 bbpll config
Closes IDF-4872
See merge request espressif/esp-idf!14471
2022-04-27 22:52:21 +08:00
Mahavir Jain
b21f4c823d
Merge branch 'update/update_certs_bundle' into 'master'
...
Update esp_crt_bundle certificates
See merge request espressif/esp-idf!17918
2022-04-27 20:51:24 +08:00
Fu Hanxi
c82adde67d
ci: fix missing esptool for integration tests
2022-04-27 20:43:05 +08:00
Darian Leung
efdedaf726
freertos: Move IDF API additions to seperate files
...
This commit moves the IDF API additions from task.h/task.c to seperate header/source files.
- Declarations moved to "idf_additions.h"
- Definitions moved to "freertos_task_c_additions.h"
The API descriptions have also been updated.
2022-04-27 20:31:39 +08:00
Roland Dobai
9bd31a3239
Merge branch 'contrib/github_pr_8834' into 'master'
...
Tools: bump mypy version (GitHub PR)
Closes IDFGH-7240
See merge request espressif/esp-idf!17908
2022-04-27 19:59:30 +08:00
Espressif BOT
4a56352f56
Update esp_crt_bundle certificates
2022-04-27 11:26:58 +00:00
Ivan Grokhotkov
3352e91777
Merge branch 'bugfix/esptool_autodetection' into 'master'
...
bugfix: Fix port autodetection with esptool package
See merge request espressif/esp-idf!17944
2022-04-27 19:11:23 +08:00
Jiang Jiang Jian
5d59e8db5f
Merge branch 'bugfix/fix_build_warring' into 'master'
...
esp_phy: fix build warning
Closes WIFI-4396
See merge request espressif/esp-idf!17838
2022-04-27 18:19:13 +08:00
radim.karnis
1cdaf4a831
bugfix: Fix port autodetection with esptool package
2022-04-27 09:34:25 +00:00
Jiang Jiang Jian
8cb780ffcd
Merge branch 'docs/remove_bt_doc_fillers' into 'master'
...
docs: remove filler template content from BT docs
See merge request espressif/esp-idf!17932
2022-04-27 17:23:33 +08:00
Ivan Grokhotkov
871375cae3
Merge branch 'bugfix/bootloader_support_public_req' into 'master'
...
esp_hw_support: remove public dependency on bootloader_support
See merge request espressif/esp-idf!17792
2022-04-27 17:04:07 +08:00
Ivan Grokhotkov
25a5344763
Merge branch 'feature/vfs_fat_info' into 'master'
...
fatfs: add esp_vfs_fat_info() + unit tests
Closes IDF-4853
See merge request espressif/esp-idf!17654
2022-04-27 17:01:33 +08:00
Marius Vikhammer
18c704014f
docs: remove filler template content from BT docs
2022-04-27 14:44:36 +08:00
Wang Meng Yang
3198e17f4e
Merge branch 'bugfix/spp_crash_after_call_spp_deinit' into 'master'
...
Component_bt/Fix spp crash after call esp_spp_deinit
Closes BT-2342
See merge request espressif/esp-idf!17842
2022-04-27 13:02:24 +08:00
Xiong Wei Chao
af84842e8b
Component_bt/Fix spp crash after call esp_spp_deinit
2022-04-27 13:02:23 +08:00
Omar Chebib
36e7adabac
Merge branch 'bugfix/i2c_too_short_panics_master' into 'master'
...
I2C: Read transactions, without a STOP, won't panic anymore
Closes IDFGH-6928
See merge request espressif/esp-idf!17455
2022-04-27 12:40:57 +08:00
Omar Chebib
5bd4decad1
I2C: Read transactions, without a STOP, won't panic anymore
...
* Closes https://github.com/espressif/esp-idf/issues/8548
2022-04-27 03:55:19 +00:00
Simon
e4d85807ea
Merge branch 'feature/spi_flash_esp8684_support' into 'master'
...
spi_flash: refactor spi_flash clock configuration logic and support esp32c2
Closes IDF-4474, IDF-4025, and IDF-4066
See merge request espressif/esp-idf!16602
2022-04-27 11:05:45 +08:00