Commit Graph

25856 Commits

Author SHA1 Message Date
Abhik Roy
8ab028c85e icmpv6_ping example code formatting. 2022-07-20 12:14:59 +05:30
xueyunfei
b4d11d00ca bugfix for phy init failed when wifi deinit 2022-07-20 14:16:08 +08:00
morris
ee771c1d08 Merge branch 'test/gptimer_c2_xtal26mhz' into 'master'
gptimer: test on c2 with xtal 26mhz

Closes IDF-5419 and IDF-5418

See merge request espressif/esp-idf!18993
2022-07-20 13:57:55 +08:00
GengYuchao
964304b751 Change the selection based on target to function selection 2022-07-20 13:06:56 +08:00
Chen Yudong
8c01bdd4c3 CI: update example sniffer test case 2022-07-20 13:02:55 +08:00
Cao Sen Miao
e69f658ac6 flash_encryption: Add several test environments for flash encryption test 2022-07-20 12:49:42 +08:00
morris
bec44ca2e9 gptimer: test on c2 with xtal 26mhz 2022-07-20 04:40:28 +00:00
Mahavir Jain
075e0729de Merge branch 'bugfix/mbedtls_dep_on_driver' into 'master'
mbedtls: remove dependency on driver component

Closes IDF-1265

See merge request espressif/esp-idf!19081
2022-07-20 12:04:34 +08:00
morris
6cab124d7c Merge branch 'bugfix/corrected_typo_in_example_peripherals_usb_device' into 'master'
example: peripherals/usb/device: fix typo naming of local variables

See merge request espressif/esp-idf!19080
2022-07-20 11:56:04 +08:00
GengYuchao
f34b3912b0 Fix blufi crash caused by the break change 2022-07-20 11:44:00 +08:00
GengYuchao
6db79c3950 Fix missing blufi sdkconfig.defaults for esp32c2 2022-07-20 11:44:00 +08:00
GengYuchao
298583b116 Fix nimble port api adapt remove esp_nimble_hci_and_controller_init 2022-07-20 11:44:00 +08:00
GengYuchao
fd055d3ba6 Fix example after removing API esp_nimble_hci_and_controller_init 2022-07-20 11:44:00 +08:00
GengYuchao
5430ad0519 Remove esp_nimble_hci_and_controller_init function 2022-07-20 11:44:00 +08:00
Darian Leung
38d974aca0 freertos: Update scheduler suspension unit tests
This commit updates unit tests for vTaskSuspendAll()/xTaskResumeAll().
2022-07-20 11:32:10 +08:00
Darian Leung
ac38f9aaf1 freertos: Rename scheduler suspension test file 2022-07-20 11:32:10 +08:00
Darian Leung
db26ff2503 freertos: Fix vTaskSuspendAll() and xTaskResumeAll()
This commit fixes vTaskSuspendAll() and xTaskResumeAll() in the following ways.

- For vTaskSuspendAll()
    - Sync function source code with upstream single core version
    - Clearly mark IDF additions
- For xTaskResumeAll()
    - Sync function source code with upstream single core version
    - Clearly mark IDF additions
    - Fix bug where cores other than core 0 were allowed to unwind pended ticks
2022-07-20 11:32:10 +08:00
Darian Leung
5971253971 freertos: Fix vTaskStepTick() and xTaskCatchUpTicks()
This commit fixes the following issues:

- Clearly mark IDF additions in vTaskStepTick() and xTaskCatchUpTicks()
- Add back vTaskSuspendAll()/xTaskResumeAll() to xTaskCatchUpTicks(). Scheduler
  suspension and resumption is required to unwind the pended ticks.
2022-07-20 11:32:10 +08:00
Darian Leung
7a4e1fee99 freertos: Fix xTaskIncrementTick()
Previously, xTaskIncrementTick() would always trigger a yield (i.e., return pdTRUE)
when called on core 1. This would mean core 1 would call vTaskSwitchContext() on
every tick, leading to uneccesary CPU overhead.

This commit fixes xTaskIncrementTick() in the following ways:

- Clearly mark IDF additions in xTaskIncrementTick()
- Moved esp_vApplicationTickHook() to be called direclty in xPortSysTickHandler() in order to
  simplify xTaskIncrementTick().
- Only core 0 calls xTaskIncrementTick() in order to simplify the function's logic. Core 0 is
  solely responsible for managing xTickCount and xPendedTicks
- All other cores call xTaskIncrementTickOtherCores() instead which is a simplified version of
  xTaskIncrementTick() and handles the following:
    - Check if core 0 has unblocked a higher priority task to run
    - Check if the current core requires time slicing
    - Call vApplicationTickHook()
