]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agoesp32/test: set 60s timeout for one deep sleep case
He Yin Ling [Thu, 21 Jun 2018 11:58:24 +0000 (19:58 +0800)]
esp32/test: set 60s timeout for one deep sleep case

6 years agotiny-test-fw: save DUT log in different thread:
He Yin Ling [Thu, 21 Jun 2018 09:11:32 +0000 (17:11 +0800)]
tiny-test-fw: save DUT log in different thread:

We found some SD card on Raspberry Pi could have very bad performance.
It could take seconds to save small amount of data.
If the DUT receives data and save it as log, then it stops receiving data until log is saved.
This could lead to expect timeout. As an workaround to this issue,
``BaseDUT`` class will create a thread to save logs.
Then data will be passed to ``expect`` as soon as received.

6 years agotiny-test-fw: fix incorrect wait timeout in expect
He Yin Ling [Thu, 21 Jun 2018 08:38:46 +0000 (16:38 +0800)]
tiny-test-fw: fix incorrect wait timeout in expect

6 years agotiny-test-fw: filter examples with test level
He Yin Ling [Fri, 15 Jun 2018 09:45:24 +0000 (17:45 +0800)]
tiny-test-fw: filter examples with test level

6 years agotiny-test-fw: print expect failure when test fails
He Yin Ling [Fri, 15 Jun 2018 09:33:39 +0000 (17:33 +0800)]
tiny-test-fw: print expect failure when test fails

6 years agoMerge branch 'bugfix/fixes_from_github' into 'master'
Ivan Grokhotkov [Fri, 13 Jul 2018 07:03:50 +0000 (15:03 +0800)]
Merge branch 'bugfix/fixes_from_github' into 'master'

Fixes from Github

See merge request idf/esp-idf!2730

6 years agoMerge branch 'bugfix/crlf_auto_conversion' into 'master'
Ivan Grokhotkov [Fri, 13 Jul 2018 03:44:57 +0000 (11:44 +0800)]
Merge branch 'bugfix/crlf_auto_conversion' into 'master'

Convert CRLF (Windows line endings) to LF (Unix style), add CI check

See merge request idf/esp-idf!2119

6 years agoMerge branch 'fix/bootloader_typedef_enum' into 'master'
Angus Gratton [Fri, 13 Jul 2018 00:24:28 +0000 (08:24 +0800)]
Merge branch 'fix/bootloader_typedef_enum' into 'master'

bootloader: fix missing typedef on enum defintion

See merge request idf/esp-idf!2718

6 years agoMerge branch 'feature/ci_support_test_one_case_multiple_times' into 'master'
He Yin Ling [Thu, 12 Jul 2018 11:57:21 +0000 (19:57 +0800)]
Merge branch 'feature/ci_support_test_one_case_multiple_times' into 'master'

CI: support test one case multiple times by @bot

See merge request idf/esp-idf!2692

6 years agoMerge branch 'bugfix/tiny_test_fw_filter_invalid_serial_port' into 'master'
He Yin Ling [Thu, 12 Jul 2018 11:56:48 +0000 (19:56 +0800)]
Merge branch 'bugfix/tiny_test_fw_filter_invalid_serial_port' into 'master'

tiny-test-fw: filter out invalid IDF ports

See merge request idf/esp-idf!2745

6 years agoTools: Correct line endings in idf_monitor tests
Roland Dobai [Thu, 12 Jul 2018 06:37:04 +0000 (08:37 +0200)]
Tools: Correct line endings in idf_monitor tests

6 years agoReplace all DOS line endings with Unix
Angus Gratton [Wed, 4 Jul 2018 23:01:03 +0000 (09:01 +1000)]
Replace all DOS line endings with Unix

Command run was:
git ls-tree -r HEAD --name-only | xargs dos2unix

6 years agoci: Add line endings check for CRLF in repository
Angus Gratton [Fri, 23 Mar 2018 06:05:16 +0000 (17:05 +1100)]
ci: Add line endings check for CRLF in repository

6 years agobootloader: fix missing typedef on enum defintion
weyoui [Tue, 3 Jul 2018 02:58:34 +0000 (11:58 +0900)]
bootloader: fix missing typedef on enum defintion

(MINOR CHANGES)
Closes https://github.com/espressif/esp-idf/pull/2140

