]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agombedtls: Fix memory leak in initial ECDH exchange if OOM/failure occurs
Angus Gratton [Wed, 12 Jul 2017 08:34:26 +0000 (16:34 +0800)]
mbedtls: Fix memory leak in initial ECDH exchange if OOM/failure occurs

In ecp_mul_comb(), if (!p_eq_g && grp->T == NULL) and ecp_precompute_comb() fails (which can happen due to OOM), then the new array of points T was leaked.

7 years agoMerge branch 'cherry-pick-94877972' into 'release/v2.1'
Ivan Grokhotkov [Wed, 12 Jul 2017 14:39:12 +0000 (22:39 +0800)]
Merge branch 'cherry-pick-94877972' into 'release/v2.1'

freertos: Bump idle stack size to 1KB, min stack to 768 bytes, make configurable

See merge request !981

7 years agoMerge branch 'bugfix/minimal_stack_size' into 'master'
Angus Gratton [Tue, 11 Jul 2017 13:08:52 +0000 (21:08 +0800)]
Merge branch 'bugfix/minimal_stack_size' into 'master'

freertos: Bump idle stack size to 1KB, min stack to 768 bytes, make configurable

See merge request !979

7 years agoMerge branch 'bugfix/btdm_blufi_aes_cfb128_for_v2.1' into 'release/v2.1'
Jiang Jiang Jian [Sun, 9 Jul 2017 03:52:23 +0000 (11:52 +0800)]
Merge branch 'bugfix/btdm_blufi_aes_cfb128_for_v2.1' into 'release/v2.1'

component/bt : comment out set_key_dec for res cfb128(software crypt)

See merge request !972

7 years agoMerge branch 'bugfix/btdm_update_lib_for_v2.1' into 'release/v2.1'
Jiang Jiang Jian [Sat, 8 Jul 2017 15:29:37 +0000 (23:29 +0800)]
Merge branch 'bugfix/btdm_update_lib_for_v2.1' into 'release/v2.1'

component/bt : update lib for fix register reg(follow V2.1 RC)

See merge request !973

7 years agocomponent/bt : update lib for fix register reg(follow V2.1 RC)
Tian Hao [Sat, 8 Jul 2017 13:38:56 +0000 (21:38 +0800)]
component/bt : update lib for fix register reg(follow V2.1 RC)

7 years agocomponent/bt : comment out set_key_dec for res cfb128(software crypt)
Tian Hao [Sat, 8 Jul 2017 13:47:01 +0000 (21:47 +0800)]
component/bt : comment out set_key_dec for res cfb128(software crypt)

7 years agoMerge branch 'cherry-pick-7a79d31d' into 'release/v2.1'
Jiang Jiang Jian [Sat, 8 Jul 2017 07:46:58 +0000 (15:46 +0800)]
Merge branch 'cherry-pick-7a79d31d' into 'release/v2.1'

fix reg operation missing

See merge request !966

7 years agoMerge branch 'bugfix/make_low_rate_work' into 'release/v2.1'
Jiang Jiang Jian [Fri, 7 Jul 2017 17:11:26 +0000 (01:11 +0800)]
Merge branch 'bugfix/make_low_rate_work' into 'release/v2.1'

esp32: udpate wifi lib to make low rate work

See merge request !967

7 years agoesp32: udpate wifi lib to make low rate work
Liu Zhi Fu [Fri, 7 Jul 2017 14:47:39 +0000 (22:47 +0800)]
esp32: udpate wifi lib to make low rate work

Make low rate feature work

7 years agofix reg operation missing
Tian Hao [Fri, 7 Jul 2017 11:10:02 +0000 (19:10 +0800)]
fix reg operation missing

7 years agoMerge branch 'cherry-pick-6d03d42d' into 'release/v2.1'
Ivan Grokhotkov [Fri, 7 Jul 2017 03:14:03 +0000 (11:14 +0800)]
Merge branch 'cherry-pick-6d03d42d' into 'release/v2.1'

Merge branch 'bugfix/btdm_error_length_unit' into 'master'

See merge request !960

7 years agoMerge branch 'cherry_pick_to_release_v2.1' into 'release/v2.1'
Ivan Grokhotkov [Fri, 7 Jul 2017 03:13:43 +0000 (11:13 +0800)]
Merge branch 'cherry_pick_to_release_v2.1' into 'release/v2.1'

