Commit Graph

1293 Commits

Author SHA1 Message Date
“YangZhao”
12ec4866b8 Fix the high-impact issues from the code analysis report from customer.
For the CID10564,10384,10280,10098,10038,The memory was released in other place.
For the CID10365,it release the memory in the function when sent successfully.
For the CID10268,10011, we need not change the code.
2021-11-22 17:38:02 +08:00
Darian Leung
9b3796d2f1 freertos: Add portTRY_ENTRY_CRITICAL() and deprecate legacy spinlock fucntions
Add TRY_ENTRY_CRITICAL() API to all for timeouts when entering critical sections.
The following port API were added:
- portTRY_ENTER_CRITICAL()
- portTRY_ENTER_CRITICAL_ISR()
- portTRY_ENTER_CRITICAL_SAFE()

Deprecated legacy spinlock API in favor of spinlock.h. The following API were deprecated:
- vPortCPUInitializeMutex()
- vPortCPUAcquireMutex()
- vPortCPUAcquireMutexTimeout()
- vPortCPUReleaseMutex()

Other Changes:
- Added portMUX_INITIALIZE() to replace vPortCPUInitializeMutex()
- The assembly of the critical section functions ends up being about 50 instructions longer,
  thus the spinlock test pass threshold had to be increased to account for the extra runtime.

Closes https://github.com/espressif/esp-idf/issues/5301
2021-11-22 13:28:39 +08:00
xiongweichao
ce2d72ddfb Missing break in switch 2021-11-18 19:47:09 +08:00
xiongweichao
101ad32110 Dereference before null check 2021-11-18 19:38:48 +08:00
Roland Dobai
460f3ad7b6 Merge branch 'feat/drop_msys' into 'master'
Tools: Remove MSYS/Mingw support

Closes IDF-3954

See merge request espressif/esp-idf!15862
2021-11-18 10:58:43 +00:00
Matus Fabo
a390efe798 fix: pin definitions for other boards
fix: re-enabled fatfs r/w test on sdspi
fix: copyright notice
add: pin definitions for esp32c3
fix: Changed fixed spi dma channel to a macro definition
2021-11-16 14:13:25 +01:00
Ondrej Kosta
6d4ff2c05e Merge branch 'feature/eth_ioctl_speed_duplex' into 'master'
esp_eth:  esp_eth_ioctl update

Closes IDF-1240 and IDF-4060

See merge request espressif/esp-idf!15607
2021-11-16 11:56:18 +00:00
Roland Dobai
5ae464b843 Merge branch 'bugfix/force_objdump_to_use_local_setting' into 'master'
ldgen: override LC_ALL to C before running objdump

Closes IDFGH-6231

See merge request espressif/esp-idf!15964
2021-11-16 09:48:05 +00:00
Ondrej Kosta
d1f2a3dfcc esp_eth: added ioctl options to set Ethernet speed and duplex mode
esp_eth_ioctl third argument always acts as untyped pointer to memory now
2021-11-16 08:34:07 +01:00
Simon Chupin
909ae90867 replace the old header in ldgen.py with a new SPDX header style and delete it from check_copyright_ignore.txt to complete pipelines without errors 2021-11-15 18:03:33 +01:00
Cao Sen Miao
ce1ee3d8ae psram: add ESP32-D0WD-R2-V3 support 2021-11-12 13:52:24 +08:00
Omar Chebib
76fbd73b20 Merge branch 'bugfix/ledc_auto_clk_refactor' into 'master'
ledc: improved support for ESP32-C3 and refactored divisor calculation

Closes IDF-2441

See merge request espressif/esp-idf!13837
2021-11-12 03:21:46 +00:00
likunqiao
a9146920b9 Zigbee: Add light example
* provide light example for acting as zigbee coordinator, router and end-device
* remove unused componenent for example usage
* remove unused variable
* clean up unused header include for example
* update the license header
* update copyright
* Add readme for instruction adding esp-zboss-lib component
* esp-idf:update copy_right_check ignore file
* CI: fix the ci check error from pipeline
* sdkconfig: default set change for better user use
* use Button (BOOT) as switch input
* update the statemachine for debouncing
* esp-zboss-lib: support lib 0.0.2
* fix warning issue from example
2021-11-11 19:03:01 +08:00
Omar Chebib
1e8a0909f6 LEDC: divisor calculation will now be rounded up when necessary
Closes https://github.com/espressif/esp-idf/issues/7722
2021-11-11 12:21:22 +08:00
Omar Chebib
aa2ca7dd94 LEDC: improved support for ESP32-C3 and refactored divisor calculation
As ESP32C3 does not have support for REF_TICK source clock, it is now not
possible to select it anymore.
Auto cfg clock has been improved for all boards.
2021-11-11 12:21:15 +08:00
Omar Chebib
9d5923a13e IPC: Move ipc sources to esp_system
IPC shall be put back into esp_system as it is an 'OS additions'.
2021-11-11 10:30:01 +08:00
Roland Dobai
a1d0d1ffbe Tools: Remove MSYS/Mingw support
MSYS/Mingw was deprecated since v4.0 and it is removed in v5.0. Please
follow the getting started guide of the documentation to set up a
Windows Command Line or Power Shell based environment.
2021-11-10 17:25:07 +01:00
Roland Dobai
016198f68f Merge branch 'feat/remove_make' into 'master'
Build & config: Remove the "make" build system

