wangcheng
dcf351888e
component/bt: remove duplicate events in r_lld_evt_end
2020-07-21 10:01:50 +08:00
gengyuchao
b6f67aebb3
Add more debug info for lmp and isr.
2020-07-20 17:10:10 +08:00
xutao
6c18e85816
memory: put esp_http_client % esp_tls into PSRAM
2020-07-20 17:10:10 +08:00
baohongde
b23e569e3a
components/coex: Change wifi scan duration from 120ms to 100ms
2020-07-20 17:10:09 +08:00
gengyuchao
a6e06d7711
Reopen BT Debug log func.
2020-07-20 17:10:09 +08:00
Joseph Tang
a7840de9d8
core dump update
2020-07-20 17:10:09 +08:00
gengyuchao
1e25c373c1
Close RMT Debug log temporary
2020-07-20 17:10:09 +08:00
zwj
1c382e94db
add heap size check and optimize adv lsit refresh time
2020-07-20 17:10:09 +08:00
gengyuchao
293e02f32a
Fix rmt dbg save size bug
2020-07-20 17:10:09 +08:00
gengyuchao
9b28e15688
Reduce rmt debug log size to 4k
2020-07-20 17:10:08 +08:00
baohongde
afde3607da
components/bt: Fix using NULL data in LC_FREE
2020-07-20 17:10:08 +08:00
baohongde
34d2e45ab2
Fix no sent buf
2020-07-20 17:10:08 +08:00
gengyuchao
c534295225
Init log function in esp_bt_controller_init
2020-07-20 17:10:08 +08:00
gengyuchao
2aa718367a
Add the analysis of coredump
2020-07-20 17:10:08 +08:00
Joseph Tang
b059157b74
parse first 256 bytes of log dump as raw data
2020-07-20 17:10:08 +08:00
Joseph Tang
07ad7b9845
log dump
2020-07-20 17:10:08 +08:00
gengyuchao
da66192023
Fix memery risk of rmt log,and return NULL if rmt log is unavailable
2020-07-20 17:10:07 +08:00
liuzhifu
b8ca37175d
soc: fix apll crash
2020-07-20 17:10:07 +08:00
gengyuchao
aaf6c1a0d0
Change dbg log in one buffer
2020-07-20 17:10:07 +08:00
gengyuchao
f51a055736
Add save log function and API for rmt debug info
2020-07-20 17:10:07 +08:00
baohongde
d3fb83421c
Fix some assert
...
data_len is 0 in ld_acl_data_tx
frcntl format error
sniff remove when active
rxlinklbl error in ld_acl_rx
Increase memory pool
2020-07-20 17:10:07 +08:00
baohongde
7552f9cad9
components/bt: Fix crash in ld_acl_tx
...
add fixed bug record into coredump
2020-07-20 17:10:07 +08:00
gengyuchao
5a522a8029
Change the hci timeout time for wait user to confirm dhkey rsp status.
2020-07-20 17:10:07 +08:00
weitianhua
69aa2121cc
Fix audio underrun issue with oppo x20
2020-07-20 17:10:06 +08:00
baohongde
8a074d7b40
components/bt: Add debug for HCI timeout
2020-07-20 17:10:06 +08:00
baohongde
9d0d5a1b24
components/bt: Increase BTU queue size
2020-07-20 17:10:06 +08:00
baohongde
ac8f85c3dd
Fix some assert
...
Fix ld_pscan.c line 249
Fix no FIFO in RX ISR
Fix HW error 16384, cased by DMA access memory too slow or fail
Set default log level to ERROR
2020-07-20 17:10:06 +08:00
liu zhifu
5b031bbf01
esp32: fix DHCP failure
...
Fix DHCP failure when connecting to CMCC AP
2020-07-20 17:10:06 +08:00
baohongde
3b3467b884
components/bt: Make sleep available in hli
2020-07-20 17:10:06 +08:00
weitianhua
c85876ab51
1.Change position of tx free function before ld_read_clock
...
2.Comment out log.
2020-07-20 17:10:06 +08:00
baohongde
f2082ad2ea
components/bt: Fix cache disable
2020-07-20 17:10:05 +08:00
weitianhua
3198b4861d
Abbreviate ld_acl reschedule log for quicker process
2020-07-20 17:10:05 +08:00
baohongde
eb0ca8317a
components/bt: Fix radio EM access error
2020-07-20 17:10:05 +08:00
baohongde
7e8e30c77e
components/bt: Make sure good channel number is no less than 20
2020-07-20 17:10:05 +08:00
baohongde
ef64f1d56b
components/bt: Fix assert when controller received an HCI but did not want it
2020-07-20 17:10:05 +08:00
gengyuchao
d3c1530745
Fixed rare bug in the ble mesh run outof btc queue. Change the task_post abort to abort_with_coredump.
2020-07-20 17:10:05 +08:00
baohongde
07dbcee626
components/bt: assert in host, to coredump param
2020-07-20 17:10:05 +08:00
baohongde
a3188d7fd9
Fix live lock in bt isr immediately
2020-07-20 17:10:04 +08:00
Li Shuai
c69c066641
Fix live lock int bt isr using cod multicore debug
2020-07-20 17:10:04 +08:00
weitianhua
7b20091c1e
Fix for mi6 compatibility
2020-07-20 17:10:04 +08:00
baohongde
44985f00d3
components/bt: Disable exception mode after saving special registers
...
To store some registers first, avoid stuck due to live lock after disabling exception mode
2020-07-20 17:10:04 +08:00
baohongde
5e6824e3ea
Revert "fix live lock in bt isr immediately"
...
This reverts commit dd086a332315dedf5e326050c6dbed5e6a7eed18.
2020-07-20 17:10:04 +08:00
weitianhua
437c66920c
Free lmp tx buf in EM when handle detach_req
2020-07-20 17:10:04 +08:00
liu zhifu
2e14f68dec
esp32: fix two WiFi bugs
...
1. Revert following commit:
esp32: fix WiFi event reporting
1606159e0e731a5e1636376b670645e52ada9ac4
2. Fix WiFi stop free TX buffer header incorrectly
2020-07-20 17:10:03 +08:00
baohongde
712fe9d047
Increase max timer number, as ble mesh will use it.
2020-07-20 17:10:03 +08:00
liu zhifu
84ce40ef47
esp32: fix WiFi event reporting
2020-07-20 17:10:03 +08:00
baohongde
74a04aa4d7
components/bt: Disable and clear all LC interrupt before crash
2020-07-20 17:10:03 +08:00
gengyuchao
02ddbfe989
Restart bt more cleanly when no free elt in prog push
2020-07-20 17:10:03 +08:00
gengyuchao
63dfbd3f94
Fix ACL nb_prog add error issue.
...
Fix HCI timeout problem because sniff timeout count has not started in some case of slave mode.
2020-07-20 17:10:03 +08:00
liu zhifu
f7abfac202
esp32: fix WiFi bandwidth
2020-07-20 17:10:02 +08:00
baohongde
dac1a2f363
components/bt: Write NULL ptr in assert instead of int wdt
2020-07-20 17:10:02 +08:00
baohongde
18e2b52d6d
components/bt: Fix ble assert(64, 0)
2020-07-20 17:10:02 +08:00
gengyuchao
cfb6bb7566
Add bt isr count to check controller clk state
2020-07-20 17:10:02 +08:00
gengyuchao
bc6bd5155d
Add bt send to queue timeout abort
2020-07-20 17:10:02 +08:00
gengyuchao
2f911d84db
Add bt alive Checker.
2020-07-20 17:10:02 +08:00
gengyuchao
9958b41cab
Change BTC BTU Queue from INTERNALRAM to PSRAM and Increase the BTC BTU HCI_HOST queue size
...
Add CONFIG_SPIRAM_USE_MALLOC check and Add free mem when btc btu deinit in use psram mode
Assign NULL to btc btu queue when deinit
2020-07-20 17:10:02 +08:00
baohongde
95ab1be706
components/bt: Ignore clkoff check in CS write/read
2020-07-20 17:10:01 +08:00
xueyunfei
ac533361b1
bugfix for tcp tcp recv assert
2020-07-20 17:10:01 +08:00
baohongde
8e15c53631
components/bt: update bt version log
2020-07-20 17:10:01 +08:00
baohongde
a77867d302
fix live lock in bt isr immediately
...
fix too many live lock
2020-07-20 17:10:01 +08:00
lly
c27b399a49
ble_mesh: add api to set net_transmit
2020-07-20 17:10:01 +08:00
baohongde
d1027a0514
Fix assert 524288
2020-07-20 17:10:01 +08:00
baohongde
9d97e30874
Using deport reg instead of ahb
2020-07-20 17:10:01 +08:00
liu zhifu
3263dd0705
esp32/lwip: fix log crash
2020-07-20 17:10:00 +08:00
liu zhifu
2e5ea3a51b
Optimize debug log
...
1. optimize wifi debug log
2. optimize lwip debug log
2020-07-20 17:10:00 +08:00
baohongde
79db8df354
components/bt: Fix disconnect due to sniff with error Dsniff
2020-07-20 17:10:00 +08:00
baohongde
176c02a9fe
components/bt: optimize code structure
...
Move some var to DRAM
2020-07-20 17:10:00 +08:00
weitianhua
552524e43a
Fix oppo r15 sniff mode issue
...
change bt version log
2020-07-20 17:09:50 +08:00
baohongde
030281444c
components/bt: Fix crash due to NULL point
2020-07-20 17:09:50 +08:00
liu zhifu
a4a15aa179
esp32: add one disconnect fail reason 206
...
If the esp_wifi_disconnect() is called during connecting scan, raise
disconnect event and the reason code is 206.
2020-07-20 17:09:50 +08:00
liu zhifu
964245dcd1
esp32: workaround for reset by WDT
...
Just add some log to reduce the probability of this issue
2020-07-20 17:09:49 +08:00
baohongde
d5f02c8302
add DRAM_ATTR & add logs
2020-07-20 17:09:49 +08:00
Li Shuai
61b646aa8a
optimize the live lock soft solution process
2020-07-20 17:09:49 +08:00
Li Shuai
76717f72d6
add debug code for wdt reset
2020-07-20 17:09:49 +08:00
maojianxin
19fd28aad8
correct cache_utils fix
2020-07-20 17:09:49 +08:00
Mahavir Jain
c0ca9cd531
freertos: modify configASSERTs around scheduler state check
...
Regression introduced in commit 79e74e5d5f
It is possible that some FreeRTOS APIs are invoked prior to
scheduler start condition (e.g. flash initialization in unicore mode).
In that condition these asserts should not trigger (scheduler state being yet to be started),
hence changes per this fix.
2020-07-20 17:09:49 +08:00
Darian Leung
4610f058e8
freertos: Fix configASSERT thread safety
...
This commit fixes thread safety issues with configASSERT() calls
regarding the value of uxSchedulerSuspended. A false negative
occurs if a context switch to the opposite core occurs in between
the getting the core ID and the assesment.
Closes https://github.com/espressif/esp-idf/issues/4230
2020-07-20 17:09:49 +08:00
Li Shuai
fa0348b512
Fixed interrupt watchdog error caused by live lock
2020-07-20 17:09:48 +08:00
maojianxin
c2dac74cc5
Fix psram task coredump block
...
Fix coredump erase flash delay
2020-07-20 17:09:48 +08:00
maojianxin
00d6b12671
heap:release lock to avoid critical timeout
2020-07-20 17:09:48 +08:00
xutao
b48bdefe54
skip app cpu when core dump stack in psram
2020-07-20 17:09:48 +08:00
Ivan Grokhotkov
de662d5e11
core dump: move stack into the internal memory when dumping to flash
...
Since SPI flash operations can not be performed when the stack is in
external RAM, we need to switch to a different stack when doing a
core dump to flash. This is achieved by a pair of longjmp's, one of
which is crafted manually to jump into a designated function with a
specific stack set up.
The cost of this feature is a bit of IRAM, plus the DRAM required for
the extra stack.
Closes AUD-1355
2020-07-20 17:09:48 +08:00
Li Shuai
a80cf2dc69
Fix interrupt watchdog caused by livelock
2020-07-20 17:09:48 +08:00
KonstantinKondrashov
ca51072461
esp_timer/esp32: Fix case when alarm_reg > counter_reg but FRC_TIMER_INT_STATUS is not set
...
Closes: WIFI-1576
Closes: https://github.com/espressif/esp-idf/issues/2954
2020-07-20 17:09:47 +08:00
Ivan Grokhotkov
1fb82085b9
core dump: skip core dump to flash if the stack pointer is in PSRAM
...
Since flash operations disable the cache, we shouldn't try to run
core dump to flash when the stack is in PSRAM.
Ref. AUD-1355
2020-07-20 17:09:47 +08:00
Darian Leung
1167a5c2f9
Add vTaskPrioritySetCurrent()
2020-07-20 17:09:47 +08:00
KonstantinKondrashov
49cb9972de
esp_timer: Fix set_alarm. Case when timestamp < now_time
...
arg1 = MAX(int64_t arg1, uint64_t arg2) gave the wrong result, if arg1 < 0, it was presented as a larger value.
And ALARM_REG = (uin32_t)arg1. This leads to an infinite loop.
Fixed: both args are int64_t.
Closes: WIFI-1511
2020-07-20 17:09:47 +08:00
Li Shuai
cef73cd232
added psram stack check in backtrace
2020-07-20 17:09:47 +08:00
Xia Xiaotian
f8fbb2be5c
soc: clear PHY status when cpu start
2020-07-20 17:09:47 +08:00
maojianxin
c1374ff769
Fix http client read return value
...
1.esp_tls: fail connection if esp_tls_conn_new() timeouts
https://gitlab.espressif.cn:6688/espressif/esp-idf/merge_requests/7397
2.esp32:panic: avoid access cache in panichandler
3.Sync https://gitlab.espressif.cn:6688/espressif/esp-idf/merge_requests/7152
Even if frame->exccause != PANIC_RSN_CACHEERR, it is possible that the cache error interrupt status is set. For example, this may happen due to an invalid cache access in the panic$
Check cache error interrupt status instead of frame->exccause to decide whether to do CPU reset or digital reset.
Also remove unnecessary esp_dport_access_int_pause from esp_cache_err_get_cpuid, since the panic handler already calls
esp_dport_access_int_abort on entry.
2020-07-20 17:09:28 +08:00
lly
d396624a60
ble_mesh: Check if appkey exist before deleting it
2020-04-20 18:26:17 +08:00
lly
4ede6c8c15
ble_mesh: Fix compile error when -O2 (performance) is chosen
2020-04-20 18:26:17 +08:00
lly
0c5d5c9dd6
ble_mesh: Add length check for some mesh operations
2020-04-20 18:26:17 +08:00
lly
1a89bfaef3
ble_mesh: Reduce the level of some mesh logs
2020-04-20 18:26:17 +08:00
lly
be3be59feb
ble_mesh: Remove some redundant functions
2020-04-20 18:26:17 +08:00
lly
679b55da62
ble_mesh: Provisioner provisioning miscellaneous fix
2020-04-20 18:26:17 +08:00
lly
e9b87fda73
ble_mesh: Continue node info restore even if failure happens
2020-04-20 18:26:17 +08:00
lly
20f1838563
ble_mesh: Fix Provisioner provisioning deadlock
2020-04-20 18:26:16 +08:00
lly
f3e107ada9
ble_mesh: Fix update wrong last_hb info
2020-04-20 18:26:16 +08:00
lly
fb33c67532
ble_mesh: Change Provisioned before log to info level
2020-04-20 18:26:16 +08:00