2022-07-20 11:31:50 +08:00
Marius Vikhammer
c585618b97 Merge branch 'docs/broken_links' into 'master'
docs: fixed misc broken links

See merge request espressif/esp-idf!19131
2022-07-20 10:49:42 +08:00
Espressif BOT
72fe927e85 Update esp_crt_bundle certificates 2022-07-20 10:00:11 +08:00
Marius Vikhammer
1315f85e01 docs: fixed misc broken links 2022-07-20 09:43:52 +08:00
jiangguangming
e0d9220a6e example: peripherals/usb: fix typo naming of local variables 2022-07-20 09:36:24 +08:00
Marius Vikhammer
3c2c9206dd Merge branch 'bugfix/lightsleep_example_test_flaky' into 'master'
ci: fixed flakey light sleep example test

Closes IDFCI-1373

See merge request espressif/esp-idf!19102
2022-07-20 09:16:21 +08:00
Marek Fiala
2968b3b946 Tools: Resolve symlinks when installing ESP-IDF using install.sh
Closes: https://github.com/espressif/esp-idf/pull/9375
2022-07-19 21:13:00 +02:00
Adam Simpkins
ff75c4f3b5 Tools: resolve symlinks in IDF_PATH when installing
Use `pwd -P` to resolve any symlinks in the current directory path.
This makes the behavior in the shell script similar to the idf_tools.py
code, which calls `os.path.realpath()`.  Without this, multiple entries
can get created in the `idfInstalled` dictionary in idf-env.json, and
the installed targets and features are not fully present in all entries.
This results in a broken installation, where `export.sh` cannot set up
the environment correctly afterwards.
2022-07-19 21:13:00 +02:00
Roland Dobai
715e851c12 Merge branch 'feature/idf_targets_data_and_actions' into 'master'
Tools: Export selected target idf.py actions

Closes IDF-4500

See merge request espressif/esp-idf!18780
2022-07-20 02:38:44 +08:00
Marek Fiala
9c0969b512 Tools: Export selected target actions
Added option --json to action help, for export selected target actions
2022-07-19 20:02:55 +02:00
Ivan Grokhotkov
de3990f1c0 Merge branch 'doc/esp32c2_jtag' into 'master'
docs: update JTAG related information for ESP32-C2

Closes IDF-4327

See merge request espressif/esp-idf!18496
2022-07-20 01:55:23 +08:00
Wang Ning
394a195015 Merge branch 'docs/restructure_migration_guide' into 'master'
Docs/Restructure Migration Guides

See merge request espressif/esp-idf!18920
2022-07-19 23:15:07 +08:00
Song Ruo Jing
4734b1433b Merge branch 'bugfix/gpio_hal_coverity_fix' into 'master'
gpio: Fix ESP32S3 GPIO48 does not support hold function bug and Fix coverity report

Closes IDF-4901

See merge request espressif/esp-idf!18805
2022-07-19 21:37:15 +08:00
Armando (Dou Yiwen)
9f6f61345b Merge branch 'feature/adc_driver_ng' into 'master'
ADC Driver NG

Closes IDF-4560, IDF-3908, IDF-4225, IDF-2482, IDF-4111, IDF-3610, IDF-4058, IDF-3801, IDF-3636, IDF-2537, IDF-4310, IDF-5150, IDF-5151, and IDF-4979

See merge request espressif/esp-idf!17960
2022-07-19 21:28:31 +08:00
Roland Dobai
b59309852a Merge branch 'features/check_SPDX_license' into 'master'
Add SPDX license check

Closes PACMAN-386

See merge request espressif/esp-idf!18664
2022-07-19 18:57:05 +08:00
Wang Ning
4526a5abf5 docs/restructure_migration_guides 2022-07-19 18:54:51 +08:00
Sudeep Mohanty
5e1437deb8 freertos: Fixed a bug where xTimerIsTimerActive incorrectly returns pdTRUE from callback
This commit fixes the following:
- Fixes a bug wherein the timer status is active for oneshot timers that
expire before they are started.
- Callback calls for periodic timers where made before the timers were
auto-reloaded.
- Timer expiry trace was being set after the timer callback is called.

Closes https://github.com/espressif/esp-idf/issues/8014
2022-07-19 10:42:09 +02:00
Chen Jian Xing
4808f9b725 Merge branch 'bugfix/fix_write_to_null_pointer_if_malloc_failed_issue' into 'master'
Bugfix/fix write to null pointer if malloc failed issue

Closes IDFGH-7836

See merge request espressif/esp-idf!19087
2022-07-19 16:32:44 +08:00
Ivan Grokhotkov
c0e94c6688 Merge branch 'feature/update-gdb-to-11.2_20220715' into 'master'
tools: update gdb version to '11.2_20220715'

Closes IDFGH-7787

