]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agoMerge branch 'bugfix/bootloader_entry_addr_decoding' into 'master'
Ivan Grokhotkov [Thu, 5 Jul 2018 08:18:33 +0000 (16:18 +0800)]
Merge branch 'bugfix/bootloader_entry_addr_decoding' into 'master'

bootloader: move iram_seg 1k up to have better looking idf_monitor output

See merge request idf/esp-idf!2699

6 years agoMerge branch 'bugfix/xthal_get_interrupt_volatile' into 'master'
Ivan Grokhotkov [Thu, 5 Jul 2018 08:18:18 +0000 (16:18 +0800)]
Merge branch 'bugfix/xthal_get_interrupt_volatile' into 'master'

xtensa: make XTHAL_GET_INTERRUPT, XTHAL_GET_CCOUNT volatile

See merge request idf/esp-idf!2681

6 years agoMerge branch 'feature/clock_gettime' into 'master'
Ivan Grokhotkov [Wed, 4 Jul 2018 10:09:04 +0000 (18:09 +0800)]
Merge branch 'feature/clock_gettime' into 'master'

newlib: Add function clock_gettime()

See merge request idf/esp-idf!2610

6 years agoMerge branch 'feature/CAN_driver' into 'master'
Angus Gratton [Wed, 4 Jul 2018 09:33:24 +0000 (17:33 +0800)]
Merge branch 'feature/CAN_driver' into 'master'

CAN driver, examples, and docs

See merge request idf/esp-idf!2098

6 years agoMerge branch 'feature/nvs_part_gen_improvements' into 'master'
Ivan Grokhotkov [Wed, 4 Jul 2018 09:33:13 +0000 (17:33 +0800)]
Merge branch 'feature/nvs_part_gen_improvements' into 'master'

Feature/nvs part gen improvements

See merge request idf/esp-idf!2555

6 years agoCAN Driver
Darian Leung [Mon, 18 Dec 2017 12:32:29 +0000 (20:32 +0800)]
CAN Driver

The following commit contains the first version of the ESP32 CAN Driver.

closes #544

6 years agobootloader: move iram_seg 1k up to have better looking idf_monitor output
Ivan Grokhotkov [Wed, 4 Jul 2018 04:33:11 +0000 (12:33 +0800)]
bootloader: move iram_seg 1k up to have better looking idf_monitor output

When 2nd stage bootloader loads the ROM bootloader, it prints a
message similar to "entry 0x40080xxx", which idf_monitor decodes
(using application ELF file) as one of the reset vectors (xxx is <
400h). This moves the iram_seg of bootloader 1k up to prevent overlap
of bootloader .text and application vectors, making the output look
nicer. There is still a chance that the entry point decodes as some
symbol in application ELF file, but at least it won't have
"Exception" in its name.

6 years agoMerge branch 'feature/fix_rs485_test' into 'master'
Angus Gratton [Wed, 4 Jul 2018 01:13:52 +0000 (09:13 +0800)]
Merge branch 'feature/fix_rs485_test' into 'master'

driver: fix rs485 test

See merge request idf/esp-idf!2690

6 years agoMerge branch 'bugfix/host_io_fseek_args_init' into 'master'
Ivan Grokhotkov [Wed, 4 Jul 2018 01:05:23 +0000 (09:05 +0800)]
Merge branch 'bugfix/host_io_fseek_args_init' into 'master'

Host file I/O: Fix uninitialized fseek args

See merge request idf/esp-idf!2693

6 years agohost_file_io: Fixes uninitialized 'offset' and 'whence' fseek args
Alexey Gerenkov [Thu, 28 Jun 2018 08:50:20 +0000 (11:50 +0300)]
host_file_io: Fixes uninitialized 'offset' and 'whence' fseek args

6 years agodriver: fix rs485 test
Alex Lisitsyn [Tue, 3 Jul 2018 11:26:28 +0000 (13:26 +0200)]
driver: fix rs485 test

6 years agoMerge branch 'feature/uart_add_rs485_interface_support' into 'master'
Angus Gratton [Tue, 3 Jul 2018 06:34:33 +0000 (14:34 +0800)]
Merge branch 'feature/uart_add_rs485_interface_support' into 'master'

driver: add rs485 half duplex interface support to uart driver

See merge request idf/esp-idf!2415

6 years agoMerge branch 'feature/spi_little_endien' into 'master'
Angus Gratton [Tue, 3 Jul 2018 06:32:41 +0000 (14:32 +0800)]
Merge branch 'feature/spi_little_endien' into 'master'

feature(spi): provide macro to write multi-byte data straightly

See merge request idf/esp-idf!2634

6 years agoMerge branch 'bugfix/console_performance' into 'master'
Angus Gratton [Tue, 3 Jul 2018 06:04:23 +0000 (14:04 +0800)]
Merge branch 'bugfix/console_performance' into 'master'

idf_monitor: Fix console performance

See merge request idf/esp-idf!2570

6 years agonewlib: Add some functions from _POSIX_TIMERS
Konstantin Kondrashov [Mon, 25 Jun 2018 06:12:12 +0000 (11:12 +0500)]
newlib: Add some functions from _POSIX_TIMERS

clock_gettime();
clock_settime();
clock_getres();

Closes https://github.com/espressif/esp-idf/issues/1302

