Commit Graph

12712 Commits

Author SHA1 Message Date
Cao Sen Miao
69ad24c943 temp_sensor: add docs for esp32c3 2021-07-21 13:34:52 +08:00
KonstantinKondrashov
c19b37d2a9 esp_system: Adds sync of FRC & RTC counters in esp_restart
In case when FRC and RTC counters are very different then
the need to sync them before to restart the ESP
to get the correct system time after reboot.
2021-07-21 10:23:24 +05:00
Shu Chen
dadaf30d17 Merge branch 'feature/add_eui64_for_esp32h2_efuse' into 'master'
efuse: add mac extension address for esp32h2

See merge request espressif/esp-idf!14363
2021-07-21 03:46:58 +00:00
Chen Yi Qun
6317f5b481 add uart core reset in uart_module_enable() 2021-07-21 11:41:04 +08:00
Wangjialin
2b986fbd49 For esp_restart API, reset uart0 core first, then reset uart0 apb side, so as to prevent uart output garbage after cpu reset. (UART0 RST bits will be cleared in ROM)
Add UART0/1 core reset on esp32c3, in case uart driver would also reset uart hardwares.
2021-07-21 11:41:04 +08:00
Cao Sen Miao
24356cf7f7 temp_sensor: add check to temp_sensor api 2021-07-21 11:24:37 +08:00
Jiacheng Guo
a74bbde9c5 openthread: support 1.3 border routing features
- Support ICMPv6 auto config
- Support SRP service delegation
- Publish _meshcop._mdns service
2021-07-21 10:44:10 +08:00
Omar Chebib
a6e14c37b2 SPI: chip select can now be kept active if the bus has been acquired
The user can now request the chip select to remain active after the current
transfer. In order to do so, he MUST acquire the bus first with `spi_device_acquire_bus()`
function, else, an error is returned.
2021-07-21 10:39:45 +08:00
Michael (XIAO Xufeng)
a1b5c38218 Merge branch 'bugfix/fix_modbus_rs485_rts_en_fail' into 'master'
freemodbus: fix modbus rs485 rts enable fail after some time

Closes IDFGH-1987

See merge request espressif/esp-idf!11548
2021-07-21 02:07:52 +00:00
Alex Lisitsyn
c801b3a182 freemodbus: fix uart_wait_tx_done() reenable tx_done interrupt
fixes the issue with uart_wait_tx_done() when the task is suspended and transmission is done right before reenable tx_done interrupt
2021-07-21 10:07:44 +08:00
Michael (XIAO Xufeng)
7357d777e3 Merge branch 'feature/touch_sense_test_case' into 'master'
touch_element: add unit test for touch element lib

Closes IDF-2667

See merge request espressif/esp-idf!11825
2021-07-20 17:28:53 +00:00
Roland Dobai
b37ef24bd7 Merge branch 'bugfix/fix_memory_layout_h_ci_issue' into 'master'
host tests: add missing header files for compiling host tests

See merge request espressif/esp-idf!14430
2021-07-20 12:37:00 +00:00
Ivan Grokhotkov
88e28a57f2 Merge branch 'bugfix/gdbstub_rt_callx0' into 'master'
Fix problem on Esp32S3 with dangerous relocation for gdbstub.

See merge request espressif/esp-idf!14145
2021-07-20 09:56:20 +00:00
Omar Chebib
bd96484f7b host tests: add missing header files for compiling host tests 2021-07-20 17:44:20 +08:00
Ivan Grokhotkov
c28612cd2b Merge branch 'bugfix/freertos_coproc_save_area_alignment' into 'master'
freertos: Apply upstream stack masking fix for xtensa/port.c (Github PR)

Closes IDFGH-5549

See merge request espressif/esp-idf!14379
2021-07-20 09:00:04 +00:00
Wang Meng Yang
226c6ab6de Merge branch 'bugfix/fix_scan_timeout_mr_master' into 'master'
Fix the scan timeout report

See merge request espressif/esp-idf!14325
2021-07-20 07:53:52 +00:00
Jakob Hasse
ecb437f8fd Merge branch 'bugfix/esp_event_any_id_unregister' into 'master'
ESP Event: fix unregister documentation

Closes IDFGH-4969

See merge request espressif/esp-idf!14184
2021-07-20 07:33:57 +00:00
zhangwenxu
d5b9078e23 efuse: add mac extension address for esp32h2 2021-07-20 12:03:17 +08:00
Jiang Jiang Jian
af9cb85e00 Merge branch 'feature/support_esp32s3_rtc_hw_support' into 'master'
esp_hw_support: add rtc module support for esp32s3