See merge request espressif/esp-idf!19071
2022-07-19 16:04:07 +08:00
Mahavir Jain
0c09406173
examples/cbor: keep newlib nano disabled in the example
CBOR parsing fails with newlib nano configuration, observed on ESP32-C2.

Closes IDFCI-1375
2022-07-19 13:27:51 +05:30
Jakob Hasse
1f75fc0aa1 bugfix (esp_timer): made os spinlock static 2022-07-19 15:35:32 +08:00
Marius Vikhammer
12dcb95644 Merge branch 'ci/remove_temp_deepsleep_tag' into 'master'
ci: remove temp deepsleep tag runner

Closes IDF-5213

See merge request espressif/esp-idf!18654
2022-07-19 14:58:33 +08:00
Mo Fei Fei
f3a16d5122 Merge branch 'docs/update_nvs_encryption_cn_trans' into 'master'
Docs: Update CN translation for nvs encryption docs

Closes DOC-3202

See merge request espressif/esp-idf!18938
2022-07-19 14:47:16 +08:00
Simon
7c14328daa Merge branch 'fix/i2c_clk_26M' into 'master'
I2C: Add the I2C clock tree, and support 26M XTAL on ESP32-C2

Closes IDF-5005, IDF-5415, and IDF-4535

See merge request espressif/esp-idf!19057
2022-07-19 13:34:22 +08:00
Chen Jian Xing
c449abc8cd Merge branch 'feat/esp32c2_26M_phy_support' into 'master'
esp_phy: Support 26M and 40M crystal for esp32c2 phy

See merge request espressif/esp-idf!19010
2022-07-19 13:00:55 +08:00
Adam Simpkins
9961061811 Tools: fix a crash in idf_monitor.py
If self.elf_exists is false, self.gdb_helper is None, which caused this
code to crash.  It looks like this guard was missed in e30329ffe2.

Previously the code could crash like this:

    Traceback (most recent call last):
      File "/usr/local/src/esp-idf/tools/idf_monitor.py", line 376, in <module>
        main()
      File "/usr/local/src/esp-idf/tools/idf_monitor.py", line 367, in main
        monitor.main_loop()
      File "/usr/local/src/esp-idf/tools/idf_monitor.py", line 163, in main_loop
        self._main_loop()
      File "/usr/local/src/esp-idf/tools/idf_monitor.py", line 268, in _main_loop
        super()._main_loop()
      File "/usr/local/src/esp-idf/tools/idf_monitor.py", line 203, in _main_loop
        self.serial_handler.handle_commands(data, self.target, self.run_make, self.console_reader,
      File "/usr/local/src/esp-idf/tools/idf_monitor_base/serial_handler.py", line 203, in handle_commands
        run_make_func('encrypted-flash' if self.encrypted else 'flash')
      File "/usr/local/src/esp-idf/tools/idf_monitor.py", line 150, in run_make
        run_make(target, self.make, self.console, self.console_parser, self.event_queue, self.cmd_queue,
      File "/usr/local/src/esp-idf/tools/idf_monitor.py", line 237, in __exit__
        self.serial_reader.gdb_exit = self.gdb_helper.gdb_exit  # write gdb_exit flag
    AttributeError: 'NoneType' object has no attribute 'gdb_exit'
2022-07-18 21:34:18 -07:00
Chen Yu Dong
2e9a620659 Merge branch 'ci/fix_advanced_ota_sdkconfig' into 'master'
CI: fix sdkconfig in advanced https ota example

Closes IDFCI-1369 and IDFCI-1370

See merge request espressif/esp-idf!19078
2022-07-19 12:28:00 +08:00
Marius Vikhammer
e4cbaa6f2b ci: remove temp deepsleep tag runner 2022-07-19 12:12:46 +08:00
Shu Chen
6ebdeb3e1c Merge branch 'feature/ot-cli-extension-component' into 'master'
openthread: use managed component for extension commands

See merge request espressif/esp-idf!19025
2022-07-19 11:57:07 +08:00
Jiang Jiang Jian
547785fb86 Merge branch 'feature/enable_h2beta2' into 'master'
esp32h2: use esp32h2-beta2 by default

See merge request espressif/esp-idf!19099
2022-07-19 11:46:14 +08:00
Cao Sen Miao
53580a62b5 I2C: Fullfill the I2C clock tree, and support 26M XTAL on ESP32-C2 2022-07-19 11:41:42 +08:00
Marius Vikhammer
a9ed589501 ci: fixed flakey light sleep example test
A wake-up from timer would trigger before the gpio wakeup in certain cases,
failing the test.

Change the regex to only expect the GPIO wakeup, so that even if there is an extra
timer wakeup it wont fail the test.
2022-07-19 11:03:16 +08:00