Closes IDF-4272

See merge request espressif/esp-idf!15818
2021-11-10 14:13:25 +00:00
David Čermák
65ac7cb029 Merge branch 'bugfix/eth_enc28j60_packet_filter' into 'master'
esp_eth: allow multicast packets for enc28j60 (GitHub PR)

Closes IDFGH-6151

See merge request espressif/esp-idf!15874
2021-11-10 11:34:56 +00:00
Roland Dobai
9c1d4f5b54 Build & config: Remove the "make" build system
The "make" build system was deprecated in v4.0 in favor of idf.py
(cmake). The remaining support is removed in v5.0.
2021-11-10 09:53:53 +01:00
Andy Carle
3e9cdbdedf enc28j60: allow multicast packets in default enc28j60 configuration 2021-11-09 01:34:15 -08:00
Tian Sen Wen
c6ba84e5cd esp_eth: optimize dm9051 Tx throughput 2021-11-09 14:04:11 +08:00
morris
83d16aa00c gdma: support IRAM interrupt 2021-11-08 16:14:51 +08:00
morris
16677b0d3c global: make periph enable/disable APIs private
peripheral enable/disable usually should be managed by driver itself,
so make it as espressif private APIs, not recommended for user to use it
in application code.
However, if user want to re-write the driver or ports to other platform,
this is still possible by including the header in this way:
"esp_private/peripheral_ctrl.h"
2021-11-08 10:37:47 +08:00
Cao Sen Miao
f6da46d798 CI: add fast_template_app and tools support 2021-11-06 17:33:44 +08:00
Fu Hanxi
2d8979e929 Merge branch 'ci/support_nightly_build_keyword_in_ttfw' into 'master'
ci: support keyword `nightly_run` in ttfw_idf decorator

Closes IDFCI-923

See merge request espressif/esp-idf!15779
2021-11-05 10:18:07 +00:00
Ivan Grokhotkov
0b376251df Merge branch 'feature/kconfig_for_reproducible_build' into 'master'
Feature: kconfig for reproducible build

See merge request espressif/esp-idf!15100
2021-11-04 22:07:29 +00:00
Ondrej Kosta
cb8432e0f2 esp_eth: KSZ8851SNL, enable Rx multicast in MAC filter
Closes https://github.com/espressif/esp-idf/issues/7750
2021-11-04 16:17:45 +00:00
Roland Dobai
71dd63c5f1 Merge branch 'feature/gcov_esp32c3' into 'master'
debug_stubs and gcov: Refactor and add support for RISCV

See merge request espressif/esp-idf!15212
2021-11-04 13:56:18 +00:00
Wang Meng Yang
328450b8c2 Merge branch 'bugfix/fix_ble_prefered_ext_conn_parameter_detection' into 'master'
component/bt: check the ble ext conn parameter

See merge request espressif/esp-idf!15767
2021-11-04 12:23:42 +00:00
Jakob Hasse
465d6a37cc Merge branch 'feature/wear_levelling_test_app' into 'master'
wear_levelling: move tests from unit-test-app to a component test app

See merge request espressif/esp-idf!15582
2021-11-04 06:58:04 +00:00
Wu Zheng Hui
f64efe6076 Merge branch 'feature/update_c3_h2_soc_caps' into 'master'
heap: update memory heap caps

See merge request espressif/esp-idf!15792
2021-11-04 06:34:25 +00:00
wuzhenghui
ca1c4114bc heap: update esp32&s2&c3&h2 soc caps 2021-11-04 10:40:57 +08:00
Alexey Gerenkov
e7dd7d3110 gcov: Fixes interference of gcov dump with normal IPC calls 2021-11-04 01:33:24 +03:00
Alexey Gerenkov
bb9cd84cdc debug_stubs: Refactor and add support for RISCV 2021-11-04 01:33:24 +03:00
David Čermák
9466fd1e16 Merge branch 'bugfix/LAN8720_reset_assertion' into 'master'
Increased LAN8720 ETH-PHY reset assertion time

Closes IDFGH-6132 and IDFGH-6018

See merge request espressif/esp-idf!15636
2021-11-03 16:29:09 +00:00
Martin Gano
3c4034d36e support for generating FATFS on a host 2021-11-03 13:06:11 +01:00
Ivan Grokhotkov
5962a7e931 wear_levelling: move tests from unit-test-app to a component test app
* Migrate test cases from IDF test runner to Unity fixture.
* Tighten heap checks in the test case a bit.
* Run formatting script on test_wl.c
* NEW: Define 4 test configurations, including configs with 512 byte
  sector size. Previously these configs weren't tested in CI.