See merge request espressif/esp-idf!14368
2021-07-20 03:23:10 +00:00
Wang Meng Yang
d48dee8027 Merge branch 'bugfix/a2dp_deint_crash_master' into 'master'
component_bt: fix a2dp deinit crash

Closes BT-1722

See merge request espressif/esp-idf!14360
2021-07-20 03:02:03 +00:00
Anton Maklakov
be8ef09a59 Merge branch 'feature/exception_emergency_pool_test_ci' into 'master'
[cxx]: Activate emergency exception memory pool test in CI

Closes IDF-1610

See merge request espressif/esp-idf!14143
2021-07-20 02:22:32 +00:00
Ivan Grokhotkov
7b922bb8c6 Merge branch 'bugfix/emac_default_cfg' into 'master'
Fix invalid ETH_MAC_DEFAULT_CONFIG macro in C++

Closes IDF-3592

See merge request espressif/esp-idf!14409
2021-07-19 14:59:58 +00:00
Yang Zhao
6aa44a8a89 This is to fix the hardware bug. The device may report scan event
timeout when scaning.If check this error,then reset the rwble core.
2021-07-19 20:56:30 +08:00
Darian
a7468b519d Merge branch 'bugfix/twai_low_speed_bit_rates' into 'master'
TWAI: Fix incorrect configuration initializers for low speed bit rates

Closes IDF-3585

See merge request espressif/esp-idf!14388
2021-07-19 12:32:45 +00:00
Marius Vikhammer
03545feaea Merge branch 'feature/s3_flash_enc' into 'master'
S3 Flash encryption bringup

Closes IDF-1786 and IDF-2576

See merge request espressif/esp-idf!14259
2021-07-19 08:56:50 +00:00
Dmitry
883617d51f Change call0 to callx0 because on Esp32S3 it make error. 2021-07-19 11:19:54 +03:00
Ondrej Kosta
02a432b8d3 Fix invalid ETH_MAC_DEFAULT_CONFIG macro in C++ 2021-07-19 09:56:07 +02:00
Darian Leung
d604bf05af TWAI: Fix incorrect configuration initializers for low speed bit rates
This commit fixes the timing configuration initializers for the
1K, 5K, and 10K bit rates.
2021-07-19 14:27:39 +08:00
Omar Chebib
a7b6ec85b8 Merge branch 'feature/move_memory_layout_to_heap' into 'master'
G0: Memory layouts are now part of heap components

Closes IDF-1264

See merge request espressif/esp-idf!14028
2021-07-19 06:23:19 +00:00
Zim Kalinowski
da9e5ca38a Merge branch 'bugfix/usb_device_struct_cleanup' into 'master'
Cleanup USB device struct

Closes IDFGH-5223

See merge request espressif/esp-idf!13473
2021-07-19 04:23:20 +00:00
sly
d6762a9fb7 esp_hw_support: add rtc module support for esp32s3 2021-07-19 11:17:48 +08:00
xiongweichao
b1bceb6b42 Not initialized or in the process of de-initialization, calling API will return ERR 2021-07-19 11:06:21 +08:00
xiongweichao
55fe021ddb fix a2dp deinit crash 2021-07-19 11:06:21 +08:00
Wang Meng Yang
28e86c9b6f Merge branch 'bugfix/SCO_connect_fail_after_peer_not_accept_sniff' into 'master'
bugfix/unable to initiate SCO connection when peer device not accept sniff mode.

Closes BT-1201

See merge request espressif/esp-idf!12403
2021-07-18 23:21:24 +00:00
morris
0c7b43c3b0 sysview: fix tiemrgroup as sv timestamp 2021-07-18 16:13:32 +08:00
morris
2058e89448 Merge branch 'feature/fpga_bootloader' into 'master'
Boot ESP32 & ESP32-S2 apps on FPGA

See merge request espressif/esp-idf!8270
2021-07-18 08:06:38 +00:00
Michael (XIAO Xufeng)
59195b6fb3 Merge branch 'bugfix/update_gdma_soc' into 'master'
gdma: alignment setting for PSRAM transfer

Closes IDF-1524

