Ivan Grokhotkov
507e273e1d
fatfs: fix incorrect mtime returned for files created during DST
...
mktime function uses tm_isdst member as an indicator whether the time
stamp is expected to be in daylight saving time (1) or not (0).
FAT filesystem uses local time as mtime, so no information about DST
is available from the filesystem.
According to mktime documentation, tm_isdst can be set to -1, in which
case the C library will try to determine if DST was or wasn't in
effect at that time, and will set UTC time accordingly.
Note that the conversion from UTC to local time and then back to UTC
(time_t -> localtime_r -> FAT timestamp -> mktime -> time_t) does not
always recover the same UTC time. In particular, the local time in the
hour before DST comes into effect can be interpreted as "before DST"
or "after DST", which would correspond to different UTC values. In
this case which option the C library chooses is undefined.
Closes https://github.com/espressif/esp-idf/issues/9039
Originally reported in https://github.com/espressif/arduino-esp32/issues/6786
2022-06-09 22:02:46 +02:00
Mahavir Jain
5b6d9d87a3
freertos: add return value to API vTaskGetSnapshot
...
`vTaskGetSnapshot` is being used in coredump module to collect diagnostic information.
It is possible that input arguments are invalid and `assert` in this situation is not
correct.
This commit modifies API signature to return pdTRUE in case of success, and pdFALSE
otherwise. Caller can verify return value and then take appropriate decision.
2022-06-09 21:13:23 +05:30
Mahavir Jain
4a59036ab1
freertos: fix allocation order for stack and TCB per portSTACK_GROWTH
...
This is as per FreeRTOS recommendation and allows to protect task TCB
in case task stack has overflowed.
2022-06-09 20:49:27 +05:30
KonstantinKondrashov
871af8c5a5
esp_hw_support: Adds a msg when 32k xtal was stopped
2022-06-09 22:45:31 +08:00
Jiang Jiang Jian
62b46a0e92
Merge branch 'bugfix/s3_psram_spinlock_v4.4' into 'release/v4.4'
...
spinlock: fixed spinlocks not working on S3 if placed in PSRAM (v4.4)
See merge request espressif/esp-idf!18439
2022-06-09 17:18:18 +08:00
Jiang Jiang Jian
3a5e9d5ce1
Merge branch 'feature/add_mld6_flag_for_eth_v4.4' into 'release/v4.4'
...
feat(netif): Add NETIF_FLAG_MLD6 flag for eth netif (backport v4.4)
See merge request espressif/esp-idf!18266
2022-06-09 10:59:21 +08:00
Jiang Jiang Jian
c3d76d6496
Merge branch 'ci/force_based_on_commit_v4.4' into 'release/v4.4'
...
ci: support one pipeline must based on commmits (v4.4)
See merge request espressif/esp-idf!17920
2022-06-09 10:58:29 +08:00
Jiang Jiang Jian
be8129dc2d
Merge branch 'bugfix/doc_static_Files_v4.4' into 'release/v4.4'
...
docs: fix missing static file path (v4.4)
See merge request espressif/esp-idf!17329
2022-06-09 10:56:28 +08:00
Jiang Jiang Jian
efdca9431c
Merge branch 'bugfix/c3_efuse_fail_bits_v4.4' into 'release/v4.4'
...
soc: Fix efuse fail bits (v4.4)
See merge request espressif/esp-idf!18417
2022-06-09 10:53:31 +08:00
Jiang Jiang Jian
7905f0d3f8
Merge branch 'feature/adds_efuses_to_table_v4.4' into 'release/v4.4'
...
efuse: Adds ERR_RST_ENABLE efuse for C3 (v4.4)
See merge request espressif/esp-idf!18419
2022-06-09 10:53:16 +08:00
Marius Vikhammer
957505136b
spinlock: fixed spinlocks not working on S3 if placed in PSRAM
...
The compare and set instruction (S32C1I) cannot be used when
lock is not in internal memory.
Closes https://github.com/espressif/esp-idf/issues/9120
2022-06-09 10:39:19 +08:00
Vamshi Gajjela
75491fe216
spiffs: Add vfs (f)truncate api support
...
Unit test cases added to verify truncate.
Closes https://github.com/espressif/esp-idf/issues/2234
2022-06-08 12:52:25 +00:00
Mahavir Jain
f1318fe7cb
Merge branch 'bugfix/mbedtls_dynamic_memory_crash_on_rsa_ciphers_v4.4' into 'release/v4.4'
...
mbedtls: fix ssl server crash when enable mbedtls dynamic buffer(backport v4.4)
See merge request espressif/esp-idf!18426
2022-06-08 19:46:43 +08:00
Jiang Jiang Jian
270fadaee2
Merge branch 'bugfix/uninitialized-element_v4.4' into 'release/v4.4'
...
component_bt:initialize all elements of esp_bt_controller_config_t(v4.4)
See merge request espressif/esp-idf!18404
2022-06-08 15:24:39 +08:00
Li Jingyi
edcc76ec2e
https_server: add mbedtls dynamic buffer function test
2022-06-08 15:09:38 +08:00
Li Jingyi
4896d0c8f3
mbedtls: fix ssl server crash when enable mbedtls dynamic buffer
...
Not free keycert until MBEDTLS_SSL_CLIENT_KEY_EXCHANGE for rsa key exchange methods, because keycert will be used to parse client key exchange.
2022-06-08 14:27:41 +08:00
Michael (XIAO Xufeng)
f86be6141b
Merge branch 'bugfix/i2c_timeout_issue_v4.4' into 'release/v4.4'
...
I2C: patch for solving watchdog timeout issue(backport v4.4)
See merge request espressif/esp-idf!18130
2022-06-08 14:12:37 +08:00
Michael (XIAO Xufeng)
f20d229390
Merge branch 'refactor/flash_qio_overidable_v4.4' into 'release/v4.4'
...
spi_flash: refact that flash qio can be overidable(backport v4.4)
See merge request espressif/esp-idf!18036
2022-06-08 12:37:55 +08:00
Jiang Jiang Jian
e41a7d64b5
Merge branch 'bugfix/do_not_allow_unauthenticated_encrypted_key_data_release_v4.4' into 'release/v4.4'
...
esp_wifi: Ignore unauthenticated encrypted EAPOL-Key data and fix
See merge request espressif/esp-idf!18314
2022-06-08 10:51:57 +08:00
Mahavir Jain
9b07593ce5
Merge branch 'bugfix/esp_http_client_example_v4.4' into 'release/v4.4'
...
esp_http_client example: Add cert for redirect to HTTPS example (v4.4)
See merge request espressif/esp-idf!18402
2022-06-08 02:28:48 +08:00
KonstantinKondrashov
1979c68e82
efuse: Adds ERR_RST_ENABLE efuse for C3 and S3
...
Closes https://github.com/espressif/esp-idf/issues/8357
2022-06-07 22:06:45 +08:00
KonstantinKondrashov
02fe424e48
soc: Fix description of efuse fail bits
2022-06-07 21:42:33 +08:00
KonstantinKondrashov
e5d55fe1b1
esp_ipc: Fix a case when ipc_task() can wake up blocking task early
...
Closes https://github.com/espressif/esp-idf/issues/8559
2022-06-07 21:20:08 +08:00
Mahavir Jain
f47023f8c2
Merge branch 'update/protobuf_v4.4' into 'release/v4.4'
...
protobuf: Updated to v1.4.0 (v4.4)
See merge request espressif/esp-idf!18406
2022-06-07 20:37:47 +08:00
Li Jingyi
1191d9c8e6
example: https_request update free client session api
2022-06-07 19:37:10 +08:00
Li Jingyi
4be609a471
esp-tls: add api to free client session
...
Free session with mbedtls api to avoid mem-leak
2022-06-07 19:22:36 +08:00
Mahavir Jain
a7664ecb27
Merge branch 'fix/menuconfig_option_esp_cryptoauthlib_v4.4' into 'release/v4.4'
...
esp_tls_mbedtls.c: Fix esp-idf integration of esp-cryptoauthlib (v4.4)
See merge request espressif/esp-idf!18400
2022-06-07 18:56:00 +08:00
Mahavir Jain
fbf35a4874
esp_local_ctrl: Regenerated proto-c and python with protobuf compiler v3.21.0
...
$protoc --version
libprotoc 3.21.0
$ protoc-c --version
protobuf-c 1.4.0
2022-06-07 15:59:41 +05:30
Laukik Hase
0ca9ad5249
wifi_provisioning: Regenerated proto-c and python with protobuf compiler v3.21.0
2022-06-07 15:59:40 +05:30
Laukik Hase
509a423f83
protocomm: Regenerated proto-c and python with protobuf compiler v3.21.0
2022-06-07 15:59:40 +05:30
Laukik Hase
9549f0026f
protobuf: Fix v4.21.0 (python) compatibility issue
...
- Added auto-generated protobuf files (proto-c and python to pre-commit hook ignore lists
2022-06-07 15:59:40 +05:30
Laukik Hase
0b05f1708d
protobuf-c: Update submodule to v1.4.0
2022-06-07 15:59:39 +05:30
Michael (XIAO Xufeng)
d02db62bc3
Merge branch 'test/rtc_8m_d256_v4.4' into 'release/v4.4'
...
rtc: fixed 8MD256 can't be used as RTC slow src on ESP32 (v4.4)
See merge request espressif/esp-idf!18105
2022-06-07 18:21:12 +08:00
xiongweichao
f2048b2d15
initialize all elements of esp_bt_controller_config_t
...
Closes https://github.com/espressif/esp-idf/pull/9073
2022-06-07 17:30:48 +08:00
Shubham Kulkarni
b291be8a5d
esp_http_client example: Add cert for redirect to HTTPS example
...
esp_http_client_test.py: Add checks for missing example logs
2022-06-07 14:53:25 +05:30
Aditya Patwardhan
b306517641
esp_tls_mbedtls.c: Fix esp-idf integration of esp-cryptoauthlib
...
menuconfig option
2022-06-07 14:45:40 +05:30
Marius Vikhammer
e595ae88d4
HAL: place cpu_ll_get_cycle_count in IRAM
...
Closes https://github.com/espressif/esp-idf/issues/9008
2022-06-07 06:30:46 +00:00
Mahavir Jain
57082d14a5
Merge branch 'feature/semihosting_call_number_change_v4.4' into 'release/v4.4'
...
Semihosting V2 (v4.4)
See merge request espressif/esp-idf!18332
2022-06-06 20:31:19 +08:00
morris
5accbaebab
Merge branch 'bugfix/i2c_port_check_v4.4' into 'release/v4.4'
...
I2C: Fix I2C ports check in each function of the API implementation
See merge request espressif/esp-idf!18257
2022-06-06 14:56:36 +08:00
morris
5addf329d8
Merge branch 'bugfix/i2c_incorrect_speed_v4.4' into 'release/v4.4'
...
I2C: Fix SCL period timings on ESP targets (backport v4.4)
See merge request espressif/esp-idf!18271
2022-06-06 12:32:32 +08:00
xiongweichao
2ee9fc6aff
Bluetooth build fail when power management is enabled
...
Closes https://github.com/espressif/esp-idf/issues/9081
2022-06-06 11:42:45 +08:00
Michael (XIAO Xufeng)
93d27565ac
test_rtc: add test_app to test power consumption
2022-06-06 00:51:38 +08:00
Michael (XIAO Xufeng)
c61db5e9c9
soc_caps: add SOC_PM_SUPPORT_RTC_PERIPH_PD
...
Partially pick 6336f8191e
2022-06-06 00:17:39 +08:00
Michael (XIAO Xufeng)
deea85b848
pm: add test for RTC using 8MD256 as clock source
2022-06-06 00:16:03 +08:00
chaijie
2a1002b4a4
modify voltage param to fit all mode of S3
2022-06-05 02:33:51 +08:00
Michael (XIAO Xufeng)
a2e1b6756e
esp32s3: fixed dangerous power parameters in sleep modes
2022-06-05 02:33:51 +08:00
Michael (XIAO Xufeng)
f46bd50884
pm: putting dbias and pd_cur code into same function
2022-06-05 02:33:51 +08:00
Michael (XIAO Xufeng)
254870c3c4
rtc: fixed 8MD256 can't be used as RTC slow src on ESP32
...
Sync configuration from other chips
Closes: https://github.com/espressif/esp-idf/issues/8007 , https://github.com/espressif/esp-idf/pull/8089
2022-06-05 02:33:50 +08:00
Mahavir Jain
5e6cffbb14
Merge branch 'bugfix/backport_certificate_bundle_fixes_v4.4' into 'release/v4.4'
...
Certificate bundle fixes (v4.4)
See merge request espressif/esp-idf!18352
2022-06-03 16:27:47 +08:00
Ivan Grokhotkov
f1abc863a2
Merge branch 'bugfix/console_fixes_4.4' into 'release/v4.4'
...
console: various fixes and example improvements (backport v4.4)
See merge request espressif/esp-idf!18161
2022-06-03 03:54:30 +08:00