* NEW: The test app only runs for ESP32 and ESP32-C3 (one chip for
  each architecture). The component is pretty high level so we don't
  need to test it for each chip. This reduces the load on CI.
2021-11-03 09:56:20 +01:00
Jakob Hasse
32e3444701 feat (pthread): reader-writer locks implementation
* Added implementation based on cond. variables
* Added unit tests

Closes https://github.com/espressif/esp-idf/issues/7411
2021-11-03 16:38:14 +08:00
Jakob Hasse
7df16fdf8f Merge branch 'feature/i2c_mock' into 'master'
feat (driver): Added mocking for i2c.h

See merge request espressif/esp-idf!15641
2021-11-03 05:49:04 +00:00
Mahavir Jain
268143b732 Merge branch 'bugfix/mbedtls_disable_dhe_by_default' into 'master'
mbedtls: disable Diffie-Hellman key exchange modes by default

Closes IDF-1230

See merge request espressif/esp-idf!15642
2021-11-03 04:30:30 +00:00
Anton Maklakov
4800f2f005 Merge branch 'ci/remove_make' into 'master'
CI: Don't build with "make" because the support is removed in v5.0

Closes IDF-4267

See merge request espressif/esp-idf!15762
2021-11-03 03:17:01 +00:00
Fu Hanxi
636b311ec0 ci: support keyword nightly_run in decorator
The test case with keyword `nightly_run` would be skipped in normal CI
pipelines. only would be triggered when `NIGHTLY_RUN` in environment
variables.
2021-11-03 11:11:38 +08:00
Shu Chen
d756f31da9 Merge branch 'bugfix/esp32h2_iperf_set_dest_ip6_addr_bugs' into 'master'
openthread: fix iperf get dest_ip6_addr

See merge request espressif/esp-idf!15577
2021-11-03 02:57:02 +00:00
Shu Chen
117bb79ec2 Merge branch 'feature/add_ieee802154_timer' into 'master'
ieee802154: Add ieee802154 timer APIs

See merge request espressif/esp-idf!15752
2021-11-03 02:31:03 +00:00
Darian
ea6a0dde5a Merge branch 'bugfix/usb_hcd_robustness' into 'master'
USB Host: Fix how disconnections an EP halts are handled

Closes IDFGH-5797 and IDFGH-6108

See merge request espressif/esp-idf!15640
2021-11-02 13:50:09 +00:00
Roland Dobai
e89fc00e5b CI: Don't build with "make" because the support is removed in v5.0 2021-11-02 13:13:31 +01:00
David Čermák
7bd93e3362 Merge branch 'bugfix/eth_emac_reset_dma_desc' into 'master'
esp-eth: emac: Reset Tx DMA channel owner on init

Closes IDFGH-6071

See merge request espressif/esp-idf!15685
2021-11-02 10:29:02 +00:00
zhangwenxu
1bb69cde88 openthread: fix iperf get dest_ip6_addr
* update copyright headers
2021-11-02 17:10:12 +08:00
Ondrej Kosta
380864861f Copyright message fix for 'Increased LAN8720 ETH-PHY reset assertion time' 2021-11-02 09:57:03 +01:00
Mahavir Jain
f7ed95349f mbedtls: fix dynamic buffer feature build 2021-11-02 15:52:09 +08:00
xiewenxiang
f0ef891901 component/bt: check the ble ext conn parameter 2021-11-02 14:33:24 +08:00
Darian Leung
54b6c902d3 usb: Add USB Host Library sudden disconnect tests 2021-11-02 14:30:58 +08:00
Darian Leung
0c758c8557 usb: Fix how the HCD handles sudden disconnection
This commit fixes how the USB Host HCD handles sudden disconnections.

Bugs:
- HW channels remain active when the port suddenly disconnects, and
previously the channel would be disabled by setting the disabled bit,
then waiting for a disabled interrupt. However, ISOC channels do not
generate the disabled interrupt when the port is invalid, thus leading
to tasks getting indefinitely blocked in hcd_pipe_command().

Fix:
On a sudden disconnection, forcibly treat all channels as halted even
if their HCCHAR.ChEna bit is still set. We do a soft reset after a port
error anyways, so the channels will eventually be reset.