6 years agoMerge branch 'bugfix/beacon_info_do_not_update_after_user_scan' into 'master'
Jiang Jiang Jian [Thu, 12 Jul 2018 09:24:54 +0000 (17:24 +0800)]
Merge branch 'bugfix/beacon_info_do_not_update_after_user_scan' into 'master'

Wifi: bugfix of beacon info don't update after user scan

See merge request idf/esp-idf!2749

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

pthread: fix esp_pthread.h to compatible with c++

See merge request idf/esp-idf!2739

6 years agoMerge branch 'fix/sdio_speed_4bit' into 'master'
Angus Gratton [Thu, 12 Jul 2018 00:54:03 +0000 (08:54 +0800)]
Merge branch 'fix/sdio_speed_4bit' into 'master'

fix(sdio): update sdio to better run in 4bit HS mode

See merge request idf/esp-idf!2704

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 agoWifi: bugfix of beacon info don't update after user scan
Deng Xin [Wed, 11 Jul 2018 08:38:33 +0000 (16:38 +0800)]
Wifi: bugfix of beacon info don't update after user scan

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 agopthread: fix esp_pthread.h to compatible with c++
morris [Tue, 10 Jul 2018 09:01:56 +0000 (17:01 +0800)]
pthread: fix esp_pthread.h to compatible with c++

esp_pthread.h is missing the necessary extern "C"{ ... } wrapper to be compatible with C++. The result is link errors when you call its functions from C++ code, because the compiler generates mangled names.

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

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 agoCI: support test one case multiple times by @bot
He Yin Ling [Tue, 3 Jul 2018 14:00:09 +0000 (22:00 +0800)]
CI: support test one case multiple times by @bot

6 years agotiny-test-fw: filter out invalid IDF ports
He Yin Ling [Tue, 10 Jul 2018 16:00:40 +0000 (00:00 +0800)]
tiny-test-fw: filter out invalid IDF ports

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 agossl_pm_reload_crt() - Fix verify_mode checking to match openssl documentation https...
Chris Morgan [Sat, 7 Jul 2018 19:54:47 +0000 (15:54 -0400)]
ssl_pm_reload_crt() - Fix verify_mode checking to match openssl documentation https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set_verify.html

Merges https://github.com/espressif/esp-idf/pull/2162

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 agoalias 需要添加到 .bashrc 文件中
Carney Wu [Sun, 24 Jun 2018 15:16:24 +0000 (23:16 +0800)]
alias 需要添加到 .bashrc 文件中

Merges https://github.com/espressif/esp-idf/pull/2097

6 years agoalias should set in .bashrc
Carney Wu [Sun, 24 Jun 2018 15:12:12 +0000 (23:12 +0800)]
alias should set in .bashrc

Merges https://github.com/espressif/esp-idf/pull/2097

6 years agoFixed typos on booleans.
Le-Andrew [Fri, 15 Jun 2018 09:32:43 +0000 (19:32 +1000)]
Fixed typos on booleans.

Merges https://github.com/espressif/esp-idf/pull/2067

6 years agodoc/wifi: small fixup
Avraham Shukron [Wed, 13 Jun 2018 05:45:41 +0000 (08:45 +0300)]
doc/wifi: small fixup

The WiFi station connect sequence diagram does not have any "successful" ending.
It looks like a copy-paste error, because there are two consequent `SYSTEM_EVENT_STA_DISCONNECTED` events firing with nothing happening in between.

I think the original meaning was that the last event should be `SYSTEM_EVENT_STA_CONNECTED` to signify that if all goes well, that is the event that will be fired.

Merges https://github.com/espressif/esp-idf/pull/2065

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 agofix(sdmmc): disable all pulldowns used by sdmmc host
michael [Wed, 4 Jul 2018 12:38:14 +0000 (20:38 +0800)]
fix(sdmmc): disable all pulldowns used by sdmmc host

6 years agofix(sdio_slave): improve sdio slave for high speed and 4 bit mode
michael [Wed, 4 Jul 2018 12:37:30 +0000 (20:37 +0800)]
fix(sdio_slave): improve sdio slave for high speed and 4 bit mode

6 years agofix(sdio_slave): fix minor issues like return value of send function, output arg...
michael [Fri, 6 Jul 2018 08:02:32 +0000 (16:02 +0800)]
fix(sdio_slave): fix minor issues like return value of send function, output arg, etc.

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