Update release/v2.1 with some bug fixes

See merge request !952

7 years agombedtls unit tests: Allow for longer timeout using software SHA
Angus Gratton [Thu, 6 Jul 2017 07:52:47 +0000 (15:52 +0800)]
mbedtls unit tests: Allow for longer timeout using software SHA

Hardware SHA runs SHA operations faster than software...

7 years agoMerge branch 'bugfix/btdm_error_length_unit' into 'master'
Jiang Jiang Jian [Thu, 6 Jul 2017 06:48:29 +0000 (14:48 +0800)]
Merge branch 'bugfix/btdm_error_length_unit' into 'master'

Component/bt: fix bug for  error length unit

See merge request !950

7 years agosoc: fix typo in register name
Ivan Grokhotkov [Thu, 6 Jul 2017 04:36:06 +0000 (12:36 +0800)]
soc: fix typo in register name

7 years agoesp_chip_info: populate ‘model’ field
Ivan Grokhotkov [Thu, 6 Jul 2017 03:01:40 +0000 (11:01 +0800)]
esp_chip_info: populate ‘model’ field

7 years agodocs: update general notes section on IRAM/ISRs
Ivan Grokhotkov [Wed, 5 Jul 2017 03:47:02 +0000 (11:47 +0800)]
docs: update general notes section on IRAM/ISRs

- Remove outdated note that all ISRs should be in IRAM
- Replace “ISR handler” with “ISR” or “interrupt handler”

7 years agodocs: fix flash encryption key storage block, use same names as in TRM
Ivan Grokhotkov [Wed, 5 Jul 2017 03:35:01 +0000 (11:35 +0800)]
docs: fix flash encryption key storage block, use same names as in TRM

7 years agophy_init: fix log level for "PHY data partition validated" message
Ivan Grokhotkov [Wed, 5 Jul 2017 03:29:53 +0000 (11:29 +0800)]
phy_init: fix log level for "PHY data partition validated" message

7 years agombedtls: Temporarily disable hardware acceleration in dual-core mode
Angus Gratton [Wed, 5 Jul 2017 04:03:00 +0000 (12:03 +0800)]
mbedtls: Temporarily disable hardware acceleration in dual-core mode

Temporary fix, until DPORT bugs in crypto accelerators are completely fixed.

7 years agoMerge branch 'cherry-pick-55b3ea9c' into 'release/v2.1'
Ivan Grokhotkov [Tue, 4 Jul 2017 09:28:30 +0000 (17:28 +0800)]
Merge branch 'cherry-pick-55b3ea9c' into 'release/v2.1'

Merge branch 'bugfix/btdm_cherry-pick_ble_smp_bonding_issues' into 'master'

See merge request !949

7 years agoMerge branch 'cherry-pick-3c082b47' into 'release/v2.1'
Ivan Grokhotkov [Tue, 4 Jul 2017 09:28:17 +0000 (17:28 +0800)]
Merge branch 'cherry-pick-3c082b47' into 'release/v2.1'

Merge branch 'bugfix/bt_avdt_state_machine' into 'master'

See merge request !948

7 years agoMerge branch 'cherry-pick-176107f8' into 'release/v2.1'
Ivan Grokhotkov [Tue, 4 Jul 2017 09:28:00 +0000 (17:28 +0800)]
Merge branch 'cherry-pick-176107f8' into 'release/v2.1'

update expiration date of wpa2 enterprise certificates to 2027/06/05.

See merge request !945

7 years agoESP_ERR_NVS_VALUE_TOO_LONG had conflicting value.
Simon Werner [Mon, 26 Jun 2017 23:58:49 +0000 (11:58 +1200)]
ESP_ERR_NVS_VALUE_TOO_LONG had conflicting value.

`ESP_ERR_NVS_VALUE_TOO_LONG` had conflicting value, its original value was `0x0c`, which is the same as `ESP_ERR_NVS_INVALID_LENGTH`

7 years agonvs: add test for ESP_ERR_NVS_INVALID_LENGTH
Ivan Grokhotkov [Tue, 27 Jun 2017 03:28:37 +0000 (11:28 +0800)]
nvs: add test for ESP_ERR_NVS_INVALID_LENGTH