Closes https://github.com/espressif/esp-idf/issues/7505
2021-11-02 14:30:58 +08:00
Darian Leung
0159c37cf2 usb: Fix LL 8/16 bit register field access
This commit addes the 8/16 bit register field access workarounds to
the DWC_OTG peripheral. This workaround was applied to all other
peripherals in commit 874a720286.
2021-11-02 14:30:58 +08:00
Jakob Hasse
1eb96cfc79 feat (driver)!: Added mocking for i2c.h
BREAKING CHANGE: removed ringbuf.h from public i2c.h
2021-11-02 14:16:31 +08:00
xiaqilin
3fc4a0c9c1 ieee802154: add timer APIs 2021-11-02 14:08:34 +08:00
Zim Kalinowski
13ab2cd9f9 Merge branch 'bugfix/spiram_abort_allocation_failure' into 'master'
SPIRAM: 'Abort on allocation failure' should not trigger when there is available SPI ram

Closes IDFGH-5870

See merge request espressif/esp-idf!15454
2021-11-02 05:36:18 +00:00
Omar Chebib
96391ef62b SPIRAM: 'Abort on allocation failure' should not trigger when there is available SPI ram 2021-11-02 05:36:18 +00:00
morris
b2c2e2302b Merge branch 'feature/KSZ8091_support' into 'master'
Add support for Eth PHY KSZ8091

Closes IDFGH-5845

See merge request espressif/esp-idf!15702
2021-11-02 02:37:53 +00:00
Ivan Grokhotkov
f47e8f90ce Merge branch 'bugfix/multi_heap_get_info_impl' into 'master'
heap: fix multi_heap_get_info_impl

See merge request espressif/esp-idf!15470
2021-11-01 21:21:22 +00:00
gaoxiaojie
0028e2c23c heap: fix multi_heap_get_info_impl 2021-11-01 16:08:07 +00:00
ma-lalonde
0f754551dd Add support for Eth PHY KSZ8091 2021-11-01 11:11:18 -04:00
KonstantinKondrashov
884a6b17cc spi_flash: No CPU release time for an erase operation when OS is not running
During the early start, the virtual eFuse mode can call erase operations when OS is not yet running.

Possible workaround: CONFIG_SPI_FLASH_YIELD_DURING_ERASE=n

Fixed for the legacy flash driver as well.
2021-11-01 21:49:24 +08:00
Cao Sen Miao
049349a087 Merge branch 'feature/usb_serial_default_option' into 'master'
usb_serial_jtag: Add secondary menu to support using usb_serial port to print when primary is uart

Closes IDF-3525 and IDF-3555

See merge request espressif/esp-idf!14554
2021-11-01 11:22:35 +00:00
Cao Sen Miao
adfb7bed96 vfs_usb_serial: set secondary selection for making usb port can output under default menu 2021-11-01 15:48:36 +08:00
Jan Procházka
fb22c1f182 fatfs: Implementation of disk_status nad disk_initialize for SD/MMC card
FATFS provides a disk status and disk initialize callback which were not
implemented. Implementation has very low impact on SD/MMC speed and
fixes issues, when trying to open file when SD card was removed from
slot and not deinited.

If disk_status returns STA_NOINIT, it will always continue with
disk_initialize. If that returns 0, it will continue like everything is
working normally. So there has to be the same check as in disk_status.
Return of disk_initialize is always checked like this for STA_NOINIT or
STA_PROTECT so if command fails, we return the STA_NOINIT.

stat = disk_initialize(pdrv);
if (stat & STA_NOINIT) return FR_NOT_READY;
if (stat & STA_PROTECT) return FR_WRITE_PROTECTED;

Closes IDF-4125
2021-11-01 15:11:40 +08:00
Omar Chebib
5206afe755 Merge branch 'bugfix/fix_select_timeout' into 'master'
VFS: `select` function's timeout is now POSIX compliant

Closes IDFGH-5807

See merge request espressif/esp-idf!15374
2021-11-01 07:01:20 +00:00
Steinbart Andreas (HAU-EDS)
f9d6fa2b84 esp-eth: emac: Reset Tx DMA channel owner on init
Reset ethernet TX DMA descriptors sets owner to CPU, so re-installing the ethernet driver will now not result in packet loss

Merges https://github.com/espressif/esp-idf/pull/7752
2021-11-01 06:16:59 +00:00
Mahavir Jain
a89d56082f Merge branch 'bugfix/memprot_bad_esp_restart_check' into 'master'
System/Security: wrong check of the Memprot feature in esp_restart()/panic_restart()

See merge request espressif/esp-idf!15414
2021-10-29 12:17:32 +00:00
Island
c33db5d4f5 Merge branch 'bugfix/ble_mesh_update_license' into 'master'
ble_mesh: stack: update license of esp specific files

See merge request espressif/esp-idf!15603
2021-10-29 09:56:33 +00:00
Martin Vychodil
dffb92e45f System/Security: wrong check of the Memprot feature in esp_restart()/panic_restart()
esp_restart()/panic_restart() never resets the Digital system (so far required only by the Memprot feature) as there's a typo in the corresponding #define:
it checks CONFIG_ESP_SYSTEM_CONFIG_MEMPROT_FEATURE instead of CONFIG_ESP_SYSTEM_MEMPROT_FEATURE.
Issue fixed.