See merge request espressif/esp-idf!13976
2021-07-17 14:04:03 +00:00
KonstantinKondrashov
84e5f52a26 freertos: Increases delta for UT - Test suspend-resume CPU. The number of tick_hook should be the same for both CPUs 2021-07-16 18:26:02 +05:00
Angus Gratton
356d7b6da3 esp_hw_support: Clean up CMakeLists file 2021-07-16 20:14:28 +08:00
Angus Gratton
9d6366f290 esp_hw_support: Move rtc.h header from target components 2021-07-16 20:14:28 +08:00
Angus Gratton
86061a720b app_update: Add soc_caps dependency to esp_ota_ops.h 2021-07-16 20:14:28 +08:00
Angus Gratton
77b1ddbcdb driver: Add some settling time when driving USB IOs high/low
Otherwise seems to sometimes fail in release config
2021-07-16 20:14:28 +08:00
Angus Gratton
f9d958a65d ut configs: Replace target component with esp_hw_support
No tests remaining in the target components.

Some further consolidations can be made here later, to combine target-specific
configs that don't need to be target-specific any more.
2021-07-16 20:14:28 +08:00
Angus Gratton
c1ca7a35b0 ldgen: Remove some remaining references to TARGET.project.ld.in 2021-07-16 20:14:27 +08:00
Angus Gratton
f0471b18b2 esp32h2: Move from target component to esp_hw_support (new structure) 2021-07-16 20:14:27 +08:00
Angus Gratton
867f13c6b7 tests gen_digital_signature_tests: Fix mypy issues 2021-07-16 20:14:27 +08:00
Renz Bagaporo
b06dba7823 esp32: move app linker scripts 2021-07-16 20:14:27 +08:00
Renz Bagaporo
fddc0b6799 esp32: move remaining tests 2021-07-16 20:14:27 +08:00
Renz Bagaporo
7c22cccb9c esp32: cleanup build script 2021-07-16 20:14:27 +08:00
Renz Bagaporo
844af01eb4 esp32: move spiram, himem 2021-07-16 20:14:26 +08:00
Renz Bagaporo
452bfda367 esp32: move dport_access 2021-07-16 20:14:26 +08:00
Renz Bagaporo
702e41e1c8 esp32s2: move crypto related functions 2021-07-16 20:14:26 +08:00
Renz Bagaporo
ea2aafbb7a esp32s2: move memprot api 2021-07-16 20:14:26 +08:00
Jakob Hasse
e94117a055 Merge branch 'bugfix/correct_driver_cmake' into 'master'
[driver]: removed redundant code in CMakeLists.txt

See merge request espressif/esp-idf!13365
2021-07-16 11:27:08 +00:00
morris
860c38bb24 Merge branch 'bugfix/config_data_interface_early' into 'master'
emac: configure data interface early

See merge request espressif/esp-idf!14339
2021-07-16 07:49:06 +00:00
morris
d9819bc7ae gdma: set transfer ability 2021-07-16 14:47:09 +08:00
morris
d31b1f79e6 async_mcp: apply general esp_check macros 2021-07-16 14:47:09 +08:00
morris
3176ba11d8 gdma: update DMA soc data for esp32-s3 2021-07-16 14:47:09 +08:00
morris
217d3eb690 Merge branch 'feature/adc_single_sample_support_on_s3' into 'master'
adc: support adc single read on s3

Closes IDF-3118

See merge request espressif/esp-idf!14036
2021-07-16 06:32:08 +00:00
morris
bae28ed1ff Merge branch 'refactor/esp_check_on_rtc_tempsensor' into 'master'
Refactor/rtc_tempsensor: esp_check update & fix log level

Closes IDFGH-5546

See merge request espressif/esp-idf!14377
2021-07-16 04:25:05 +00:00
Omar Chebib
9dd02354d2 Merge branch 'feature/riscv_panic_backtrace' into 'master'
espsystem: add support for RISC-V panic backtrace

Closes IDF-2064

See merge request espressif/esp-idf!12070
2021-07-16 04:13:44 +00:00
Jakob Hasse
24798ab739 Merge branch 'feature/esp_common_header_only' into 'master'
esp_common: Add support for linux target providing header only library

See merge request espressif/esp-idf!14310
2021-07-16 03:47:43 +00:00
Angus Gratton
35dd71b31e Merge branch 'bugfix/va_args_macro' into 'master'
Provide `__VA_OPT__(,)` macro for C++20

Closes IDFGH-4898

See merge request espressif/esp-idf!12945
2021-07-16 03:46:37 +00:00
xiongweichao
fbab2fc0e3 Add remove sniff when peer not accepted sniff mode 2021-07-16 11:31:13 +08:00
Wang Meng Yang
32d9852625 Merge branch 'bugfix/ble_acl_tx_flush' into 'master'
components/bt: Fix for BLE ACL tx flush issue during reset

