]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agoMerge branch 'bugfix/rtc_isr_deregister_memory_leak' into 'master'
Angus Gratton [Thu, 12 Jul 2018 00:25:56 +0000 (08:25 +0800)]
Merge branch 'bugfix/rtc_isr_deregister_memory_leak' into 'master'

bugfix/memory leak in rtc_isr_deregister

See merge request idf/esp-idf!2754

6 years agodriver: Fix memory leak in rtc_isr_deregister()
Darian Leung [Wed, 11 Jul 2018 13:31:23 +0000 (21:31 +0800)]
driver: Fix memory leak in rtc_isr_deregister()

Closes #2179

6 years agoMerge branch 'bugfix/btdm_err_data_report' into 'master'
Jiang Jiang Jian [Wed, 11 Jul 2018 12:00:46 +0000 (20:00 +0800)]
Merge branch 'bugfix/btdm_err_data_report' into 'master'

component/bt: bugfix for erroneous data reporting always enabled

See merge request idf/esp-idf!2709

6 years agoMerge branch 'bugfix/wifi_sync_header_file_with_wifi_lib' into 'master'
Ivan Grokhotkov [Wed, 11 Jul 2018 11:13:17 +0000 (19:13 +0800)]
Merge branch 'bugfix/wifi_sync_header_file_with_wifi_lib' into 'master'

esp32: synchronize header file with that in wifi library

See merge request idf/esp-idf!2747

6 years agoMerge branch 'feature/test_idf_monitor' into 'master'
Angus Gratton [Wed, 11 Jul 2018 05:39:58 +0000 (13:39 +0800)]
Merge branch 'feature/test_idf_monitor' into 'master'

Test the IDF Monitor through sockets

See merge request idf/esp-idf!2556

6 years agoMerge branch 'bugfix/adc_two_point_cal_val_update' into 'master'
Angus Gratton [Wed, 11 Jul 2018 04:53:33 +0000 (12:53 +0800)]
Merge branch 'bugfix/adc_two_point_cal_val_update' into 'master'

Updated information in  documentation about  'Two Point Values' used to calibrate ADC readings

See merge request idf/esp-idf!2678

6 years agoesp32: synchronize header file with that in wifi library
XiaXiaotian [Wed, 11 Jul 2018 04:11:06 +0000 (12:11 +0800)]
esp32: synchronize header file with that in wifi library

6 years agoMerge branch 'bugfix/tw23667_tcp_pcb_purge_assert' into 'master'
Jiang Jiang Jian [Tue, 10 Jul 2018 02:16:47 +0000 (10:16 +0800)]
Merge branch 'bugfix/tw23667_tcp_pcb_purge_assert' into 'master'

lwip: fix the assertion in tcp_pcb_purge()

See merge request idf/esp-idf!2657

6 years agoMerge branch 'bugfix/gcc8_complation_errors' into 'master'
Anton Maklakov [Mon, 9 Jul 2018 14:55:52 +0000 (22:55 +0800)]
Merge branch 'bugfix/gcc8_complation_errors' into 'master'

Warnings and errors detected by GCC8

See merge request idf/esp-idf!2703

6 years agoMerge branch 'bugfix/wifi_channel_state_information_data_type' into 'master'
Jiang Jiang Jian [Mon, 9 Jul 2018 13:28:09 +0000 (21:28 +0800)]
Merge branch 'bugfix/wifi_channel_state_information_data_type' into 'master'

esp32: Change channel state information(CSI) data type from unsigned char to signed char

See merge request idf/esp-idf!2694

6 years agogcc8_newlib3: Compilation warnings and errors not specific to newlib v3
Alexey Gerenkov [Thu, 14 Jun 2018 16:11:21 +0000 (19:11 +0300)]
gcc8_newlib3: Compilation warnings and errors not specific to newlib v3

6 years agoMerge branch 'bugfix/smartconfig_ack' into 'master'
Ivan Grokhotkov [Mon, 9 Jul 2018 08:20:22 +0000 (16:20 +0800)]
Merge branch 'bugfix/smartconfig_ack' into 'master'