IDF-4094
2021-10-29 16:28:28 +08:00
Sudeep Mohanty
4846222102 freertos: update freertos folder structure to match upstream
The following changes have been made:
1. All FreeRTOS kernel source files are now placed in the
   freertos/FreeRTOS-Kernel folder to match with the upstream folder structure.
2. All kernel include files are now placed in freertos/FreeRTOS-Kernel/include.
3. All port files are now placed in freertos/FreeRTOS-Kernel/portable.
4. All additions/customizations are placed in freertos/esp_additions.
5. All other miscellaneous files (README, License files etc.) are moved to
   freertos/FreeRTOS-Kernel folder to match with the upstream.
6. Updated esp-cryptoauthlib to latest commit to resolve FreeRTOS
   include dependencies.

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2021-10-29 12:05:13 +08:00
lly
eeb9a9bd2c ble_mesh: stack: Update license of esp specific files 2021-10-28 21:20:27 +08:00
Sudeep Mohanty
ac0cbebb89 ringbuf: Fix bug where comparision between a signed and unsigned operand resulted in incorrect free size for no-split/allow-split buffers
This commit fixes a bug in no-split and allow-split ring buffers free buffer size calculation.
When the free size available in the buffers less than the size of one item header,
the function prvGetCurMaxSizeNoSplit/AllowSplit() incorrectly returned the maxItemSize instead of 0.
This is due to the comparision between a negative and a positive value
where both operands are treated as unsigned during the comparision operation,
thereby treating the negative operand as a large integer.

Also added new unit tests to test buffer-full and almost-full conditions
where this scenario is likely to be hit.

Closes https://github.com/espressif/esp-idf/issues/7344
Closes https://github.com/espressif/esp-idf/pull/7371
2021-10-28 14:02:18 +05:30
Sudeep Mohanty
0d81eb9855 Merge branch 'bugfix/ringbuf_send_semaphore_release_order' into 'master'
esp_ringbuf: Fix order of semaphore release in xRingbufferSend

Closes IDFGH-6030 and IDFGH-6036

See merge request espressif/esp-idf!15657
2021-10-28 05:30:31 +00:00
Jiang Jiang Jian
05a618ce10 Merge branch 'feature/decouple_softap_and_8684_support' into 'master'
Feature/decouple softap and 8684 support

See merge request espressif/esp-idf!15564
2021-10-28 04:13:18 +00:00
Omar Chebib
73303e5de0 VFS: select function's timeout is now POSIX compliant
`select` function will now round up the timeout passed as a parameter (if any).
It  makes it POSIX compliant.

* Closes https://github.com/espressif/esp-idf/issues/7514
2021-10-28 02:52:59 +00:00
Fu Hanxi
b9aa7182e8 fix: git ls-files wrong result when call via pre-commit in worktrees 2021-10-27 14:20:49 +08:00
Cao Sen Miao
bd2a524a12 Merge branch 'bugfix/esp_timer_before_init' into 'master'
esp_timer: allow querying the timer before esp_timer_init is called

Closes IDF-3570

See merge request espressif/esp-idf!14428
2021-10-27 05:49:06 +00:00
RichFalk
1222f6dd3a esp_ringbuf: Fix assertion xQueueGenericSend queue.c:818
The release of the semaphore indicating the item was successfully sent must be the last semaphore released.  The receiver may be in another task and may delete the Ringbuffer (such as with a return code across tasks design pattern) if they are through with the Ringbuffer.

The function xRingbufferSendAcquire followed by xRingbufferSendComplete had the semaphores released in the proper order and that same pattern should have been used in xRingbufferSend and xRingbufferSendFromISR.  This commit fixes this order.

Issue (IDFGH-6030) #7716 describes the problem in more detail.

Closes IDFGH-6030, https://github.com/espressif/esp-idf/issues/7716
Closes IDFGH-6036, https://github.com/espressif/esp-idf/pull/7721
2021-10-27 09:54:36 +05:30
Zhang Jun Hao
a568b4fddf esp_wifi: support station only mode for code size down 2021-10-27 11:48:22 +08:00
Island
8037e2462f Merge branch 'bugfix/heartbeat_filter_with_acceptlist' into 'master'
ble_mesh: stack: Fix heartbeat filter with accept list error

See merge request espressif/esp-idf!14529
2021-10-27 02:50:00 +00:00
David Čermák
bcbef9a8db Merge branch 'bugfix/ping_sock_0_valid' into 'master'
lw-ip: Fix ping socket create to allow for fd=0

See merge request espressif/esp-idf!15644
2021-10-26 14:27:45 +00:00
Ivan Grokhotkov
1561fbd2c5 Merge branch 'ci/minimum_pipeline_for_revert_branch' into 'master'
ci: minimum pipeline for 'revert-' branches

Closes IDFCI-920