See merge request espressif/esp-idf!13949
2021-07-16 02:08:22 +00:00
Angus Gratton
c5d20dc231 fpga: Disable BOD when running on FPGA 2021-07-16 10:50:06 +10:00
KonstantinKondrashov
4ccb5515ef fpga/bootloader: Fix LoadProhibited error when bootloader_fill_random() is not in iram_loader_seg 2021-07-16 10:50:06 +10:00
Angus Gratton
1a626ef6ca esp32: App can boot on FPGA image
Includes fix for detecting ESP32 ECO3 on FPGA
2021-07-16 10:50:06 +10:00
Angus Gratton
bbbbd5cf0c esp32s2: FPGA can boot to Hello World 2021-07-16 10:50:06 +10:00
Angus Gratton
8cc8c60b45 soc esp32s2: Use constant for XTAL value
ESP32-S2 only supports a 40MHz crystal.
2021-07-16 10:50:06 +10:00
Angus Gratton
192b5925da bootloader: Can boot to IDF scheduler start on internal-use FPGA
On ESP32 & ESP32-S2. Patch doesn't include changes to make the app run fully.
2021-07-16 10:50:06 +10:00
Ivan Grokhotkov
ca51cd67a4 Merge branch 'bugfix/correct_clang_atomics' into 'master'
newlib,clang: implement __sync_* atomics for clang/llvm toolchain.

Closes LLVM-92

See merge request espressif/esp-idf!14269
2021-07-15 19:01:32 +00:00
Andrei Safronov
40daaa9d56 newlib,clang: implement __sync_* atomics for clang/llvm toolchain. 2021-07-15 20:36:40 +03:00
sushant.chougule
4c3d527b2f component/bt: Fix BLE controller crash during reset/reboot 2021-07-15 22:35:37 +05:30
laokaiyao
27d9657b6c driver/adc: support adc single sample on s3 2021-07-15 19:13:50 +08:00
Axel Lin
6c2aa59b51 freertos: Apply upstream stack masking fix for xtensa/port.c
Link: 6a5784598a (diff-cfa9a8b71a9665b5610f59bd2f56cb81b3ee73beaa6cac3fc965884069588d47)
Signed-off-by: Axel Lin <axel.lin@gmail.com>

Merges https://github.com/espressif/esp-idf/pull/7274
2021-07-15 11:55:41 +02:00
Marius Vikhammer
126c6405f1 Merge branch 'feature/s3_default_2_config' into 'master'
CI: add S3 default_2 unit test config

See merge request espressif/esp-idf!14279
2021-07-15 09:29:31 +00:00
SalimTerryLi
ad505e7f03
rtc_tempsensor: esp_check update & fix log level
Closes https://github.com/espressif/esp-idf/issues/7271
2021-07-15 17:23:07 +08:00
Jakob Hasse
f6031d469b [cxx]: No ##__VA_ARGS__ in public header files
* ##__VA_ARGS__ is replaced by __VA_OPT__(,)
  and __VA_ARGS if C++20 is used.
* Affected header files are: esp_log.h,
  portmacro.h and esp_check.h

* Closes https://github.com/espressif/esp-idf/pull/6692
2021-07-15 17:05:57 +08:00
Vladimir Chistyakov
1d74652b5e Fix portGET_ARGUMENT_COUNT macro
portGET_ARGUMENT_COUNT uses a GCC extension ##__VA_ARGS__. It forces
the user to compile the code with GNU extensions enabled instead of ISO
language standard. The suggested change is to replace ##__VA_ARGS__ with
__VA_OPT__(,) __VA_ARGS__ which is supported by the current version of
GCC used in ESP-IDF for both C and C++ ISO standards.

This fix would enable ESP-IDF users to compile their code with ISO C++20
standard in future releases.

Signed-off-by: Jakob Hasse <jakob.hasse@espressif.com>
2021-07-15 17:01:31 +08:00
Michael (XIAO Xufeng)
ded74889da Merge branch 'bugfix/spi_slave_wrong_miso_mosi' into 'master'
spi_slave: Fix MOSI/MISO inconsistent references on the SPI Slave drivers.

See merge request espressif/esp-idf!13645
2021-07-15 08:51:41 +00:00
Jakob Hasse
3d174f67d9 [esp_event]: fixed and improved docs
* Description of unregistering was incorrect
* Made clear that event loop arg mustn't be NULL
* Added parameter check in create function