7 years agoipc task: Allow configuration of IPC task stack size
Angus Gratton [Thu, 29 Jun 2017 23:39:54 +0000 (09:39 +1000)]
ipc task: Allow configuration of IPC task stack size

Fixes regression in 3fe0022ef

7 years agostack sizes: Revert stack size increases added in 8d43859
Angus Gratton [Thu, 29 Jun 2017 04:02:54 +0000 (14:02 +1000)]
stack sizes: Revert stack size increases added in 8d43859

Set min stack size to 2048 if AppTrace support is enabled, 512 bytes otherwise.

7 years agodport_access: Fix spurious warning in unicore mode, refactor
Angus Gratton [Wed, 28 Jun 2017 23:55:47 +0000 (09:55 +1000)]
dport_access: Fix spurious warning in unicore mode, refactor

7 years agobugfix(uart): fix bugs reported from github
Wangjialin [Tue, 27 Jun 2017 08:41:59 +0000 (16:41 +0800)]
bugfix(uart): fix bugs reported from github

1. uart_set_line_inverse API issue, https://github.com/espressif/esp-idf/issues/673
2. tx buffer length issue, https://github.com/espressif/esp-idf/issues/710

7 years agonewlib locks: Fix _lock_init() & _lock_init_recursive() failing to initialise a lock
Angus Gratton [Thu, 29 Jun 2017 11:30:28 +0000 (21:30 +1000)]
newlib locks: Fix _lock_init() & _lock_init_recursive() failing to initialise a lock

If scheduler was running, and lock was an automatic variable (ie stack-allocated) to be initialised by _lock_init*,
initialisation could be skipped if the lock variable was non-zero (and lock would be left invalid).

In other cases the lock is statically initialised to zero by __LOCK_INIT*

7 years agoMerge branch 'bugfix/btdm_cherry-pick_ble_smp_bonding_issues' into 'master'
Jiang Jiang Jian [Mon, 3 Jul 2017 11:41:56 +0000 (19:41 +0800)]
Merge branch 'bugfix/btdm_cherry-pick_ble_smp_bonding_issues' into 'master'

component/bt: Fixed the bug crash of disconnet BLE when close the SMP module in the menuconfig.

See merge request !941

7 years agoMerge branch 'bugfix/bt_avdt_state_machine' into 'master'
Jiang Jiang Jian [Mon, 3 Jul 2017 11:41:46 +0000 (19:41 +0800)]
Merge branch 'bugfix/bt_avdt_state_machine' into 'master'

component/bt: bugfix for AVDTP state machine function on disconnection to handle NULL pointer condition

See merge request !946

7 years agoupdate expiration date of wpa2 enterprise certificates to 2027/06/05.
XiaXiaotian [Wed, 7 Jun 2017 08:18:09 +0000 (16:18 +0800)]
update expiration date of wpa2 enterprise certificates to 2027/06/05.

8 years agoMerge branch 'bugfix/fatfs_unit_test_name' into 'master' v2.1-rc1
Ivan Grokhotkov [Fri, 23 Jun 2017 08:32:51 +0000 (16:32 +0800)]
Merge branch 'bugfix/fatfs_unit_test_name' into 'master'

fatfs: fix duplicate unit test name

See merge request !911

8 years agoMerge branch 'bugfix/spiflash_rom_symbols' into 'master'
Jiang Jiang Jian [Fri, 23 Jun 2017 07:24:04 +0000 (15:24 +0800)]
Merge branch 'bugfix/spiflash_rom_symbols' into 'master'

spiflash rom: Add symbols accidentally removed in refactor

See merge request !804

8 years agofatfs: fix duplicate unit test name
Ivan Grokhotkov [Fri, 23 Jun 2017 06:59:21 +0000 (14:59 +0800)]
fatfs: fix duplicate unit test name

8 years agoMerge branch 'bugfix/removed_pinlist' into 'master'
Ivan Grokhotkov [Fri, 23 Jun 2017 03:46:41 +0000 (11:46 +0800)]
Merge branch 'bugfix/removed_pinlist' into 'master'

Pin List has been moved to the Datasheet, fixed links

See merge request !900