See merge request espressif/esp-idf!15592
2021-10-26 12:14:30 +00:00
Cao Sen Miao
b0123199da esp_timer: init rtc timer and system timer in early init 2021-10-26 19:07:34 +08:00
Anton Maklakov
e525964f67 Merge branch 'bugfix/gdbstub_4_c3' into 'master'
Add missing function for C3

See merge request espressif/esp-idf!15538
2021-10-26 10:16:38 +00:00
Fu Hanxi
4cc18e9582 ci: minimum pipeline for 'revert-' branches 2021-10-26 17:55:58 +08:00
Alexey Gerenkov
e777653222 Merge branch 'feature/esp32s3_apptrace' into 'master'
apptrace/trax: Adds ESP32-S3 support

Closes IDF-1785

See merge request espressif/esp-idf!14857
2021-10-26 09:50:40 +00:00
lly
fc97277e2f ble_mesh: stack: Update the license of provisioner_main.c 2021-10-26 17:44:36 +08:00
David Cermak
7b91343ca7 lwip: Fix ping socket create to allow for fd=0
0 is a valid socket description, so should be accepted after we create a
socket. In IDF, though, it's just a theoretical issue, as customers have
to configure:
* FD_SETSIZE = CONFIG_LWIP_MAX_SOCKETS (from makefiles)
* CONFIG_VFS_SUPPORT_IO = n (from menuconfig)

(this configuration is currently broken, but if we adjust the IDF here
and there we could reproduce the issue)
2021-10-26 08:19:26 +02:00
Fu Hanxi
ea1005b740 build: create BUILD_DIR/prefix_map_gdbinit when enable reproducible build
add project property BUILD_COMPONENT_DIRS
2021-10-26 10:55:00 +08:00
Jakob Hasse
04dc51732b Merge branch 'feature/spi_cxx' into 'master'
[cxx]: simple spi master class

Closes IDF-3750

See merge request espressif/esp-idf!13363
2021-10-26 02:44:35 +00:00
Fu Hanxi
9919b75ec1 build: add CONFIG_APP_REPRODUCIBLE_BUILD menuconfig option to produce reproducible binaries 2021-10-26 10:43:15 +08:00
Fu Hanxi
a65de0ab1f ldgen: generate ld files with fixed order of entries 2021-10-26 10:43:15 +08:00
Anton Maklakov
c670e17383 Merge branch 'feature/add_esp32-h2_esp32-c6_to_ttfw' into 'master'
tools: update ttfw to support ESP32-H2 and ESP32-C6 chips

See merge request espressif/esp-idf!15443
2021-10-26 02:35:29 +00:00
Guo Jia Cheng
a928411ab3 Merge branch 'feature/mdns-subtype' into 'master'
mdns: support service subtype

Closes IDFGH-3560

See merge request espressif/esp-idf!15467
2021-10-25 07:50:49 +00:00
Dmitry
1457c42f6f bugfix/esp-gdbstrub: add missing function for esp32c3/esp32h2. 2021-10-25 10:30:50 +03:00
Jakob Hasse
7efb01846f [cxx]: simple spi master class
* spi cxx unit test (CATCH-based, on host)
* added portmacro.h to driver mocking
* added simple testing app to write/read SPI,
  using an MPU9250
2021-10-25 14:56:59 +08:00
Darian
e5f5eb3cbb Merge branch 'refactor/freertos_deprecate_critical_nested_macros' into 'master'
freertos: Deprecate critical nested macros

Closes IDF-4036

See merge request espressif/esp-idf!15539
2021-10-23 07:42:15 +00:00
Alexey Gerenkov
111ba5bbe6 trax: Adds ESP32-S3 support 2021-10-22 23:36:28 +03:00
Alexey Gerenkov
5911eb3f3e apptrace: Adds ESP32-S3 support 2021-10-22 23:24:00 +03:00
Alex Lisitsyn
bdf0298009 Bugfix/modbus fix copyright headers 2021-10-23 01:23:03 +08:00
David Čermák
fb24a2941c Merge branch 'feature/add_dhcp_option' into 'master'
lwip/dhcp: add configure for enable vendor class identify option

Closes IDFGH-4998

See merge request espressif/esp-idf!13867
2021-10-22 14:37:22 +00:00
Krzysztof
3247f66783 tools: update ttfw to support ESP32-H2 and ESP32-C6 chips 2021-10-22 16:29:46 +08:00
Darian Leung
d6f2fa4bab freertos: Remove critical nested macros
This commit removes the following critical nested macros as follows:

- portENTER_CRITICAL_NESTED()
- portEXIT_CRITICAL_NESTED()

They are replaced with portSET_INTERRUPT_MASK_FROM_ISR() and
portCLEAR_INTERRUPT_MASK_FROM_ISR() which are the proper FreeRTOS interfaces.