6 years agoMerge branch 'bugfix/tinytestfw_espport' into 'master'
Angus Gratton [Tue, 3 Jul 2018 01:10:12 +0000 (09:10 +0800)]
Merge branch 'bugfix/tinytestfw_espport' into 'master'

tiny-test-fw: handle case when ESPPORT is not set

See merge request idf/esp-idf!2684

6 years agotiny-test-fw: handle case when ESPPORT is not set
Ivan Grokhotkov [Mon, 2 Jul 2018 13:45:27 +0000 (21:45 +0800)]
tiny-test-fw: handle case when ESPPORT is not set

Fix bug introduced in 8a88dd35, where .decode was called on result of
os.getenv, which was None if ESPPORT was not set.

6 years agodriver: add rs485 half duplex interface support to uart driver (fix after review)
Alex Lisitsyn [Mon, 2 Jul 2018 13:21:02 +0000 (15:21 +0200)]
driver: add rs485 half duplex interface support to uart driver (fix after review)

An existing UART driver does not support RS485 half duplex mode.
This task adds this functionality to ESP_IDF UART driver.
driver/uart.c/h: updated to add support of RS485 half duplex mode
examples/peripherals/uart_echo_rs485/main/rs485_example.c: added test example
components/driver/test/test_uart.c: added test of RS485 half duplex mode
docs/en/api-reference/peripherals/uart.rst: updated documentation
test_uart.c: suppress GCC warnings about discarded const qualifiers
uart.rst: remove sphinx warning - "Duplicate explicit target name"
simple change in uart.h file
update (test_uart.c) after rebase from master
update uart.rst, uart.c, rs485_example.c
Update example description in file Readme.md
update uart.c/h, uart.rst, test_uart.c according to review results
update uart.h (uart_set_rx_timeout() description
test_uart.c remove ignore tag
uart.c/h: fix param errors
test_uart.c: Remove GCC warning supress
uart.rst: fix the notes
rs485_example.c: fix output
uart.c: remove reset using UART_RXFIFO_RST from driver.
readme.md: Update example description

The tests are completed using RS485 adapters hardware connected to two ESP32 WROVER KITs.

TW#13812
Closes https://github.com/espressif/esp-idf/pull/667
Closes https://github.com/espressif/esp-idf/pull/1006

6 years agodriver: add rs485 half duplex interface support to uart driver (fix indentation after...
Alex Lisitsyn [Mon, 2 Jul 2018 07:53:21 +0000 (09:53 +0200)]
driver: add rs485 half duplex interface support to uart driver (fix indentation after review)

An existing UART driver does not support RS485 half duplex mode.
This task adds this functionality to ESP_IDF UART driver.
driver/uart.c/h: updated to add support of RS485 half duplex mode
examples/peripherals/uart_echo_rs485/main/rs485_example.c: added test example
components/driver/test/test_uart.c: added test of RS485 half duplex mode
docs/en/api-reference/peripherals/uart.rst: updated documentation
test_uart.c: suppress GCC warnings about discarded const qualifiers
uart.rst: remove sphinx warning - "Duplicate explicit target name"
simple change in uart.h file
update (test_uart.c) after rebase from master
update uart.rst, uart.c, rs485_example.c
Update example description in file Readme.md
update uart.c/h, uart.rst, test_uart.c according to review results
update uart.h (uart_set_rx_timeout() description
test_uart.c remove ignore tag
uart.c/h: fix param errors
test_uart.c: Remove GCC warning supress
uart.rst: fix the notes
rs485_example.c: fix output

The tests are completed using RS485 adapters hardware connected to two ESP32 WROVER KITs.

TW#13812
Closes https://github.com/espressif/esp-idf/pull/667
Closes https://github.com/espressif/esp-idf/pull/1006

6 years agodriver: add rs485 half duplex interface support to uart driver (update after review)
Alex Lisitsyn [Wed, 27 Jun 2018 14:48:14 +0000 (16:48 +0200)]
driver: add rs485 half duplex interface support to uart driver (update after review)

An existing UART driver does not support RS485 half duplex mode.
This task adds this functionality to ESP_IDF UART driver.
driver/uart.c/h: updated to add support of RS485 half duplex mode
examples/peripherals/uart_echo_rs485/main/rs485_example.c: added test example
components/driver/test/test_uart.c: added test of RS485 half duplex mode
docs/en/api-reference/peripherals/uart.rst: updated documentation
test_uart.c: suppress GCC warnings about discarded const qualifiers
uart.rst: remove sphinx warning - "Duplicate explicit target name"
simple change in uart.h file
update (test_uart.c) after rebase from master
update uart.rst, uart.c, rs485_example.c
Update example description in file Readme.md
update uart.c/h, uart.rst, test_uart.c according to review results
update uart.h (uart_set_rx_timeout() description
test_uart.c remove ignore tag
uart.c/h: fix param errors
test_uart.c: Remove GCC warning supress
uart.rst: fix the notes
rs485_example.c: fix output

The tests are completed using RS485 adapters hardware connected to two ESP32 WROVER KITs.

TW#13812
Closes https://github.com/espressif/esp-idf/pull/667
Closes https://github.com/espressif/esp-idf/pull/1006

6 years agodriver: add rs485 half duplex interface support to uart driver (add jobs into *.yml...
Alex Lisitsyn [Tue, 26 Jun 2018 09:13:04 +0000 (11:13 +0200)]
driver: add rs485 half duplex interface support to uart driver (add jobs into *.yml file)

An existing UART driver does not support RS485 half duplex mode.
This task adds this functionality to ESP_IDF UART driver.
driver/uart.c/h: updated to add support of RS485 half duplex mode
examples/peripherals/uart_echo_rs485/main/rs485_example.c: added test example
components/driver/test/test_uart.c: added test of RS485 half duplex mode
docs/en/api-reference/peripherals/uart.rst: updated documentation
test_uart.c: suppress GCC warnings about discarded const qualifiers
uart.rst: remove sphinx warning - "Duplicate explicit target name"
simple change in uart.h file
update (test_uart.c) after rebase from master
update uart.rst, uart.c, rs485_example.c
Update example description in file Readme.md
update uart.c/h, uart.rst, test_uart.c according to review results
update uart.h (uart_set_rx_timeout() description
test_uart.c remove ignore tag

The tests are completed using RS485 adapters hardware connected to two ESP32 WROVER KITs.

TW#13812
Closes https://github.com/espressif/esp-idf/pull/667
Closes https://github.com/espressif/esp-idf/pull/1006

6 years agodriver: add rs485 half duplex interface support to uart driver (remove ignore tag...
Alex Lisitsyn [Wed, 6 Jun 2018 11:29:22 +0000 (13:29 +0200)]
driver: add rs485 half duplex interface support to uart driver (remove ignore tag to check ut case)

An existing UART driver does not support RS485 half duplex mode.
This task adds this functionality to ESP_IDF UART driver.
driver/uart.c/h: updated to add support of RS485 half duplex mode
examples/peripherals/uart_echo_rs485/main/rs485_example.c: added test example
components/driver/test/test_uart.c: added test of RS485 half duplex mode
docs/en/api-reference/peripherals/uart.rst: updated documentation
test_uart.c: suppress GCC warnings about discarded const qualifiers
uart.rst: remove sphinx warning - "Duplicate explicit target name"
simple change in uart.h file
update (test_uart.c) after rebase from master
update uart.rst, uart.c, rs485_example.c
Update example description in file Readme.md
update uart.c/h, uart.rst, test_uart.c according to review results
update uart.h (uart_set_rx_timeout() description
test_uart.c remove ignore tag

The tests are completed using RS485 adapters hardware connected to two ESP32 WROVER KITs.

TW#13812
Closes https://github.com/espressif/esp-idf/pull/667
Closes https://github.com/espressif/esp-idf/pull/1006

6 years agodriver: add rs485 half duplex interface support to uart driver (update after review)
Alex Lisitsyn [Thu, 31 May 2018 08:33:40 +0000 (10:33 +0200)]
driver: add rs485 half duplex interface support to uart driver (update after review)

An existing UART driver does not support RS485 half duplex mode.
This task adds this functionality to ESP_IDF UART driver.
driver/uart.c/h: updated to add support of RS485 half duplex mode
examples/peripherals/uart_echo_rs485/main/rs485_example.c: added test example
components/driver/test/test_uart.c: added test of RS485 half duplex mode
docs/en/api-reference/peripherals/uart.rst: updated documentation
test_uart.c: suppress GCC warnings about discarded const qualifiers
uart.rst: remove sphinx warning - "Duplicate explicit target name"
simple change in uart.h file
update (test_uart.c) after rebase from master
update uart.rst, uart.c, rs485_example.c
Update example description in file Readme.md
update uart.c/h, uart.rst, test_uart.c according to review results
update uart.h (uart_set_rx_timeout() description

The tests are completed using RS485 adapters hardware connected to two ESP32 WROVER KITs.

TW#13812
Closes https://github.com/espressif/esp-idf/pull/667
Closes https://github.com/espressif/esp-idf/pull/1006

6 years agodriver: add rs485 half duplex interface support to uart driver (update after review)
Alex Lisitsyn [Wed, 11 Apr 2018 06:56:00 +0000 (11:56 +0500)]
driver: add rs485 half duplex interface support to uart driver (update after review)

An existing UART driver does not support RS485 half duplex mode.
This task adds this functionality to ESP_IDF UART driver.
driver/uart.c/h: updated to add support of RS485 half duplex mode
examples/peripherals/uart_echo_rs485/main/rs485_example.c: added test example
components/driver/test/test_uart.c: added test of RS485 half duplex mode
docs/en/api-reference/peripherals/uart.rst: updated documentation
test_uart.c: suppress GCC warnings about discarded const qualifiers
uart.rst: remove sphinx warning - "Duplicate explicit target name"
simple change in uart.h file
update (test_uart.c) after rebase from master
update uart.rst, uart.c, rs485_example.c
Update example description in file Readme.md
update uart.c/h, uart.rst, test_uart.c according to review results

The tests are completed using RS485 adapters hardware connected to two ESP32 WROVER KITs.

TW#13812
Closes https://github.com/espressif/esp-idf/pull/667
Closes https://github.com/espressif/esp-idf/pull/1006

6 years agoMerge branch 'test/tinyfw_tweaks' into 'master'
Ivan Grokhotkov [Mon, 2 Jul 2018 11:41:25 +0000 (19:41 +0800)]
Merge branch 'test/tinyfw_tweaks' into 'master'

tiny-test-fw: small tweaks

See merge request idf/esp-idf!2496

6 years agoMerge branch 'bugfix/bt_os_abstraction_layer' into 'master'
Ivan Grokhotkov [Mon, 2 Jul 2018 10:42:07 +0000 (18:42 +0800)]
Merge branch 'bugfix/bt_os_abstraction_layer' into 'master'

bt: fix OS abstraction layer for correct critical section API usage

See merge request idf/esp-idf!2676

6 years agotiny-test-fw: add class diagram to document
He Yin Ling [Sun, 1 Jul 2018 13:17:04 +0000 (21:17 +0800)]
tiny-test-fw: add class diagram to document

6 years agotiny-test-fw: add requirements.txt, small docs tweaks
Ivan Grokhotkov [Fri, 1 Jun 2018 13:30:08 +0000 (15:30 +0200)]
tiny-test-fw: add requirements.txt, small docs tweaks

6 years agotiny-test-fw: IDFDUT: in the absence of configuration, try ESPPORT first
Ivan Grokhotkov [Mon, 25 Jun 2018 06:43:40 +0000 (14:43 +0800)]
tiny-test-fw: IDFDUT: in the absence of configuration, try ESPPORT first

6 years agoMerge branch 'bugfix/spi_flash_deadlock' into 'master'
Ivan Grokhotkov [Mon, 2 Jul 2018 10:39:16 +0000 (18:39 +0800)]
Merge branch 'bugfix/spi_flash_deadlock' into 'master'

spi_flash: raise priority of the task performing spi_flash operation

See merge request idf/esp-idf!2609

6 years agoMerge branch 'bugfix/rom_libgcc_functions' into 'master'
Ivan Grokhotkov [Mon, 2 Jul 2018 10:38:44 +0000 (18:38 +0800)]
Merge branch 'bugfix/rom_libgcc_functions' into 'master'

Fix linking of libgcc math functions to ROM

See merge request idf/esp-idf!2640

6 years agonvs_partition_generator: Add support for base64 representation of Binary data
Piyush Shah [Thu, 14 Jun 2018 10:57:37 +0000 (16:27 +0530)]
nvs_partition_generator: Add support for base64 representation of Binary data

6 years agonvs_partition_generator: Modifications to enable using the utility as a Python library
Piyush Shah [Thu, 14 Jun 2018 10:37:26 +0000 (16:07 +0530)]
nvs_partition_generator: Modifications to enable using the utility as a Python library

And also use directly as an executable

6 years agoMerge branch 'bugfix/gcc8_compile_errors' into 'master'
Anton Maklakov [Mon, 2 Jul 2018 09:43:02 +0000 (17:43 +0800)]
Merge branch 'bugfix/gcc8_compile_errors' into 'master'

Fix GCC 8 compile errors

See merge request idf/esp-idf!2466

6 years agowpa_supplicant: fix errors for GCC 8 support
Anton Maklakov [Tue, 29 May 2018 07:36:43 +0000 (15:36 +0800)]
wpa_supplicant: fix errors for GCC 8 support

components/wpa_supplicant/port/include/os.h:259:29: error: 'strncpy' output truncated before terminating nul copying 3 bytes from a string of the same length [-Werror=stringop-truncation]
 #define os_strncpy(d, s, n) strncpy((d), (s), (n))
                             ^~~~~~~~~~~~~~~~~~~~~~
components/wpa_supplicant/src/wpa2/eap_peer/eap.c:410:3: note: in expansion of macro 'os_strncpy'
   os_strncpy(sm->blob[0].name, CLIENT_CERT_NAME, BLOB_NAME_LEN);
   ^~~~~~~~~~

6 years agospi_flash: fix errors for GCC 8 support
Anton Maklakov [Thu, 24 May 2018 11:32:34 +0000 (19:32 +0800)]
spi_flash: fix errors for GCC 8 support

components/spi_flash/partition.c: In function 'load_partitions':
components/spi_flash/partition.c:179:66: error: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
         strncpy(item->info.label, (const char*) it->label, sizeof(it->label));
                                                                  ^

6 years agofatfs: fix errors for GCC 8 support and some indentation
Anton Maklakov [Thu, 24 May 2018 11:29:33 +0000 (19:29 +0800)]
fatfs: fix errors for GCC 8 support and some indentation

components/fatfs/src/ff.c: In function 'f_fdisk':
components/fatfs/src/ff.c:5995:5: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
     for (n = 16; n < 256 && sz_disk / n / cluster_size > 1024; n *= 2) ;
     ^~~
components/fatfs/src/ff.c:5996:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  if (n == 256) n--;
  ^~

6 years agoipc: fix errors for GCC 8 support
Anton Maklakov [Thu, 24 May 2018 11:09:23 +0000 (19:09 +0800)]
ipc: fix errors for GCC 8 support

components/esp32/ipc.c: In function 'esp_ipc_init':
components/esp32/ipc.c:82:31: error: '%d' directive writing between 1 and 11 bytes into a region of size 5 [-Werror=format-overflow=]
         sprintf(task_name,"ipc%d",i);
                               ^~
components/esp32/ipc.c:82:27: note: directive argument in the range [-2147483648, 1]
         sprintf(task_name,"ipc%d",i);
                           ^~~~~~~
components/esp32/ipc.c:82:9: note: 'sprintf' output between 5 and 15 bytes into a destination of size 8
         sprintf(task_name,"ipc%d",i);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

6 years agonewlib: fix errors for GCC 8 support
Anton Maklakov [Thu, 24 May 2018 11:09:23 +0000 (19:09 +0800)]
newlib: fix errors for GCC 8 support

components/newlib/include/sys/reent.h:405:11: error: unnecessary parentheses in declaration of '_sig_func' [-Werror=parentheses]
   void (**(_sig_func))(int);
           ^

6 years agofeature(spi): provide macro to write multi-byte data straightly
Michael (XIAO Xufeng) [Wed, 27 Jun 2018 10:41:57 +0000 (18:41 +0800)]
feature(spi): provide macro to write multi-byte data straightly

resolves https://github.com/espressif/esp-idf/issues/2062

6 years agoesp32: force pure math functions from libgcc to be linked from ROM
Ivan Grokhotkov [Thu, 28 Jun 2018 04:48:31 +0000 (12:48 +0800)]
esp32: force pure math functions from libgcc to be linked from ROM

6 years agoesp32: fix addresses of some libgcc functions in ROM ld script
Ivan Grokhotkov [Thu, 28 Jun 2018 04:25:26 +0000 (12:25 +0800)]
esp32: fix addresses of some libgcc functions in ROM ld script

6 years agoMerge branch 'bugfix/doc_blufi' into 'master'
Angus Gratton [Mon, 2 Jul 2018 04:12:48 +0000 (12:12 +0800)]
Merge branch 'bugfix/doc_blufi' into 'master'

bugfix/doc_blufi

See merge request idf/esp-idf!2644

6 years agoxtensa: make XTHAL_GET_INTERRUPT, XTHAL_GET_CCOUNT volatile
Ivan Grokhotkov [Mon, 2 Jul 2018 03:31:19 +0000 (11:31 +0800)]
xtensa: make XTHAL_GET_INTERRUPT, XTHAL_GET_CCOUNT volatile

INTERRUPT and CCOUNT registers will change outside of program control.
Making the inline assembly used to read these registers volatile
indicates this fact to the compiler.

Fixes https://github.com/espressif/esp-idf/issues/2127

6 years agoMerge branch 'docs/eclipse_regex' into 'master'
Angus Gratton [Mon, 2 Jul 2018 01:18:26 +0000 (09:18 +0800)]
Merge branch 'docs/eclipse_regex' into 'master'

Docs: Fix bugs in Eclipse setup in CN

See merge request idf/esp-idf!2620

6 years agoMerge branch 'bugfix/lwip_socket_leak_accept_enfile' into 'master'
Angus Gratton [Mon, 2 Jul 2018 01:02:21 +0000 (09:02 +0800)]
Merge branch 'bugfix/lwip_socket_leak_accept_enfile' into 'master'

lwip: Fix leak when accept() fails due to max socket limit

See merge request idf/esp-idf!2585

6 years agobt: fix OS abstraction layer for correct critical section API usage
Mahavir Jain [Sun, 1 Jul 2018 13:35:00 +0000 (19:05 +0530)]
bt: fix OS abstraction layer for correct critical section API usage

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
6 years agospi_flash: raise priority of the task performing spi_flash operation
Ivan Grokhotkov [Mon, 30 Oct 2017 10:53:39 +0000 (18:53 +0800)]
spi_flash: raise priority of the task performing spi_flash operation

The fix is for the situation when cache disabling mechanism causes
a deadlock with user tasks. Situation is as follows:

1. spi_flash operation is started from low-priority task on CPU0
2. It uses IPC to wake up high-priority IPC1 task on CPU1, preventing
   all other tasks on CPU1 from running. This is needed to safely
   disable the cache.
3. While the task which started spi_flash operation is waiting for IPC1
   task to acknowledge that CPU1 is not using cache anymore, it is
   preempted by a higher priority application task ("app0").
4. Task app0 busy-waits for some operation on CPU1 to complete. But
   since application tasks are blocked out by IPC1 task, this never
   happens. Since app0 is busy-waiting, the task doing spi flash
   operation never runs.

The more or less logical soltion to the problem would be to also do
cache disabling on CPU0 and the SPI flash operation itself from IPC0
task. However IPC0 task stack would need to be increased to allow doing
SPI flash operation (and IPC1 stack as well). This would waste some
memory. An alternative approach adopted in this fix is to call FreeRTOS
functions to temporary increase the priority of SPI flash operation task
to the same level as the IPC task.

Fixes https://github.com/espressif/arduino-esp32/issues/740
Fixes https://github.com/espressif/esp-idf/issues/1157

6 years agoMerge branch 'bugfix/coex_bug' into 'master'
Jiang Jiang Jian [Sat, 30 Jun 2018 14:29:18 +0000 (22:29 +0800)]
Merge branch 'bugfix/coex_bug' into 'master'

esp32: fix coex bug

See merge request idf/esp-idf!2603

6 years agoMerge branch 'bugfix/btdm_fix_gattc_register_multi_srvc_chg' into 'master'
Jiang Jiang Jian [Sat, 30 Jun 2018 03:30:41 +0000 (11:30 +0800)]
Merge branch 'bugfix/btdm_fix_gattc_register_multi_srvc_chg' into 'master'

Component/bt: fix register multi service change when register multi gattc

See merge request idf/esp-idf!2625

6 years agoMerge branch 'bugfix/btdm_delete_deprecated_files' into 'master'
Jiang Jiang Jian [Fri, 29 Jun 2018 11:37:03 +0000 (19:37 +0800)]
Merge branch 'bugfix/btdm_delete_deprecated_files' into 'master'

Component/bt: delete deprecated files

See merge request idf/esp-idf!2583

6 years agoMerge branch 'bugfix/btdm_bt_remove_device_disconnect' into 'master'
Jiang Jiang Jian [Fri, 29 Jun 2018 11:29:57 +0000 (19:29 +0800)]
Merge branch 'bugfix/btdm_bt_remove_device_disconnect' into 'master'

component/bt: Fix bug of BT and BLE remove bond device

See merge request idf/esp-idf!2562

6 years agoMerge branch 'bugfix/btdm_bad_pointer_of_bt_gap' into 'master'
Jiang Jiang Jian [Fri, 29 Jun 2018 11:25:13 +0000 (19:25 +0800)]
Merge branch 'bugfix/btdm_bad_pointer_of_bt_gap' into 'master'

component/bt: Fix some bad point calculations of BT GAP

See merge request idf/esp-idf!2655

6 years ago esp32: fix coex bug
Tian Hao [Sun, 24 Jun 2018 08:38:05 +0000 (16:38 +0800)]
esp32: fix coex bug

    1. fix BLE connection missing in coex mode
    2. modify other parameters to make coex priority more reasonable
    3. fix modem sleep procedure trap cause Wifi disable RF when BT is
    working. Such cause that BR/EDR is difficult to be connected, BLE
    connection stability decrease and so on.
    4. modify BR/EDR coexist duration to imrove BR/EDR connect success
    ratio.
    5. Due to the hardware coexist bug, BLE scan interval/window should
    be less than 0x100(about 160ms). Therefore, it will cause BLE cannot
    scan any advertising packet while WiFi have higher priority
    behaviour(such like RX beacon, scan, TX/RX VO packets and etc.).

6 years agoMerge branch 'bugfix/btdm_some_ble_hid_bugs' into 'master'
Jiang Jiang Jian [Fri, 29 Jun 2018 07:36:53 +0000 (15:36 +0800)]
Merge branch 'bugfix/btdm_some_ble_hid_bugs' into 'master'

component/bt: Fix some hid bugs

See merge request idf/esp-idf!2628

6 years agoMerge branch 'feature/optimize_wifi_memory' into 'master'
Jiang Jiang Jian [Fri, 29 Jun 2018 07:24:09 +0000 (15:24 +0800)]
Merge branch 'feature/optimize_wifi_memory' into 'master'

Optimize WiFi memory

See merge request idf/esp-idf!2650

6 years agoMerge branch 'bugfix/btdm_fix_stop_adv_error_in_dual_core' into 'master'
Jiang Jiang Jian [Fri, 29 Jun 2018 07:06:49 +0000 (15:06 +0800)]
Merge branch 'bugfix/btdm_fix_stop_adv_error_in_dual_core' into 'master'

component/bt: fix stop adv error in dual core

See merge request idf/esp-idf!2561

6 years agoMerge branch 'bugfix/btdm_modify_service_uuid_of_sec_gatts_demo' into 'master'
Jiang Jiang Jian [Fri, 29 Jun 2018 07:00:29 +0000 (15:00 +0800)]
Merge branch 'bugfix/btdm_modify_service_uuid_of_sec_gatts_demo' into 'master'

Component/bt: modify service uuid of ble_sec_gatts demo

See merge request idf/esp-idf!2612

6 years agoMerge branch 'bugfix/btdm_fix_no_adv_packet' into 'master'
Jiang Jiang Jian [Fri, 29 Jun 2018 06:59:01 +0000 (14:59 +0800)]
Merge branch 'bugfix/btdm_fix_no_adv_packet' into 'master'

component/bt: fix no adv packets

See merge request idf/esp-idf!2647

6 years agoComponent/bt: fix register multi service change when register multi gattc
zhiweijian [Tue, 26 Jun 2018 08:39:30 +0000 (16:39 +0800)]
Component/bt: fix register multi service change when register multi gattc

6 years agoMerge branch 'bugfix/btdm_respond_error_when_receives_unsupported_request' into ...
Jiang Jiang Jian [Fri, 29 Jun 2018 06:47:12 +0000 (14:47 +0800)]
Merge branch 'bugfix/btdm_respond_error_when_receives_unsupported_request' into 'master'

component/bt: Fix bug: Respond with the Error Response when receiving a request…

See merge request idf/esp-idf!2591

6 years agoMerge branch 'bugfix/btdm_rm_assert_in_isr' into 'master'
Jiang Jiang Jian [Fri, 29 Jun 2018 06:24:28 +0000 (14:24 +0800)]
Merge branch 'bugfix/btdm_rm_assert_in_isr' into 'master'

bugfix/btdm_rm_assert_in_isr

See merge request idf/esp-idf!2633

6 years agoMerge branch 'bugfix/prevent_btsleep_dfs_coex' into 'master'
Jiang Jiang Jian [Fri, 29 Jun 2018 06:23:40 +0000 (14:23 +0800)]
Merge branch 'bugfix/prevent_btsleep_dfs_coex' into 'master'

prevent Dynamic Frequency Scaling to be used together with bluetooth modem sleep

See merge request idf/esp-idf!2645

6 years agoMerge branch 'bugfix/btdm_singular_sleep_time_correction' into 'master'
Jiang Jiang Jian [Fri, 29 Jun 2018 06:22:58 +0000 (14:22 +0800)]
Merge branch 'bugfix/btdm_singular_sleep_time_correction' into 'master'

Bugfix/btdm singular sleep time correction

See merge request idf/esp-idf!2635

6 years agocomponent/bt: Fix some bad point calculations of BT GAP
baohongde [Fri, 29 Jun 2018 03:40:46 +0000 (11:40 +0800)]
component/bt: Fix some bad point calculations of BT GAP

In response to: https://github.com/espressif/esp-idf/issues/2103

6 years agoOptimize WiFi memory
Liu Zhi Fu [Thu, 28 Jun 2018 13:24:44 +0000 (21:24 +0800)]
Optimize WiFi memory

Optimize wifi memory (b987c01d)
1. Decrease WiFi task stack size by 512 Bytes
2. Modify WiFi NVS configuration array from static to dynamic
3. Move interrupt/RX relating variables from .bss segment to .data segment
4. Modify WiFi management short buffer from static to dynamic
5. Remove some useless WiFi buffer space

6 years agoprevent Dynamic Frequency Scaling when using bluetooth modem sleep
wangmengyang [Thu, 28 Jun 2018 10:08:18 +0000 (18:08 +0800)]
prevent Dynamic Frequency Scaling when using bluetooth modem sleep

This constraint will be elimiated after the issue is fixed

6 years agoUpdate eclipse-setup.rst
Jin Fang Cheng Cheng [Thu, 28 Jun 2018 09:58:19 +0000 (17:58 +0800)]
Update eclipse-setup.rst

6 years agoUpdate eclipse-setup-windows.rst
Jin Fang Cheng Cheng [Thu, 28 Jun 2018 09:57:55 +0000 (17:57 +0800)]
Update eclipse-setup-windows.rst

6 years agocomponent/bt: fix no adv packets
zwj [Thu, 28 Jun 2018 09:49:41 +0000 (17:49 +0800)]
component/bt: fix no adv packets

6 years agoUpdate eclipse-setup.rst
Jin Fang Cheng Cheng [Thu, 28 Jun 2018 08:28:54 +0000 (16:28 +0800)]
Update eclipse-setup.rst

6 years agoUpdate eclipse-setup.rst
Jin Fang Cheng Cheng [Thu, 28 Jun 2018 07:16:20 +0000 (15:16 +0800)]
Update eclipse-setup.rst

6 years agoUpdate eclipse-setup-windows.rst
Jin Fang Cheng Cheng [Thu, 28 Jun 2018 07:10:36 +0000 (15:10 +0800)]
Update eclipse-setup-windows.rst

6 years agoUpdate eclipse-setup-windows.rst
Jin Fang Cheng Cheng [Thu, 28 Jun 2018 07:00:40 +0000 (15:00 +0800)]
Update eclipse-setup-windows.rst

6 years agoFix the tables.
Jin Fang Cheng Cheng [Thu, 28 Jun 2018 06:09:14 +0000 (14:09 +0800)]
Fix the tables.

6 years agoFix the typo and tables.
Jin Fang Cheng Cheng [Thu, 28 Jun 2018 06:06:26 +0000 (14:06 +0800)]
Fix the typo and tables.

6 years agoMerge branch 'ci/remove_test_report' into 'master'
He Yin Ling [Thu, 28 Jun 2018 01:28:49 +0000 (09:28 +0800)]
Merge branch 'ci/remove_test_report' into 'master'

CI: optimize CI stages

See merge request idf/esp-idf!2602

6 years agocomponent/bt: fix the cornered case caused by singular finetime correction value...
wangmengyang [Wed, 27 Jun 2018 11:00:20 +0000 (19:00 +0800)]
component/bt: fix the cornered case caused by singular finetime correction value upon waking up from sleep

1. revert previous changes that adds 1-slot margin for first master Tx event, since this bugfix can handle that case

6 years agocomponent/bt: remove the call of assert in time conversion functions which can be...
wangmengyang [Wed, 27 Jun 2018 09:23:23 +0000 (17:23 +0800)]
component/bt: remove the call of assert in time conversion functions which can be caused in ISR

6 years agoMerge branch 'bugfix/pcnt_event_edge_case' into 'master'
He Yin Ling [Wed, 27 Jun 2018 02:00:53 +0000 (10:00 +0800)]
Merge branch 'bugfix/pcnt_event_edge_case' into 'master'

test: fix pcnt unit test fail

See merge request idf/esp-idf!2614

6 years agoMerge branch 'bugfix/ci_stop_all_thread_when_one_failed' into 'master'
He Yin Ling [Wed, 27 Jun 2018 01:59:46 +0000 (09:59 +0800)]
Merge branch 'bugfix/ci_stop_all_thread_when_one_failed' into 'master'

ci: stop main thread when one failed

See merge request idf/esp-idf!2615

6 years agoMerge branch 'bugfix/eclipse_regex' into 'master'
Angus Gratton [Wed, 27 Jun 2018 01:38:47 +0000 (09:38 +0800)]
Merge branch 'bugfix/eclipse_regex' into 'master'

Docs: Fix bugs in Eclipse setup

See merge request idf/esp-idf!2617

6 years agoMerge branch 'bugfix/conn_stress_test_test_during_sleep' into 'master'
Angus Gratton [Wed, 27 Jun 2018 00:12:49 +0000 (08:12 +0800)]
Merge branch 'bugfix/conn_stress_test_test_during_sleep' into 'master'

Bugfix/btdm_le_conn_initiating_assert

See merge request idf/esp-idf!2595

6 years agoMerge branch 'docs/update_resources.rst' into 'master'
Angus Gratton [Wed, 27 Jun 2018 00:09:57 +0000 (08:09 +0800)]
Merge branch 'docs/update_resources.rst' into 'master'

docs/update_resources.rst

See merge request idf/esp-idf!2532

6 years agoMerge branch 'docs/esp32-devkitv-v4_updates' into 'master'
Angus Gratton [Tue, 26 Jun 2018 23:29:52 +0000 (07:29 +0800)]
Merge branch 'docs/esp32-devkitv-v4_updates' into 'master'

Renamed ESP-WROOM-32 to ESP32-WROOM-32/D/U including links to data sheets,…

See merge request idf/esp-idf!2567

6 years agoFixed link to documentation and updated some wording
Jin Fang Cheng Cheng [Mon, 11 Jun 2018 18:22:04 +0000 (20:22 +0200)]
Fixed link to documentation and updated some wording

6 years agoRenamed ESP-WROOM-32 to ESP32-WROOM-32/D/U including links to data sheets, reflected...
krzychb [Sat, 16 Jun 2018 19:46:27 +0000 (21:46 +0200)]
Renamed ESP-WROOM-32 to ESP32-WROOM-32/D/U including links to data sheets, reflected upcoming ESP32-SOLO-1 as one of options for ESP32-DevKitC, provided updated schematics and notes on C15.

6 years agoMerge branch 'docs/sdio_slave_protocol_comb' into 'master'
Ivan Grokhotkov [Tue, 26 Jun 2018 11:36:08 +0000 (19:36 +0800)]
Merge branch 'docs/sdio_slave_protocol_comb' into 'master'

doc(sdio_slave): add some information of slave protocol

See merge request idf/esp-idf!2598

6 years agocomponent/bt: Fix some hid bugs
baohongde [Tue, 26 Jun 2018 09:48:07 +0000 (17:48 +0800)]
component/bt: Fix some hid bugs

1. Property of HID Information is Read
2. Property of HID Control Point is WriteWithoutResponse

6 years agoMerge branch 'mesh/bugfix' into 'master'
Jiang Jiang Jian [Tue, 26 Jun 2018 09:06:19 +0000 (17:06 +0800)]
Merge branch 'mesh/bugfix' into 'master'

mesh: update libs

See merge request idf/esp-idf!2580

6 years agodoc: Clarify some Eclipse setup steps
Angus Gratton [Tue, 26 Jun 2018 02:45:54 +0000 (12:45 +1000)]
doc: Clarify some Eclipse setup steps

6 years agobugfix: fix pcnt case "PCNT interrupt method test(control IO is high)"
houchenyao [Tue, 26 Jun 2018 01:07:51 +0000 (09:07 +0800)]
bugfix: fix pcnt case "PCNT interrupt method test(control IO is high)"

6 years agoUpdate eclipse-setup-windows.rst
Jin Fang Cheng Cheng [Tue, 26 Jun 2018 05:19:14 +0000 (13:19 +0800)]
Update eclipse-setup-windows.rst

6 years agoUpdate eclipse-setup.rst
Jin Fang Cheng Cheng [Tue, 26 Jun 2018 05:15:13 +0000 (13:15 +0800)]
Update eclipse-setup.rst

6 years agoUpdate eclipse-setup-windows.rst
Jin Fang Cheng Cheng [Tue, 26 Jun 2018 05:13:08 +0000 (13:13 +0800)]
Update eclipse-setup-windows.rst

6 years agoUpdate eclipse-setup-windows.rst according to https://gitlab.espressif.cn:6688/idf...
Jin Fang Cheng Cheng [Tue, 26 Jun 2018 04:55:34 +0000 (12:55 +0800)]
Update eclipse-setup-windows.rst according to https://gitlab.espressif.cn:6688/idf/esp-idf/merge_requests/2617.

6 years agoUpdate eclipse-setup.rst according to https://gitlab.espressif.cn:6688/idf/esp-idf...
Jin Fang Cheng Cheng [Tue, 26 Jun 2018 04:54:15 +0000 (12:54 +0800)]
Update eclipse-setup.rst according to https://gitlab.espressif.cn:6688/idf/esp-idf/merge_requests/2617

6 years agodoc: Fix Build Output Parser command pattern to include C++ correctly
Angus Gratton [Tue, 26 Jun 2018 02:44:01 +0000 (12:44 +1000)]
doc: Fix Build Output Parser command pattern to include C++ correctly

Previously only C files had build output correctly parsed.

Closes https://github.com/espressif/esp-idf/issues/2056

May also relate to:
https://github.com/espressif/esp-idf/issues/529
https://github.com/espressif/esp-idf/issues/17

6 years agocomponent/bt: add 1 slot margin to program the 1st master Tx event during BLE connection
wangmengyang [Fri, 22 Jun 2018 06:17:02 +0000 (14:17 +0800)]
component/bt: add 1 slot margin to program the 1st master Tx event during BLE connection

this will resolve the issue of failure of BLE connection stress test with sleep enabled

6 years agostop main thread when one failed
houchenyao [Tue, 26 Jun 2018 01:45:09 +0000 (09:45 +0800)]
stop main thread when one failed