8 years agoMerge branch 'buxfix/panic_handler_not_halting_cpu' into 'master'
Ivan Grokhotkov [Fri, 23 Jun 2017 03:34:03 +0000 (11:34 +0800)]
Merge branch 'buxfix/panic_handler_not_halting_cpu' into 'master'

Panic Handler not halting when running on both cores

See merge request !903

8 years agoMerge branch 'bugfix/vfs_fixes' into 'master'
Ivan Grokhotkov [Fri, 23 Jun 2017 03:33:27 +0000 (11:33 +0800)]
Merge branch 'bugfix/vfs_fixes' into 'master'

VFS fixes

See merge request !901

8 years agoMerge branch 'bugfix/sdmmc_send_init_bits' into 'master'
Ivan Grokhotkov [Fri, 23 Jun 2017 03:31:29 +0000 (11:31 +0800)]
Merge branch 'bugfix/sdmmc_send_init_bits' into 'master'

sdmmc: send init sequence to card before MMC_GO_IDLE_STATE

See merge request !906

8 years agoMerge branch 'bugfix/btdm_ble_update_conn_params_issues' into 'master'
Jiang Jiang Jian [Thu, 22 Jun 2017 12:50:37 +0000 (20:50 +0800)]
Merge branch 'bugfix/btdm_ble_update_conn_params_issues' into 'master'

component/bt: Modifed the update connection method to fixed the bug of connectio…

See merge request !889

8 years agoMerge branch 'bugfix/fix_ieee80211_output_assert_and_restore_task_priority_in_wifi_li...
Jiang Jiang Jian [Thu, 22 Jun 2017 08:38:48 +0000 (16:38 +0800)]
Merge branch 'bugfix/fix_ieee80211_output_assert_and_restore_task_priority_in_wifi_lib' into 'master'

Fix the bug that lora vendor size was not added to probe response.

See merge request !908

8 years agoMerge branch 'bugfix/hci_acl_ctlr_to_host_fc' into 'master'
Jiang Jiang Jian [Thu, 22 Jun 2017 08:38:14 +0000 (16:38 +0800)]
Merge branch 'bugfix/hci_acl_ctlr_to_host_fc' into 'master'

component/bt: bugfix for NULL pointer access when HCI CTLR to HOST flow control is in use

See merge request !907

8 years agocomponent/bt: Added the error log to the l2cble_start_conn_update func.
Yulong [Thu, 22 Jun 2017 07:53:27 +0000 (03:53 -0400)]
component/bt: Added the error log to the l2cble_start_conn_update func.

8 years agoFix the bug that lora vendor size was not added to probe response.
XiaXiaotian [Thu, 22 Jun 2017 07:06:58 +0000 (15:06 +0800)]
Fix the bug that lora vendor size was not added to probe response.

Restore priority of tasks in wifi lib.

8 years agocomponent/bt: bugfix for NULL pointer access when HCI CTLR to HOST flow control is...
wangmengyang [Thu, 22 Jun 2017 06:59:51 +0000 (14:59 +0800)]
component/bt: bugfix for NULL pointer access when HCI CTLR to HOST flow control is in use

8 years agoMerge branch 'bugfix/vfs_write_return_type' into 'master'
Ivan Grokhotkov [Thu, 22 Jun 2017 03:48:34 +0000 (11:48 +0800)]
Merge branch 'bugfix/vfs_write_return_type' into 'master'

Change esp_vfs_t.write return value to ssize_t

See merge request !897

8 years agosend bus initialization bits before MMC_GO_IDLE_STATE command to initialize card...
James Sarrett [Thu, 11 May 2017 07:10:52 +0000 (00:10 -0700)]
send bus initialization bits before MMC_GO_IDLE_STATE command to initialize card after poweron

8 years agoMerge branch 'bugfix/btdm_modify_some_log_info' into 'master'
Jiang Jiang Jian [Thu, 22 Jun 2017 03:03:01 +0000 (11:03 +0800)]
Merge branch 'bugfix/btdm_modify_some_log_info' into 'master'

component /bt: modify some log infor

See merge request !905

8 years agoMerge branch 'bugfix/hci_le_rd_rmt_used_feats' into 'master'
Jiang Jiang Jian [Wed, 21 Jun 2017 13:24:54 +0000 (21:24 +0800)]
Merge branch 'bugfix/hci_le_rd_rmt_used_feats' into 'master'