Created a portmacro_deprecated.h for each port to contain deprecated API
that were originally from portmacro.h
2021-10-22 13:17:20 +08:00
Guo Jia Cheng
c1d3b295e8 Merge branch 'feature/trel' into 'master'
br: support Thread Radio Encapsulation Link (TREL)

See merge request espressif/esp-idf!15106
2021-10-22 03:31:41 +00:00
yuanjm
2fa617e510 ci: remove copyright ignore list 2021-10-22 11:17:59 +08:00
Anton Maklakov
1c44c3b966 Merge branch 'feature/toolchain_2021r2' into 'master'
Bring 2021r2 toolchains

Closes GCC-156, IDF-3571, IDF-842, IDFGH-4276, IDFGH-920, and IDFGH-790

See merge request espressif/esp-idf!15149
2021-10-22 01:03:16 +00:00
Jiacheng Guo
1e5c5f38d9 br: support Thread Radio Encapsulation Link (TREL)
TREL allows sending 15.4 frames on the backbone link by encapsulating it
in an UDP packet.
2021-10-21 19:55:58 +08:00
Omar Chebib
e7b1640199 Merge branch 'feature/fat_configure_volumes_kconfig' into 'master'
FAT: Number of volumes can now be configured through menuconfig

Closes IDFGH-5806

See merge request espressif/esp-idf!15445
2021-10-21 06:49:07 +00:00
Anton Maklakov
a047b15314 Merge branch 'version/v5.0.0' into 'master'
version: starting v5.0.0 development

See merge request espressif/esp-idf!15580
2021-10-21 03:37:51 +00:00
Xie Wen Xiang
4b2396e7fc Merge branch 'bugfix/btdm_fix_some_bluedroid_issues' into 'master'
Fix some bluedroid issues

Closes BT-1926 and FCS-743

See merge request espressif/esp-idf!15170
2021-10-21 03:18:22 +00:00
morris
3a530e3311 Merge branch 'refactor/timer_ll_hal_clean_before_ng' into 'master'
timer: clean up hal/ll for driver-ng

See merge request espressif/esp-idf!15123
2021-10-20 23:59:30 +00:00
Ivan Grokhotkov
68233f58b4 version: starting v5.0.0 development 2021-10-20 22:25:38 +02:00
Anton Maklakov
414d9d6bc6 Update toolchains to esp-2021r2
Updated GDB to 9.2 version for xtensa chips
    Fixed coredump work for xtensa chips
    Fixed backtrace for xtensa chips
    Fixed multilib for riscv32 chips
    Fixed running GDB on some RaspberryPi configuration for riscv32 chip
    Fixed support of fnmatch(), iconv() and some other posix functions in stdlib

    Closes https://github.com/espressif/esp-idf/issues/6124
    Closes https://github.com/espressif/esp-idf/issues/2484
    Closes https://github.com/espressif/esp-idf/issues/3264
    Closes https://github.com/espressif/crosstool-NG/issues/13
    Closes https://github.com/espressif/crosstool-NG/pull/16
2021-10-20 22:00:39 +07:00
morris
e2275b1f63 gptimer: clean up hal and ll for driver-ng 2021-10-20 18:40:08 +08:00
Mahavir Jain
11d9faf38c spi_flash: enable cache access error test for all targets except ESP32-S2 2021-10-20 15:16:25 +05:30
Mahavir Jain
bdeaeb8d7f esp_system: enable "cache disable but cache accessed" interrupt for ESP32-S3 2021-10-20 15:16:25 +05:30
xiewenxiang
5e21788283 component/bt: Modify the bluetooth device name length limits 2021-10-20 16:19:28 +08:00
Roland Dobai
f6c1684664 Merge branch 'bugfix/header_ignore' into 'master'
Tools: Permanently ignore some files from header check

See merge request espressif/esp-idf!15559
2021-10-20 07:36:16 +00:00
Li Shuai
e8188e5d8f ci: replacing old header with new SPDX header style 2021-10-20 11:36:23 +08:00
Roland Dobai
0c24913608 Tools: Permanently ignore some header files from header check 2021-10-19 14:41:50 +02:00
Anton Maklakov
308b89acf3 Merge branch 'ci/move_check_tools_files_patterns_to_pre-commit' into 'master'
ci: move check_tools_files_patterns to pre-commit

See merge request espressif/esp-idf!15481
2021-10-19 11:55:19 +00:00
Jiacheng Guo
e7e8610f56 mdns: support service subtype
* Closes https://github.com/espressif/esp-idf/issues/5508
2021-10-19 17:54:17 +08:00
Shu Chen
dc19bd4e5a Merge branch 'feature/ot-esp-console' into 'master'
openthread: Use esp console for CLI

See merge request espressif/esp-idf!15365
2021-10-19 09:38:40 +00:00
Omar Chebib
63b96d7612 FAT: Number of volumes can now be configured through menuconfig
Closes https://github.com/espressif/esp-idf/issues/7513
2021-10-19 12:15:31 +08:00
David Čermák
75e2705269 Merge branch 'bugfix/esp_netif_public_headers' into 'master'
esp_netif: Fix implicit includes in public headers (GitHub PR)