smartconfig_ack.c : Fixed the declaration of remote_ip in sc_ack_send_task()

See merge request idf/esp-idf!2689

6 years agoTest the IDF Monitor through sockets
Roland Dobai [Thu, 14 Jun 2018 09:56:20 +0000 (11:56 +0200)]
Test the IDF Monitor through sockets

Creates a socket by socat and sends tests to the idf_monitor through it.

6 years agocomponent/bt: bugfix for erroneous data reporting always enabled
wangmengyang [Thu, 5 Jul 2018 07:22:44 +0000 (15:22 +0800)]
component/bt: bugfix for erroneous data reporting always enabled

6 years agoMerge branch 'bugfix/btdm_invalid_sco_handle' into 'master'
Jiang Jiang Jian [Mon, 9 Jul 2018 04:10:02 +0000 (12:10 +0800)]
Merge branch 'bugfix/btdm_invalid_sco_handle' into 'master'

component/bt: bugfix of invalid SCO handle in HCI number_of_completed_packets event

See merge request idf/esp-idf!2707

6 years agoMerge branch 'bugfix/disable_lwip_trust_ip_by_default' into 'master'
Jiang Jiang Jian [Mon, 9 Jul 2018 02:03:30 +0000 (10:03 +0800)]
Merge branch 'bugfix/disable_lwip_trust_ip_by_default' into 'master'

lwip: disable ETHARP_TRUST_IP_MAC by default

See merge request idf/esp-idf!2652

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 agolwip: fix the assertion in tcp_pcb_purge()
Liu Zhi Fu [Fri, 29 Jun 2018 05:40:20 +0000 (13:40 +0800)]
lwip: fix the assertion in tcp_pcb_purge()

Fix the assertion in tcp_pcb_purge().

6 years agocomponent/bt: bugfix of invalid SCO handle in HCI number_of_completed_packets event
wangmengyang [Thu, 5 Jul 2018 04:00:41 +0000 (12:00 +0800)]
component/bt: bugfix of invalid SCO handle in HCI number_of_completed_packets event

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 agoesp32: Change channel state information(CSI) data type from unsigned char to signed...
Xia Xiaotian [Wed, 4 Jul 2018 03:39:14 +0000 (11:39 +0800)]
esp32: Change channel state information(CSI) data type from unsigned char to signed char

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 agosmartconfig_ack.c : Fixed the declaration of remote_ip in sc_ack_send_task()
Sachin Parekh [Tue, 3 Jul 2018 10:39:49 +0000 (16:09 +0530)]
smartconfig_ack.c : Fixed the declaration of remote_ip in sc_ack_send_task()

remote_ip was declared to be a pointer to an address that was
overwritten in later stage thus changing the address pointed by remote_ip

esp_smartconfig.h : Fixed a typo. station_config to wifi_config_t

Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
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 agolwip: disable ETHARP_TRUST_IP_MAC by default
Liu Zhi Fu [Fri, 29 Jun 2018 02:04:55 +0000 (10:04 +0800)]
lwip: disable ETHARP_TRUST_IP_MAC by default

Disable ETHARP_TRUST_IP_MAC by default because:
1. The LAN peer may not be trustful
2. The LAN peer may has problem to update its ARP entry

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 agoFixed link to 'TEMPLATE_EXAMPLE_README.md'
krzychb [Fri, 29 Jun 2018 17:21:51 +0000 (19:21 +0200)]
Fixed link to 'TEMPLATE_EXAMPLE_README.md'

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 agoThe 'Two Point Values' used to calibrate ADC readings, unlike 'eFuse Vref', are not...
krzychb [Fri, 29 Jun 2018 17:01:11 +0000 (19:01 +0200)]
The 'Two Point Values' used to calibrate ADC readings, unlike 'eFuse Vref', are not measured and burned into eFuse BLOCK3 for each individual chip during factory calibration. This operation should be done by user, if more accurate calibration is required.

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