component/bt: bugfix for hci_le_rd_rmt_used_feats_cmd handler which does not check connection state

See merge request !904

8 years agoBugfix - Panic Handler not halting when running on both cores
Darian Leung [Tue, 20 Jun 2017 12:13:13 +0000 (20:13 +0800)]
Bugfix - Panic Handler not halting when running on both cores

Bug occurs when core dump destination in menuconfig is set to flash. When
programme crashes, xt_unhandled_exception or panicHandler will both trigger
commonErrorHandler. commonErrorHandler calls esp_core_dump_to_flash which
will attempt to use DPORT functions and hang due to trying to a stall and already
stalled processor (already stalled in xt_unhandled_exception and panicHandler).
Program will eventually be rebooted when wdt expires.

Added esp_dport_access_int_deinit after calls to haltOtherCore() so that DPORT
functions don't try to halt and already halted cpu hence preventing hang.

Fixes TW#12944 https://github.com/espressif/esp-idf/issues/646

8 years agocomponent/bt: bugfix for hci_le_rd_rmt_used_feats_cmd handler which does not check...
wangmengyang [Wed, 21 Jun 2017 07:52:32 +0000 (15:52 +0800)]
component/bt: bugfix for hci_le_rd_rmt_used_feats_cmd handler which does not check connection state

8 years agocomponent/bt: Change the l2cble_start_conn_update return value to BOOLEAN.
Yulong [Wed, 21 Jun 2017 06:39:36 +0000 (02:39 -0400)]
component/bt: Change the l2cble_start_conn_update return value to BOOLEAN.

8 years agovfs: add support for nested mount points
Ivan Grokhotkov [Wed, 21 Jun 2017 06:17:14 +0000 (14:17 +0800)]
vfs: add support for nested mount points

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

8 years agoPin List has been moved to the Datasheet, fixed links
krzychb [Wed, 21 Jun 2017 06:13:42 +0000 (08:13 +0200)]
Pin List has been moved to the Datasheet, fixed links

8 years agovfs: fix NULL pointer dereference in esp_vfs_unregister
Ivan Grokhotkov [Wed, 21 Jun 2017 05:54:04 +0000 (13:54 +0800)]
vfs: fix NULL pointer dereference in esp_vfs_unregister

8 years agoComponent /bt: modify some log infor
zhiweijian [Tue, 20 Jun 2017 09:54:28 +0000 (17:54 +0800)]
Component /bt: modify some log infor

8 years agovfs: fix opendir of a filesystem root directory
Ivan Grokhotkov [Tue, 20 Jun 2017 17:21:14 +0000 (01:21 +0800)]
vfs: fix opendir of a filesystem root directory

Previously opendir("/data") would fail if filesystem with "data" prefix
was registered in VFS, while opendir("/data/") would succeed.
This change fixes handling for the former case and adds relevant tests.

8 years agoMerge branch 'bugfix/uxTaskGetSystemState_github_#12142' into 'master'
Ivan Grokhotkov [Tue, 20 Jun 2017 09:27:08 +0000 (17:27 +0800)]
Merge branch 'bugfix/uxTaskGetSystemState_github_#12142' into 'master'

Bugfix for uxTaskGetSystemState

See merge request !883

8 years agoMerge branch 'bugfix/doc_bugfixes' into 'master'
Ivan Grokhotkov [Tue, 20 Jun 2017 09:25:03 +0000 (17:25 +0800)]
Merge branch 'bugfix/doc_bugfixes' into 'master'

Corrected small issues in documentation, fixes #694 and merges #706

See merge request !894

8 years agoMerge branch 'bugfix/tw13318_wifi_fail_connect_to_TP842N' into 'master'
Jiang Jiang Jian [Tue, 20 Jun 2017 09:12:44 +0000 (17:12 +0800)]
Merge branch 'bugfix/tw13318_wifi_fail_connect_to_TP842N' into 'master'

esp32: update wifi lib to fix two wifi connect issues

See merge request !893

8 years agoFixed link to JTAG Debugging for ESP32
krzychb [Mon, 19 Jun 2017 20:15:05 +0000 (22:15 +0200)]
Fixed link to JTAG Debugging for ESP32