Closes https://github.com/espressif/esp-idf/issues/6761
Closes IDFGH-4969
2021-07-15 16:46:02 +08:00
Michael (XIAO Xufeng)
f4e44b0b8e Merge branch 'bugfix/i2c_slave_esp32s2' into 'master'
i2c: fix I2C slave clock source selection

Closes IDF-3177

See merge request espressif/esp-idf!13670
2021-07-15 08:36:46 +00:00
Ivan Grokhotkov
afe14a5ed2 Merge branch 'bugfix/newlib_dirent_decls' into 'master'
newlib: add C++ guards to the platform-specific dirent.h

Closes IDFGH-5465

See merge request espressif/esp-idf!14308
2021-07-15 07:27:14 +00:00
Sachin Parekh
fed4c4c313 Merge branch 'fix/esp32c3_memprot_split_line' into 'master'
esp32c3/memprot: Fix incorrect calculations and register access

Closes IDF-3510 and IDF-3514

See merge request espressif/esp-idf!14201
2021-07-15 05:08:14 +00:00
Omar Chebib
0771bd1711 espsystem: Rearchitecture and fix eh_frame_parser bugs
eh_frame_parser is architecture independent, thus the files have
been rearchitectured. Some bugs have been fixed in the test.
A README file has also been added to eh_frame_parser host test
directory.

eh_frame_parser is now able to detect empty gaps in .eh_frame_hdr
table (missing DWARF information).
Fix a bug occuring when parsing backtraces originated from abort().
Fix build missing dependencies issue.
2021-07-15 12:47:51 +08:00
Omar Chebib
2575c0d49f i2c: fix I2C slave clock source selection
In I2C slave mode, clock source can now be changed, according to
the flags specified in `i2c_config_t` structure. Thus, ESP32-S2
can now act as an I2C slave, even with a 400KHz master clock.
2021-07-15 12:28:57 +08:00
Zim Kalinowski
f29d873c54 Merge branch 'feature/linenoise_improvement' into 'master'
console: re-use the available REPL console API and improve linenoise

Closes IDFGH-5296

See merge request espressif/esp-idf!13897
2021-07-15 03:37:19 +00:00
Omar Chebib
0fd74a43c8 console: re-use the available REPL console API and improve linenoise
Console example doesn't duplicate code in `console` component.
Linenoise has been improved: it now has a parametrized command line
length. It is now possible to paste data efficiently to the console.
Note: this can only be done if the cursor is at the end of the line.

Closes https://github.com/espressif/esp-idf/issues/7057
2021-07-15 11:37:11 +08:00
Armando
6bb6f3ebc4 adc: refactor esp32s3 adc_ll.h 2021-07-15 10:33:03 +08:00
Shu Chen
3badc7b70f Merge branch 'feature/support_154_thread_on_esp32h2' into 'master'
esp32h2: enable IEEE 802.15.4 and Thread

See merge request espressif/esp-idf!14315
2021-07-15 02:18:11 +00:00
Omar Chebib
c4f57af6c9 G0: Memory layouts are now part of heap components 2021-07-15 11:38:23 +10:00
Li Shuai
d2aeb9e4ce light sleep: add gpio configure workaround at slept status for esp32s3 2021-07-14 21:57:21 +08:00
Hrishikesh Dhayagude
48058343fd Merge branch 'feature/protocomm_mfg_data' into 'master'
Provisioning BLE: Add API to set manufacturer data in advertisement (scan response) packets

See merge request espressif/esp-idf!14147
2021-07-14 11:22:15 +00:00
Shu Chen
8e56ecc656 openthread: enable ot_cli on esp32h2 2021-07-14 19:15:24 +08:00
Shu Chen
bdaeeb3169 ieee802154: add IEEE 802.15.4 component 2021-07-14 19:14:30 +08:00
Marius Vikhammer
450aad552a esptool: update esptool submodule 2021-07-14 18:46:17 +08:00
Marius Vikhammer
b8a322195e flash encryption: add flash encryption support for ESP32-S3 2021-07-14 18:46:17 +08:00
Mahavir Jain
5270d8216b Merge branch 'bugfix/fix_timer_delete_crash' into 'master'
Nimble: Add fix for crash in esp_timer deletion

Closes IDFCI-731

See merge request espressif/esp-idf!14316
2021-07-14 10:07:16 +00:00
Ivan Grokhotkov
aa404750c3 Merge branch 'bugfix/spi_flash_ubsan_fail' into 'master'
hal: spi_flash: avoid calling memcpy with NULL buffer

Closes IDFCI-737

See merge request espressif/esp-idf!14323
2021-07-14 09:30:41 +00:00