Angus Gratton
ede47ed33a
tcpip_adapter: Update header descriptions, constify some parameters
2018-12-18 14:07:43 +11:00
Liu Zhi Fu
b3380b79d1
esp32: fix WiFi stop bug in WiFi/BT coexist mode
...
This fix includes following changes:
1. Fix the bug that esp_restart()/esp_wifi_stop() sometimes fails in WiFi/BT coexist mode.
2. Add a timer for WiFi stop and stop WiFi forcibly once the timer expires.
2018-12-17 20:33:31 +08:00
wangmengyang
561021e7f7
component/bt: use a pm_lock to prevent light sleep when bluetooth is enabled due to current imcompatibility
2018-12-17 19:54:57 +08:00
David Cermak
6bb68a5a75
mdns: fixed static memory leak
2018-12-17 12:09:23 +01:00
David Cermak
c8cb4cd3c8
mdns: check all mallocs for failure and add default hook to log error with free heap
...
solves crash about _mdns_result_txt_create when stress test
2018-12-17 12:09:11 +01:00
zhiweijian
05e84cad1e
Component/bt: fix receive adv pkt when enable duplicate scan
2018-12-17 15:49:04 +08:00
Roland Dobai
e1e6c1ae0a
components: Correct the Python coding style
2018-12-17 07:52:38 +01:00
Angus Gratton
c69907a54b
Merge branch 'bugfix/ota_magic_byte_issue' into 'master'
...
bugfix/ota_magic_byte_issue: Fixes OTA magic byte error
See merge request idf/esp-idf!3936
2018-12-17 13:19:44 +08:00
Supreet Deshpande
1d4bb7cc4d
bugfix/ota_magic_byte_issue: Fix indent and replace constant by macro
...
Replace 0xE9 by ESP_IMAGE_HEADER_MAGIC.
2018-12-17 09:56:18 +05:30
zwj
90a451c181
fix crash when adv and scan coex and optimize duplicate scan
2018-12-17 11:40:50 +08:00
Jiang Jiang Jian
5436be94b6
Merge branch 'bugfix/btdm_assert_ble_65536' into 'master'
...
fix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222
See merge request idf/esp-idf!3966
2018-12-14 20:29:04 +08:00
Ivan Grokhotkov
da2116f55c
Merge branch 'bugfix/build_system_test_fixes_windows' into 'master'
...
Various fixes for build tests on Windows
See merge request idf/esp-idf!3944
2018-12-14 20:19:51 +08:00
Tian Hao
1a4fa06125
fix bug that there's very low ratio to cause BLE assert(65536, 0) in rwble.c at line 222
2018-12-14 17:38:52 +08:00
Jiang Jiang Jian
6cb37ecc57
Merge branch 'bugfix/btdm_modem_sleep_cowork_with_DFS' into 'master'
...
bugfix/btdm_modem_sleep_cowork_with_DFS
See merge request idf/esp-idf!3797
2018-12-14 14:03:56 +08:00
wangmengyang
b4299433bd
component/bt: add DRAM_ATTR attribute to global variables(bss segment) in bt.c which can be accessed in ISR
2018-12-14 11:29:00 +08:00
Jiang Jiang Jian
bc30569842
Merge branch 'bufix/btdm_fix_save_key_when_auth_mode_without_bond' into 'master'
...
Component/bt: fix save keys when auth mode without bond
See merge request idf/esp-idf!3782
2018-12-14 10:35:14 +08:00
Renz Christian Bagaporo
72cd1ac43f
mbedtls: fix issue with non idf.py build on windows
2018-12-13 20:44:29 +08:00
Jiang Jiang Jian
58a200e70c
Merge branch 'bugfix/btdm_fix_auth_mode_error_when_reconnection_in_smp' into 'master'
...
Component/bt: fix auth_mode error when reconnection in SMP
See merge request idf/esp-idf!3856
2018-12-13 17:04:12 +08:00
zhiweijian
7c6211fe45
Component/bt: fix save keys when auth mode without bond
2018-12-13 15:43:31 +08:00
Xia Xiaotian
c03f84cecf
add hostname option in dhcp discover
...
Hostname option has been removed from dhcp discover since IDFv3.2.
But it remains in dhcp request due to which ESP32 can not get IPv4 address
from some APs. Re-add hostname option to dhcp discover to solve this issue.
2018-12-13 07:05:46 +00:00
Jiang Jiang Jian
d75ab3208f
Merge branch 'test/add_case_to_detect_ds2ds_issue' into 'master'
...
test: add case to detect ds2ds issue
See merge request idf/esp-idf!3834
2018-12-13 14:49:30 +08:00
Jiang Jiang Jian
bfd22a24da
Merge branch 'bugfix/btdm_fix_accept_specified_sec_auth' into 'master'
...
Component/bt: fix accept specified sec auth error
See merge request idf/esp-idf!3770
2018-12-13 11:19:53 +08:00
Ivan Grokhotkov
0cf8d1380e
soc/rtc: reset another BBPLL related register
...
Follow-up to b21ffc8a
: an additional register needs to be reset.
Ref. https://github.com/espressif/esp-idf/issues/2711
2018-12-12 12:24:48 +08:00
David Cermak
a6b2b73f03
mdns: resolve memory leak when txt record received multiple times
2018-12-11 21:59:44 +01:00
David Cermak
31163f02d5
mdns: skip sending search when finished, not properly locked timer task
2018-12-11 21:56:01 +01:00
wangmengyang
59f34461d7
component/bt: bugfix of bluetooth modem sleep not being able to work with Dynamic Frequency Scaling
...
1. start an esp_timer on entering sleep to acquire pm_lock before wake up from modem sleep
2. decrease the clock division of XTAL fed to bluetooth low power clock from 32us to 2us period to allow to work under 240MHz Max CPU frequency
3. decrease the minimum sleep duration threshold to allow shorter bluetooth modem sleep period, especially for BLE with short connection interval
4. reconfigure bluetooth baseband(BT-BB) settings after PHY/RF init upon waking up from modem sleep to avoid packet RX/TX performance degradation
2018-12-11 16:49:01 +08:00
Konstantin Kondrashov
dde1fd9b94
bootloader: Add support flags for rollback app
...
Added
* Set actual ota_seq if both ota are init or incorrect.
* Description of rollback
* UT tests
Closes TW15459
2018-12-11 11:54:21 +08:00
Konstantin Kondrashov
c0f5e58bdc
build: Add trimming PROJECT_VER and PROJECT_NAME vars
2018-12-11 11:23:53 +08:00
Supreet Deshpande
55d5ee1e79
bugfix/ota_magic_byte_issue: Fixes OTA magic byte error
...
On enabling flash encryption, OTA fails with magic byte error in the second chunk
if the http data is split into two or more chunks and first chunk is less than 16.
2018-12-10 17:16:38 +05:30
Ivan Grokhotkov
230147a169
Merge branch 'bugfix/nvs_test_compile_err' into 'master'
...
nvs_flash: Fix compilation of host testcases when g++-8.x is used.
See merge request idf/esp-idf!3699
2018-12-10 17:42:43 +08:00
Anton Maklakov
81bf07ed4d
test: Fix some unused identifier warnings
2018-12-10 12:34:16 +08:00
Ivan Grokhotkov
26a6b3b243
Merge branch 'feature/unity_set_test_from_gdb' into 'master'
...
unity: add a hook to run test from gdb session
See merge request idf/esp-idf!3916
2018-12-10 12:25:39 +08:00
Sagar Bijwe
fc37dc1944
nvs_flash: Fix compilation of host testcases when g++-8.x is used.
...
When std::bind is used, it requires inclusion of <functional> header.
This was not mandatory with earlier versions of g++ (4.x), may be because they
had experimental support for c++11.
2018-12-07 09:40:45 +00:00
Ivan Grokhotkov
04c511c9b5
panic: dump some instruction memory on IllegalInstruction exception
2018-12-07 16:50:00 +08:00
Ivan Grokhotkov
6c868c4bee
Merge branch 'bugfix/bbpll_wakeup_reset' into 'master'
...
soc/rtc: reset BBPLL config when enabling it
See merge request idf/esp-idf!3911
2018-12-07 14:21:59 +08:00
Ivan Grokhotkov
8b885fb935
Merge branch 'docs/add_note_for_ulp_set_wakeup_period' into 'master'
...
ulp: add note regarding limitation of ulp_set_wakeup_period in deep sleep mode
See merge request idf/esp-idf!3796
2018-12-07 14:07:14 +08:00
Ivan Grokhotkov
def2a13297
Merge branch 'bugfix/app_version' into 'master'
...
app_update: Fix esp_app_desc unused var for Cmake
See merge request idf/esp-idf!3891
2018-12-07 14:06:17 +08:00
Ivan Grokhotkov
423d7b9a65
Merge branch 'bugfix/sysview_cache_err' into 'master'
...
app_trace: linker fragment fixes
See merge request idf/esp-idf!3835
2018-12-07 14:04:28 +08:00
Ivan Grokhotkov
893cb83343
Merge branch 'bugfix/vfs_unregister_nested' into 'master'
...
vfs: fix unregister removing top level VFS instead of nested
See merge request idf/esp-idf!3917
2018-12-07 14:03:34 +08:00
Ivan Grokhotkov
4e77efc36b
Merge branch 'bugfix/clang_compatibility' into 'master'
...
clang compatibility fixes
See merge request idf/esp-idf!3912
2018-12-07 14:03:05 +08:00
Konstantin Kondrashov
d4cb14bc65
app_update: Fix esp_app_desc unused var for Cmake
2018-12-07 12:04:40 +08:00
Ivan Grokhotkov
61beb16225
vfs: fix unregister removing top level VFS instead of nested
...
Credits @neoniousTR.
Fixes https://github.com/espressif/esp-idf/pull/2770
2018-12-06 19:43:49 +08:00
Ivan Grokhotkov
a646ea7993
unity: add a hook to run test from gdb session
2018-12-06 19:37:51 +08:00
Tian Hao
357f2264e6
fix bug that there's very low ratio to cause BLE assert(32768, 0) in rwble.c at line 222
2018-12-06 16:54:14 +08:00
Ivan Grokhotkov
3150920cb4
heap: __builtin_return_address argument has to be a literal value
...
Clang does not accept const int as an argument of __builtin_return_address.
Ref LLVM-14
2018-12-06 16:14:14 +08:00
Ivan Grokhotkov
271a2e8e97
console, ulp: don’t use nested functions
...
These are not supported by clang
Ref LLVM-12
2018-12-06 16:12:47 +08:00
Ivan Grokhotkov
b21ffc8a0c
soc/rtc: reset BBPLL configuration after enabling it
...
A workaround to reset BBPLL configuration after light sleep. Fixes the
issue that Wi-Fi can not receive packets after waking up from light
sleep.
Ref. https://github.com/espressif/esp-idf/issues/2711
2018-12-06 14:43:24 +08:00
Jiang Jiang Jian
d3b3f1e4a3
Merge branch 'bugfix/ethernet_enable_second_failure' into 'master'
...
fix ethernet phy init timeout
See merge request idf/esp-idf!3879
2018-12-05 16:12:19 +08:00
Jiang Jiang Jian
eb27686416
Merge branch 'bugfix/btdm_bugs_caused_by_coex' into 'master'
...
component/bt and esp32: fix two bluetooth bugs that caused by coexist module
See merge request idf/esp-idf!3860
2018-12-05 14:17:14 +08:00
Ivan Grokhotkov
37975c186d
Merge branch 'feature/pthread_name_affinity_config' into 'master'
...
pthread: make affinity and task name configurable
See merge request idf/esp-idf!3878
2018-12-05 13:46:05 +08:00
Ivan Grokhotkov
e04fd42176
Merge branch 'feature/refactoring_ota_part' into 'master'
...
bootloader/app_update: Refactoring otadata part
See merge request idf/esp-idf!3544
2018-12-05 12:59:34 +08:00
Angus Gratton
36be9b36dd
Merge branch 'bugfix/fix_menuconfig_for_windows' into 'master'
...
Fix various errors for menuconfig on Windows
Closes #50
See merge request idf/esp-idf!3848
2018-12-05 11:34:49 +08:00
Konstantin Kondrashov
f9522a0eb6
bootloader app_update: Refactoring otadata part
2018-12-05 11:20:03 +08:00
Ivan Grokhotkov
8a7b46aa90
Merge branch 'feature/anti_rollback_exp' into 'master'
...
esp32: Add firmware version to app
See merge request idf/esp-idf!3461
2018-12-05 11:10:04 +08:00
Angus Gratton
441e2d5011
Merge branch 'bugfix/register_structs_stdint' into 'master'
...
soc: Add "#include <stdint.h>" to all register structs
See merge request idf/esp-idf!3875
2018-12-05 08:05:56 +08:00
Anton Maklakov
deaecf164d
make: fix unexpected operator warning
2018-12-05 07:54:59 +08:00
Renz Christian Bagaporo
d411175e47
mbedtls, cmake: set host as unix when building in msys
2018-12-05 07:54:59 +08:00
zhiweijian
5c5799fa51
Component/bt: fix auth_mode error when reconnection in SMP
2018-12-04 18:05:25 +08:00
morris
dc043109d7
ethernet: phy init timeout
...
When ethernet enable again after disable it before, phy init will report timeout.
The cause of this problem is that the enabling of emac clock is too late, and should be placed before phy init.
2018-12-04 17:13:48 +08:00
Jeroen Domburg
d6ee27e313
Merge branch 'feat/spi_check_length_buffer' into 'master'
...
spi: add checks for slave buffer valid and master length
See merge request idf/esp-idf!3744
2018-12-04 11:48:32 +08:00
Angus Gratton
7f32995a4c
soc: Add "#include <stdint.h>" to all register structs
...
Closes https://github.com/espressif/esp-idf/issues/2239
TW24912
2018-12-04 11:17:38 +11:00
Tian Hao
a9429ee5da
component/bt and esp32: fix two bluetooth bugs that caused by coexist module
...
1. Fix interrupt watchdog timeout in bluetooth "btdm_bb_isr"
2. Fix BLE assert(512) or assert(1536) in rwble.c at line 222
3. Update librtc.a to fix BLE assert(512) in rwble.c at line 222
The #1 and #2 occurs random.
The #3 bug occurs in certain scenario:
1. If Wifi start softap and BLE is working
2. If wifi start station, but do not use normal station operation, such
as just use espnow, while BLE is working
3. Any other scenario, that wifi works without use software coexist
operation, while BLE is working(such as do advertising and ...)
4. update libcoexist.a version to v1.1.2
2018-12-03 19:41:43 +08:00
Konstantin Kondrashov
3b9cb25fe1
esp32: Add firmware version to app
...
Added a new structure esp_app_desc_t. It has info about firmware:
version, secure_version, project_name, time/date build and IDF version.
Added the ability to add a custom structure with a description of the firmware.
The esp_app_desc_t is located in fixed place in start of ROM secotor. It is located after structures esp_image_header_t and esp_image_segment_header_t.
app_version is filed from PROJECT_VER variable (if set in custom make file) or PROJECT_PATH/version.txt or git repo (git describe).
Add API to get app_desc from partition.
2018-12-03 16:52:04 +08:00
Mahavir Jain
588ecaae09
ulp: add note regarding limitation of ulp_set_wakeup_period in deep sleep mode
2018-12-03 11:41:10 +05:30
Angus Gratton
3bc970c5f4
Merge branch 'bugfix/partitions_tools_style_check' into 'master'
...
Remove parttool exemption from style check
See merge request idf/esp-idf!3847
2018-12-03 12:25:39 +08:00
Angus Gratton
554cf77963
Merge branch 'bugfix/convert_to_cmake' into 'master'
...
Fix minor issue with convert_to_cmake script
See merge request idf/esp-idf!3666
2018-12-03 11:39:12 +08:00
Jiang Jiang Jian
6bd497f9ed
Merge branch 'feature/btdm_ble_full_scan_support' into 'master'
...
component/bt: Added the ble full scan supported feature.
See merge request idf/esp-idf!3820
2018-11-30 21:53:21 +08:00
Jiang Jiang Jian
e07c5a22f2
Merge branch 'doc/RF_calibration' into 'master'
...
doc: add documentation for RF calibration
See merge request idf/esp-idf!3828
2018-11-30 21:50:29 +08:00
yulong
0f3eb977cd
component/bt: Added the ble full scan supported feature.
...
1. Add the full scan swith in the menuconfig;
2. Change the bt lib in order to support ble full scan
2018-11-30 20:48:42 +08:00
Renz Christian Bagaporo
a3b581bd8c
parttool: remove exemption from style check
2018-11-30 16:39:55 +08:00
Xia Xiaotian
59761b0fcb
doc: add documentation for RF calibration
...
Add an API to erase phy namespace of NVS
2018-11-30 16:26:56 +08:00
zhangyanjiao
e621e0af8b
wifi: add code for setting wifi log level and module
2018-11-30 15:24:22 +08:00
Angus Gratton
7458c1c1e2
Merge branch 'feature/ulp-assembler-version-check' into 'master'
...
Check assembler version
See merge request idf/esp-idf!3156
2018-11-30 14:57:01 +08:00
Angus Gratton
a34a27010b
Merge branch 'feature/partition_tools' into 'master'
...
Partition level tools
See merge request idf/esp-idf!3355
2018-11-30 14:15:51 +08:00
Ivan Grokhotkov
ba844caa8a
app_trace: fix linker fragment not included in Make build
2018-11-30 11:05:43 +08:00
Ivan Grokhotkov
46a948dafa
app_trace: require timer driver to be in IRAM
...
Closes https://github.com/espressif/esp-idf/issues/2760
2018-11-30 11:05:43 +08:00
Wangjialin
924daf7b84
bugfix(i2c): reduce speed of I2C master bus reset routine and release SDA
...
closes https://github.com/espressif/esp-idf/issues/2494
closes https://github.com/espressif/esp-idf/pull/2493
closes https://github.com/espressif/esp-idf/pull/2496
1. Change bus reset to handle interrupted READ sequences.
2. Slow down I2C to 100khz during reset
3. If a SLAVE device was in a read operation when the bus was interrupted, the SLAVE device is controlling SDA.The only bit during the 9 clock cycles of a byte READ the MASTER(ESP32) is guaranteed control over, is during the ACK bit period.
If the SLAVE is sending a stream of ZERO bytes, it will only release SDA during the ACK bit period. The master(ESP32) cannot generate a STOP unless SDA is HIGH. So, this reset code synchronizes the bit stream with, Either, the ACK bit, Or a 1 bit.
2018-11-30 10:08:28 +08:00
chuck todd
e55f9c1e98
1. Slow down I2C to 100khz During Reset
...
I am stealing this delay coding from @jeremyherbert #2493 pr.
2. Change Bus Reset to handle interrupted READ sequences.
The current code does not handle interrupted READ cycles.
If a SLAVE device was in a read operation when the bus was interrupted, the SLAVE device is controlling SDA.
The only bit during the 9 clock cycles of a byte READ the MASTER(ESP32) is guaranteed control over, is during the ACK bit period.
If the SLAVE is sending a stream of ZERO bytes, it will only release SDA during the ACK bit period. The master(ESP32) cannot generate a STOP unless SDA is HIGH.
So, this reset code synchronizes the bit stream with, Either, the ACK bit, Or a 1 bit.
3. fix typo
correct `sda_id` to `sda_io` in `i2c_master_clear_bus()` @ryan-ma found it. This typo was generated when I manually edited this patch on GitHub, I should have done a Copy/Paste operation!
2018-11-30 10:08:28 +08:00
jeremy
34c1d25c7f
reduce speed of i2c master bus reset routine and release sda
2018-11-30 10:08:28 +08:00
morris
2b165f99c4
i2c_tool: add i2c_tool example test
...
1. add example test for i2c-tools
2. make command line arguments number configurable
2018-11-30 10:08:28 +08:00
He Yin Ling
582e89eca3
test: add test case to receive ds2ds packet
2018-11-29 23:06:16 +08:00
Ivan Grokhotkov
499fdbd33d
Merge branch 'feature/fatfs_alloc_extram_option' into 'master'
...
fatfs: add option to prefer ext. RAM for internal buffers
See merge request idf/esp-idf!3821
2018-11-29 22:59:01 +08:00
Ivan Grokhotkov
bbeb62547e
fatfs: add option to prefer ext. RAM for internal buffers
2018-11-29 19:26:46 +08:00
Mahavir Jain
907b1a9032
mbedtls: align CMake build with corresponding component.mk
2018-11-29 16:23:06 +05:30
houchenyao
147447b13e
test: components/driver: i2c case
2018-11-29 18:27:58 +08:00
He Yin Ling
add7c49a26
Merge branch 'test/driver_i2s' into 'master'
...
component/driver:add i2s case
See merge request idf/esp-idf!2117
2018-11-29 14:41:09 +08:00
Wang Jia Lin
62cc522f36
Merge branch 'feature/rmt_add_api_get_free_channel' into 'master'
...
feature(rmt): Add API get rmt channel's status.
See merge request idf/esp-idf!2440
2018-11-29 11:59:39 +08:00
houchenyao
44fdca94e9
test: components/driver: i2s case
2018-11-29 11:32:40 +08:00
Angus Gratton
759185b16c
Merge branch 'bugfix/bt_ut_build_all' into 'master'
...
Fix unit test cmake build for BT
See merge request idf/esp-idf!3767
2018-11-29 09:52:55 +08:00
Ivan Grokhotkov
21b3919369
Merge branch 'bugfix/vfs_open_write_close_perf_test' into 'master'
...
Fix VFS unit test failure ("Open & write & close through VFS passes performance test")
Closes #44
See merge request idf/esp-idf!3759
2018-11-29 09:40:54 +08:00
Ivan Grokhotkov
1d2673eda5
Merge branch 'bugfix/uart_select_buffer' into 'master'
...
VFS: select() on UART should return immediately when data is buffered
See merge request idf/esp-idf!3803
2018-11-29 09:30:19 +08:00
Per Malmberg
71f57931bd
#2743 - Implemented ability to core affinity and thread name for pthreads and thus also for std::thread.
2018-11-28 20:43:09 +01:00
Roland Dobai
738c56e84a
Fix VFS_OPEN_WRITE_CLOSE_TIME unit test issue
...
Closes idf/esp-idf#44
2018-11-28 20:36:08 +01:00
Ivan Grokhotkov
98884b4f6c
Merge branch 'bugfix/sysview_trace_taskid' into 'master'
...
freertos: fix task ID sent to the trace
See merge request idf/esp-idf!3807
2018-11-29 01:45:36 +08:00
Jiang Jiang Jian
7312294648
Merge branch 'bugfix/btdm_rf_reg' into 'master'
...
fix bug to unsupport rf reg access from hci cmd
See merge request idf/esp-idf!3787
2018-11-28 21:21:20 +08:00
Jiang Jiang Jian
a134141320
Merge branch 'mesh/feature_channel_switch' into 'master'
...
mesh: add channel switch function
See merge request idf/esp-idf!3772
2018-11-28 20:11:38 +08:00
Wang Jia Lin
cc5673435b
Merge branch 'bugfix/fix_uart_read_bug_when_using_dual_core' into 'master'
...
bugfix(uart): fix uart read error bug when using dual core.
See merge request idf/esp-idf!3521
2018-11-28 16:17:13 +08:00
Renz Christian Bagaporo
5e08698039
make: use otatool and parttool for build
2018-11-28 15:57:20 +08:00
Renz Christian Bagaporo
bceec35d0e
cmake: use otatool and parttool for build
2018-11-28 15:57:20 +08:00
Renz Christian Bagaporo
8ca6904d55
ota: implement otatool functionality
2018-11-28 15:57:20 +08:00