8 years ago[TW#13322] Typo in documentation, fixes #694
krzychb [Mon, 19 Jun 2017 20:12:54 +0000 (22:12 +0200)]
[TW#13322] Typo in documentation, fixes #694

8 years agoUpdate README.md, merges #706
José Luis Aracil Gómez del Campo [Fri, 16 Jun 2017 15:34:47 +0000 (17:34 +0200)]
Update README.md, merges #706

Signed-off-by: krzychb <krzychb@gazeta.pl>
8 years agoesp32: update wifi lib to fix a wifi connect issue
Liu Zhi Fu [Mon, 19 Jun 2017 13:23:24 +0000 (21:23 +0800)]
esp32: update wifi lib to fix a wifi connect issue

Fix WiFi fails to connect TP842N bug

8 years agoMerge branch 'fix/ci_deps_optimize' into 'master'
Anton Maklakov [Mon, 19 Jun 2017 08:19:49 +0000 (16:19 +0800)]
Merge branch 'fix/ci_deps_optimize' into 'master'

Optimize CI dependences

See merge request !851

8 years agocomponent/bt: Modifed the update connection method to fixed the bug of connection...
Yulong [Mon, 19 Jun 2017 07:22:25 +0000 (03:22 -0400)]
component/bt: Modifed the update connection method to fixed the bug of connection parameters not correct.

8 years agoCI: Add CI options to use more attempts in some transfer situations
Anton Maklakov [Mon, 12 Jun 2017 07:22:09 +0000 (15:22 +0800)]
CI: Add CI options to use more attempts in some transfer situations

8 years agoCI: Minor changes in code formatting and cleanup
Anton Maklakov [Fri, 9 Jun 2017 10:14:29 +0000 (18:14 +0800)]
CI: Minor changes in code formatting and cleanup

8 years agoCI: Put in order the job dependences
Anton Maklakov [Fri, 9 Jun 2017 11:05:17 +0000 (19:05 +0800)]
CI: Put in order the job dependences

8 years agoCI: check if internal submodule synced to GH
He Yin Ling [Thu, 8 Jun 2017 03:55:27 +0000 (11:55 +0800)]
CI: check if internal submodule synced to GH

    See MR !834

8 years agoMerge branch 'bugfix/ci_build_ssc_workaround' into 'master'
Ivan Grokhotkov [Mon, 19 Jun 2017 03:16:13 +0000 (11:16 +0800)]
Merge branch 'bugfix/ci_build_ssc_workaround' into 'master'

CI build_ssc: Workaround for the SSC build error

See merge request !885

8 years agoCI build_ssc: Workaround for the SSC build error
Anton Maklakov [Fri, 16 Jun 2017 08:31:46 +0000 (16:31 +0800)]
CI build_ssc: Workaround for the SSC build error

8 years agoMerge branch 'feature/add_wrover_kit_v3_doc' into 'master'
Angus Gratton [Mon, 19 Jun 2017 00:59:20 +0000 (08:59 +0800)]
Merge branch 'feature/add_wrover_kit_v3_doc' into 'master'

Add WROVER-KIT v3 hw to hw reference

See merge request !818

8 years agoMerge branch 'feature/esptool_v20' into 'master'
Angus Gratton [Mon, 19 Jun 2017 00:37:10 +0000 (08:37 +0800)]
Merge branch 'feature/esptool_v20' into 'master'

esptool: Update to v2.0 final release

See merge request !862

8 years agoMerge branch 'bugfix/btdm_ble_client_muti_conn_issue' into 'master'
Jiang Jiang Jian [Fri, 16 Jun 2017 08:52:38 +0000 (16:52 +0800)]
Merge branch 'bugfix/btdm_ble_client_muti_conn_issue' into 'master'

component/bt: change the MAX_L2CAP_CHANNELS macro from 2 to MAX_ACL_CONNECTIONS …

See merge request !882

8 years agoBugFix: uxTaskGetSystemState test case update
Darian Leung [Fri, 16 Jun 2017 03:49:48 +0000 (11:49 +0800)]
BugFix: uxTaskGetSystemState test case update

Updated test case to include configASSERT cases (+1 squashed commits)

Squashed commits:

[871ec26f] Freertos:Bugfix uxTaskGetSystemState

Bug (github #12142) with uxTaskGetSystemState where
if called immediately after creating a bunch of tasks,
those tasks would be added twice into the TaskStatusArray.
Bug caused due to use old implementation using vTaskSuspendAll
which did not stop newly created task on other core from accessing the
read/waiting task lists whilst the list were being read by
uxTaskGetSystemState. Fixed bug by replacing vTaskSuspendAll
with taskENTER_CRITICAL and added test case for the bugfix

8 years agocomponent/bt: change the MAX_L2CAP_CHANNELS macro from 2 to MAX_ACL_CONNECTIONS when...
Yulong [Fri, 16 Jun 2017 07:46:46 +0000 (03:46 -0400)]
component/bt: change the MAX_L2CAP_CHANNELS macro from 2 to MAX_ACL_CONNECTIONS when in the BLE only mode.

8 years agoMerge branch 'bugfix/pcnt_reset' into 'master'
Jiang Jiang Jian [Fri, 16 Jun 2017 07:43:04 +0000 (15:43 +0800)]
Merge branch 'bugfix/pcnt_reset' into 'master'

pcnt: Fix pcnt_set_pin/pcnt_counter_clear reported on github

See merge request !872

8 years agoMerge branch 'bugfix/rtc_time_issues' into 'master'
Jiang Jiang Jian [Fri, 16 Jun 2017 07:29:56 +0000 (15:29 +0800)]
Merge branch 'bugfix/rtc_time_issues' into 'master'

Fixes for RTC time issues

See merge request !849

8 years agoMerge branch 'bugfix/spi_flash_large_writes' into 'master'
Jiang Jiang Jian [Fri, 16 Jun 2017 07:04:01 +0000 (15:04 +0800)]
Merge branch 'bugfix/spi_flash_large_writes' into 'master'

spi_flash: Fix large writes, unaligned writes, and writes from flash

See merge request !843

8 years agoMerge branch 'bugfix/phy_init_procedure' into 'master'
Jiang Jiang Jian [Fri, 16 Jun 2017 07:03:03 +0000 (15:03 +0800)]
Merge branch 'bugfix/phy_init_procedure' into 'master'

component/esp32 : fix phy init with NULL init_data

See merge request !879

8 years agoPCNT: fix for pcnt_set_pin API, it can now use all pcnt channels
Nilay [Fri, 16 Jun 2017 05:48:00 +0000 (11:18 +0530)]
PCNT: fix for pcnt_set_pin API, it can now use all pcnt channels

8 years agoPCNT: Fixed pcnt_counter_clear, Pulse Count now able to resume after API call
Nilay [Fri, 16 Jun 2017 05:41:52 +0000 (11:11 +0530)]
PCNT: Fixed pcnt_counter_clear, Pulse Count now able to resume after API call

8 years agoMerge branch 'bugfix/btdm_conn_enhanecd_issue' into 'master'
Jiang Jiang Jian [Fri, 16 Jun 2017 05:18:41 +0000 (13:18 +0800)]
Merge branch 'bugfix/btdm_conn_enhanecd_issue' into 'master'

component/bt: added the temp enhanced to solve the conn_interval not collect issues.

See merge request !881

8 years agocomponent/esp32 : fix phy init with NULL init_data
Tian Hao [Thu, 15 Jun 2017 10:37:53 +0000 (18:37 +0800)]
component/esp32 : fix phy init with NULL init_data

1. fix phy init with NULL init_data
2. do full calibration without CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE
3. fix libphy.a printf

8 years agoesp32: make time monotonic across resets
Ivan Grokhotkov [Mon, 12 Jun 2017 11:51:17 +0000 (19:51 +0800)]
esp32: make time monotonic across resets

Small changes to clock calibration value will cause increasing errors
the longer the device runs. Consider the case of deep sleep, assuming
that RTC counter is used for timekeeping:
- before sleep:
   time_before = rtc_counter * calibration_val
- after sleep:
   time_after = (rtc_counter + sleep_count) * (calibration_val + epsilon)
where 'epsilon' is a small estimation error of 'calibration_val'.
The apparent sleep duration thus will be:
time_after - time_before = sleep_count * (calibration_val + epsilon)
                           + rtc_counter * epsilon

Second term on the right hand side is the error in time difference
estimation, it is proportional to the total system runtime (rtc_counter).

To avoid this issue, this change makes RTC_SLOW_CLK calibration value
persistent across restarts. This allows the calibration value update to
be preformed, while keeping time after update same as before the update.

8 years agoMerge branch 'bugfix/always_disable_ints_in_critical_region' into 'master'
Jiang Jiang Jian [Fri, 16 Jun 2017 03:36:27 +0000 (11:36 +0800)]
Merge branch 'bugfix/always_disable_ints_in_critical_region' into 'master'

Always disable interrupts in a critical region

See merge request !821

8 years agocomponent/bt: added the temp enhanced to solve the conn_interval not collect issues.
Yulong [Thu, 15 Jun 2017 14:15:49 +0000 (10:15 -0400)]
component/bt: added the temp enhanced to solve the conn_interval not collect issues.

8 years agoMerge branch 'bugfix/sw_reset_fixes' into 'master'
Jiang Jiang Jian [Thu, 15 Jun 2017 14:10:13 +0000 (22:10 +0800)]
Merge branch 'bugfix/sw_reset_fixes' into 'master'

Fixes for esp_restart

See merge request !865

8 years agoMerge branch 'bugfix/classicBT_SMP_dependence' into 'master'
Jiang Jiang Jian [Thu, 15 Jun 2017 13:28:36 +0000 (21:28 +0800)]
Merge branch 'bugfix/classicBT_SMP_dependence' into 'master'

component/bt: add constraint in Kconfig to enable SMP_ENABLE when using classic BT

See merge request !877

8 years agoMerge branch 'bugfix/intrrupt_num_conflict' into 'master'
Jiang Jiang Jian [Thu, 15 Jun 2017 12:45:57 +0000 (20:45 +0800)]
Merge branch 'bugfix/intrrupt_num_conflict' into 'master'

component/bt : fix interrupt number conflict

See merge request !878

8 years agocomponent/bt: add constraint in Kconfig to enable SMP_ENABLE when using classic BT
wangmengyang [Thu, 15 Jun 2017 07:48:20 +0000 (15:48 +0800)]
component/bt: add constraint in Kconfig to enable SMP_ENABLE when using classic BT

1. For now, some security related functions used in classic Bluetooth are controlled by "SMP_ENABLE". This commit fixes the dependency.
2. The two options, "CLASSIC_BT_ENABLED" and "SMP_ENABLED" The two options will be decoupled in the future.

8 years agoMerge branch 'bugfix/btdm_add_set_pkt_data_length_evt_cback' into 'master'
Jiang Jiang Jian [Thu, 15 Jun 2017 11:51:22 +0000 (19:51 +0800)]
Merge branch 'bugfix/btdm_add_set_pkt_data_length_evt_cback' into 'master'

component / bt: add set pkt data length event callback

See merge request !869

8 years agocomponent/bt : fix interrupt number conflict
Tian Hao [Thu, 15 Jun 2017 09:20:25 +0000 (17:20 +0800)]
component/bt : fix interrupt number conflict

1. the typical problem is when push keyboard on serial tool, the bluetooth may stop.

8 years agolibsodium: don’t link tests when TEST_ALL=1 is used
Ivan Grokhotkov [Thu, 15 Jun 2017 10:11:58 +0000 (18:11 +0800)]
libsodium: don’t link tests when TEST_ALL=1 is used

Currently libsodium tests add about 800kB to the binary, which is too
much for a partition table constrained to 2MB. Disable libsodium tests
until we start building multiple unit test apps for different subsets.

8 years agoesp_system: remove link time dependency on WiFi stack
Ivan Grokhotkov [Thu, 15 Jun 2017 10:00:49 +0000 (18:00 +0800)]
esp_system: remove link time dependency on WiFi stack

- esp_restart will not pull in WiFi stack (if it is not used otherwise)
- esp_restore is moved into a separate file to break link time
  dependency

8 years agocxx: don’t pull libstdc++ local support in unit tests
Ivan Grokhotkov [Thu, 15 Jun 2017 09:58:57 +0000 (17:58 +0800)]
cxx: don’t pull libstdc++ local support in unit tests

8 years agounit-test-app: increase space for factory partition to 1280K
Ivan Grokhotkov [Thu, 15 Jun 2017 09:58:19 +0000 (17:58 +0800)]
unit-test-app: increase space for factory partition to 1280K