Closes IDFGH-6002

See merge request espressif/esp-idf!15535
2021-10-18 16:43:59 +00:00
Roland Dobai
b544b521f4 Merge branch 'feat/idf_monitor_for_linux' into 'master'
feature: idf.py flash/monitor for linux target

Closes IDF-2417

See merge request espressif/esp-idf!15264
2021-10-18 12:39:14 +00:00
Zim Kalinowski
a631765333 Merge branch 'bugfix/fixed-cxx-build-include-hal' into 'master'
cxx: fixed cxx build failure when including hal

Closes IDFGH-6026

See merge request espressif/esp-idf!15540
2021-10-18 08:38:37 +00:00
0xFEEDC0DE64
822129e234 esp_netif: Fix implicit includes in public headers
Merges https://github.com/espressif/esp-idf/pull/7690
2021-10-18 10:01:52 +02:00
Ivan Grokhotkov
89b8830f50 Merge branch 'bugfix/build_spaces_in_path_tools' into 'master'
tools: fix issues related to spaces in paths in install and export scripts

Closes IDFGH-5913

See merge request espressif/esp-idf!15430
2021-10-18 06:49:49 +00:00
Jiacheng Guo
be4a45ab70 openthread: Use esp console for CLI 2021-10-18 12:27:50 +08:00
Fu Hanxi
bee690aa8d idf.py: add linux target support for idf.py flash and idf.py monitor 2021-10-18 11:50:50 +08:00
Zim Kalinowski
a7c9949dd9 Fixed build problem when icluding gpio_ll.h from cpp file 2021-10-17 14:29:31 +08:00
Darian Leung
b23de0f8a1 twdt: Fix timeout decimal literals to prevent uint32_t overflow
This commit fixes the decimal literals used in calculating task
watchdog timeouts to prevent them from causing a uint32_t oveflow.

Closes https://github.com/espressif/esp-idf/issues/6648
2021-10-15 16:07:27 +08:00
Anton Maklakov
cce5b49b6a Merge branch 'bugfix/retry_download_submodule' into 'master'
ci: retry download from Gitlab on error 500

See merge request espressif/esp-idf!15527
2021-10-15 01:50:08 +00:00
Ivan Grokhotkov
70d1f94739 ci: retry Gitlab operations on error 500 2021-10-14 17:42:48 +02:00
Guo Jia Cheng
484457f02c Merge branch 'bugfix/ot-log-verbosity' into 'master'
openthread: reduce default log verbosity

See merge request espressif/esp-idf!15326
2021-10-14 09:46:49 +00:00
Kevin (Lao Kaiyao)
dc20768913 Merge branch 'feature/add_i2s_es8311_example_and_loop_unit_test' into 'master'
example/i2s: add es8311 example and i2s unit-test

Closes IDF-3412

See merge request espressif/esp-idf!14459
2021-10-14 09:28:35 +00:00
Ivan Grokhotkov
b8d6985dca tools: idf_exe: quote idf.py path 2021-10-14 09:45:30 +02:00
Jakob Hasse
4a8bbb4586 Merge branch 'bugfix/newlib_missing_include' into 'master'
[newlib]: Added missing includes

Closes IDFGH-5789

See merge request espressif/esp-idf!15387
2021-10-14 05:56:08 +00:00
Li Shuai
c2910c15f4 Merge branch 'bugfix/wifi_bt_power_domain_leakage_current' into 'master'
fix wifi and bt power domain leakage current in light sleep

See merge request espressif/esp-idf!15236
2021-10-14 05:10:55 +00:00
Jiacheng Guo
b7fd68c438 openthread: reduce default log verbosity
Packet logging increases latency and packet drop rate significantly.
2021-10-14 12:14:17 +08:00
Jakob Hasse
6e59f9e8be [newlib]: Added missing includes
Closes https://github.com/espressif/esp-idf/issues/7498
2021-10-14 11:26:56 +08:00
Li Shuai
46dedca23c ci: replace old header with new SPDX header style 2021-10-14 10:51:10 +08:00
Marek Fiala
582a39126a Merge branch 'feature/idfpy_dashes_replace' into 'master'
tools: replace _ with - in idf.py

Closes IDFGH-3105

See merge request espressif/esp-idf!14752
2021-10-13 13:14:06 +00:00
Marek Fiala
ff18a96f7d tools: replace _ with - in idf.py
Closes https://github.com/espressif/esp-idf/issues/5126
2021-10-13 17:30:38 +08:00
chenjianxing
8e49eec076 esp_phy: update esp_phy submodule files copyright 2021-10-13 13:10:50 +08:00
Fu Hanxi
0b7a0d7cbd ci: move check_tools_files_patterns to pre-commit 2021-10-13 09:13:33 +08:00