]> granicus.if.org Git - esp-idf/log
esp-idf
6 years agocomponent/bt: Add Legacy Pairing
baohongde [Tue, 4 Sep 2018 13:11:03 +0000 (21:11 +0800)]
component/bt: Add Legacy Pairing

6 years agoMerge branch 'feature/termios' into 'master'
Ivan Grokhotkov [Tue, 4 Sep 2018 12:42:21 +0000 (20:42 +0800)]
Merge branch 'feature/termios' into 'master'

Add basic support for termios.h

See merge request idf/esp-idf!3085

6 years agoMerge branch 'bugfix/can_driver_multiple_bugs' into 'master'
Ivan Grokhotkov [Tue, 4 Sep 2018 12:34:06 +0000 (20:34 +0800)]
Merge branch 'bugfix/can_driver_multiple_bugs' into 'master'

CAN: Add pm_lock, fix gpio bug, update docs

See merge request idf/esp-idf!3138

6 years agoMerge branch 'bugfix/check_python_order_only_prereq' into 'master'
Ivan Grokhotkov [Tue, 4 Sep 2018 12:31:49 +0000 (20:31 +0800)]
Merge branch 'bugfix/check_python_order_only_prereq' into 'master'

Use check_python_dependencies everywhere as order-only-prerequisite

See merge request idf/esp-idf!3174

6 years agoMerge branch 'bugfix/monitor_win_encoding' into 'master'
Ivan Grokhotkov [Tue, 4 Sep 2018 12:31:37 +0000 (20:31 +0800)]
Merge branch 'bugfix/monitor_win_encoding' into 'master'

idf_monitor: Fix Unicode decoding on Windows

See merge request idf/esp-idf!3157

6 years agoMerge branch 'doc/btdm_a2dp_sink_example_improvement' into 'master'
Jiang Jiang Jian [Tue, 4 Sep 2018 11:37:31 +0000 (19:37 +0800)]
Merge branch 'doc/btdm_a2dp_sink_example_improvement' into 'master'

component/bt: fix the format and add more content to A2DP sink example

See merge request idf/esp-idf!2995

6 years agoMerge branch 'doc/btdm_a2dp_source_example_improvement' into 'master'
Jiang Jiang Jian [Tue, 4 Sep 2018 11:14:55 +0000 (19:14 +0800)]
Merge branch 'doc/btdm_a2dp_source_example_improvement' into 'master'

component/bt: fix the format and add more content to A2DP source example

See merge request idf/esp-idf!2996

6 years agoMerge branch 'feature/modify_simple_wifi' into 'master'
Jiang Jiang Jian [Tue, 4 Sep 2018 11:04:42 +0000 (19:04 +0800)]
Merge branch 'feature/modify_simple_wifi' into 'master'

modify simple wifi example to getting_started example

See merge request idf/esp-idf!3143

6 years agoMerge branch 'feature/signature_verify_updates' into 'master'
Angus Gratton [Tue, 4 Sep 2018 10:56:47 +0000 (18:56 +0800)]
Merge branch 'feature/signature_verify_updates' into 'master'

secure boot: Support signed app verification without hardware secure boot

See merge request idf/esp-idf!2814

6 years ago1. modify simple wifi example
zhangyanjiao [Thu, 30 Aug 2018 02:11:21 +0000 (10:11 +0800)]
1. modify simple wifi example
2. add README file

6 years agoMerge branch 'bugfix/esp_bt_mem_release' into 'master'
Jiang Jiang Jian [Tue, 4 Sep 2018 06:17:10 +0000 (14:17 +0800)]
Merge branch 'bugfix/esp_bt_mem_release' into 'master'

components/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM

See merge request idf/esp-idf!3121

6 years agoMerge branch 'feature/modify_espnow' into 'master'
Jiang Jiang Jian [Tue, 4 Sep 2018 05:09:43 +0000 (13:09 +0800)]
Merge branch 'feature/modify_espnow' into 'master'

modify espnow example

See merge request idf/esp-idf!3144

6 years agoMerge branch 'bugfix/bootloader_random_in_app' into 'master'
Angus Gratton [Tue, 4 Sep 2018 02:39:12 +0000 (10:39 +0800)]
Merge branch 'bugfix/bootloader_random_in_app' into 'master'

esp32: Allow bootloader_random.h use in app, add esp_fill_random() function

See merge request idf/esp-idf!3124

6 years agoMerge branch 'bugfix/lock_up_if_supply_is_varying' into 'master'
Angus Gratton [Mon, 3 Sep 2018 16:37:52 +0000 (00:37 +0800)]
Merge branch 'bugfix/lock_up_if_supply_is_varying' into 'master'

bootloader_support: Fix enable wdt for resolve issue with varying supply

See merge request idf/esp-idf!2769

6 years agoUse check_python_dependencies everywhere as order-only-prerequisite
Roland Dobai [Mon, 3 Sep 2018 09:42:10 +0000 (11:42 +0200)]
Use check_python_dependencies everywhere as order-only-prerequisite

6 years agoMerge branch 'bugfix/make_mconf_deps' into 'master'
Angus Gratton [Mon, 3 Sep 2018 07:43:20 +0000 (15:43 +0800)]
Merge branch 'bugfix/make_mconf_deps' into 'master'

kconfig: Don't include system headers in dependency files

See merge request idf/esp-idf!3163

6 years agoMerge branch 'bugfix/heap_dma_pool_fixes' into 'master'
Angus Gratton [Mon, 3 Sep 2018 07:43:01 +0000 (15:43 +0800)]
Merge branch 'bugfix/heap_dma_pool_fixes' into 'master'

heap: Fixes around DMA reserved pool

See merge request idf/esp-idf!3034

6 years agoMerge branch 'bugfix/add_core_id_to_idle_task_name' into 'master'
Angus Gratton [Mon, 3 Sep 2018 06:40:37 +0000 (14:40 +0800)]
Merge branch 'bugfix/add_core_id_to_idle_task_name' into 'master'

freertos: Add core ID to idle task names

See merge request idf/esp-idf!3159

6 years agofreertos: Add core ID to idle task names
Darian Leung [Sun, 2 Sep 2018 12:26:33 +0000 (20:26 +0800)]
freertos: Add core ID to idle task names

This commit adds the core number to the name of each idle task.

6 years agobootloader_support: Fix enable rtc_wdt for resolve issue with varying supply
Konstantin Kondrashov [Thu, 26 Jul 2018 09:07:36 +0000 (17:07 +0800)]
bootloader_support: Fix enable rtc_wdt for resolve issue with varying supply

Eliminates the issue with the lock up in the bootloader due to a power drawdown during its operation.

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

6 years agoesp32: Add esp_fill_random() function
Angus Gratton [Wed, 15 Aug 2018 08:20:16 +0000 (18:20 +1000)]
esp32: Add esp_fill_random() function

Convenience function to fill a buffer with random bytes.

Add some unit tests (only sanity checks, really.)

6 years agobootloader_support: Move bootloader_random.h to public header directory
Angus Gratton [Wed, 15 Aug 2018 07:25:19 +0000 (17:25 +1000)]
bootloader_support: Move bootloader_random.h to public header directory

6 years agomconf: Don't include system headers in dependency files
Angus Gratton [Mon, 3 Sep 2018 03:07:59 +0000 (11:07 +0800)]
mconf: Don't include system headers in dependency files

Fixes issue where build gets stuck because of .d files in the
tools/kconfig directory.

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

6 years agoMerge branch 'bugfix/heap_poison_swap_check' into 'master'
Angus Gratton [Mon, 3 Sep 2018 03:19:16 +0000 (11:19 +0800)]
Merge branch 'bugfix/heap_poison_swap_check' into 'master'

heap: When verifying & swapping a fill pattern, stop swapping if verification fails

See merge request idf/esp-idf!2890

6 years agoMerge branch 'feature/bootloader_minor_enhancements' into 'master'
Angus Gratton [Mon, 3 Sep 2018 02:56:30 +0000 (10:56 +0800)]
Merge branch 'feature/bootloader_minor_enhancements' into 'master'

Feature/bootloader minor enhancements

See merge request idf/esp-idf!3111

6 years agoMerge branch 'mesh/rewrite_docs' into 'master'
Angus Gratton [Mon, 3 Sep 2018 02:52:33 +0000 (10:52 +0800)]
Merge branch 'mesh/rewrite_docs' into 'master'

docs/rewrite_mesh_docs

See merge request idf/esp-idf!2990

6 years agodocs/rewrite_mesh_docs
Darian Leung [Tue, 26 Jun 2018 12:48:47 +0000 (20:48 +0800)]
docs/rewrite_mesh_docs

The following commit rewrites the ESP-MESH docs. This commit includes
new diagrams and a structure approach to the mesh docs. Some mesh api references
have also been modified.

6 years agoCAN: Add pm_lock, fix gpio bug, update docs
Darian Leung [Tue, 28 Aug 2018 13:13:20 +0000 (21:13 +0800)]
CAN: Add pm_lock, fix gpio bug, update docs

This commit does the following

- Add power management lock to CAN driver so that APB frequency does not change
whilst CAN driver is in use
- Fix incorrect flag in can_transmit()
- Refactor can_driver_install() and can_driver_uninstall() so that critical sections
are shorter
- Fix CAN gpio configuration bug on RX pin. Closes #2302
- Add docs about multiple ID configuration and fix example links

6 years agocomponents/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM
Hrishikesh Dhayagude [Tue, 28 Aug 2018 08:01:07 +0000 (13:31 +0530)]
components/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM

Problem:
The new API esp_bt_mem_release() that was added freed BTDM data to heap from esp_bt_controller_mem_release().
Now with the BT memory optimization commit ee787085f937a582c3b70692f0d19b58cdb2de7d,
the BTDM data is optimized and reduced to only 32 bytes which is not sufficient amount to be added to heap.
So, using the API leads to assert saying that the region is too small.

Solution:
Modify heap_caps_add_region_with_caps to return ESP_ERR_INVALID_SIZE in case the range is too small to create a new heap.
Do not assert if return value is ESP_ERR_INVALID_SIZE

This also fixes using API esp_bt_controller_mem_release() with ESP_BT_MODE_BTDM

Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
6 years agoMerge branch 'bugfix/fix_bt_hdr_files' into 'master'
Jiang Jiang Jian [Fri, 31 Aug 2018 14:04:39 +0000 (22:04 +0800)]
Merge branch 'bugfix/fix_bt_hdr_files' into 'master'

components/bt: Make a pass through Bluetooth header files

See merge request idf/esp-idf!3093

6 years agoMerge branch 'bugfix/btdm_update_private_address' into 'master'
Jiang Jiang Jian [Fri, 31 Aug 2018 13:33:54 +0000 (21:33 +0800)]
Merge branch 'bugfix/btdm_update_private_address' into 'master'

component/bt: Update BLE private address after it's private address interval

See merge request idf/esp-idf!2987

6 years agoMerge branch 'bugfix/btdm_rfcomm_test_command_cause_crash' into 'master'
Jiang Jiang Jian [Fri, 31 Aug 2018 13:33:39 +0000 (21:33 +0800)]
Merge branch 'bugfix/btdm_rfcomm_test_command_cause_crash' into 'master'

component/bt: Fix bug rfcomm test command cause crash

See merge request idf/esp-idf!3080

6 years agoMerge branch 'bugfix/btdm_find_remote_service_by_uuid_always_return_success' into...
Jiang Jiang Jian [Fri, 31 Aug 2018 13:27:21 +0000 (21:27 +0800)]
Merge branch 'bugfix/btdm_find_remote_service_by_uuid_always_return_success' into 'master'

component/bt: Fix bug of SDP find services by uuid always return success

See merge request idf/esp-idf!3036

6 years agoMerge branch 'feature/modify_smart_config' into 'master'
Jiang Jiang Jian [Fri, 31 Aug 2018 13:01:57 +0000 (21:01 +0800)]
Merge branch 'feature/modify_smart_config' into 'master'

modify smart config example

See merge request idf/esp-idf!3142

6 years agoMerge branch 'bugfix/esp_wifi_disconnect_fail' into 'master'
Jiang Jiang Jian [Fri, 31 Aug 2018 13:01:12 +0000 (21:01 +0800)]
Merge branch 'bugfix/esp_wifi_disconnect_fail' into 'master'

update wifi lib to fix two bugs

See merge request idf/esp-idf!3125

6 years agoMerge branch 'bugfix/tw23350_fix_brownout_reset' into 'master'
Jiang Jiang Jian [Fri, 31 Aug 2018 12:37:18 +0000 (20:37 +0800)]
Merge branch 'bugfix/tw23350_fix_brownout_reset' into 'master'

when brownout reset occurs, set the phy TX Power to the lowest

See merge request idf/esp-idf!2854

6 years agomodify espnow example
zhangyanjiao [Wed, 29 Aug 2018 12:16:20 +0000 (20:16 +0800)]
modify espnow example

6 years agoidf_monitor: Fix Unicode decoding on Windows
Roland Dobai [Thu, 30 Aug 2018 11:33:11 +0000 (13:33 +0200)]
idf_monitor: Fix Unicode decoding on Windows

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

6 years agofix the esp_wifi_disconnect() err when wifi is not started or inited
zhangyanjiao [Tue, 28 Aug 2018 12:16:17 +0000 (20:16 +0800)]
fix the esp_wifi_disconnect() err when wifi is not started or inited

Closes: https://github.com/espressif/esp-idf/issues/2336
6 years agoMerge branch 'ci/add_check_stage' into 'master'
Angus Gratton [Fri, 31 Aug 2018 02:08:59 +0000 (10:08 +0800)]
Merge branch 'ci/add_check_stage' into 'master'

ci: Add 'check' stage, move all check-related jobs to this stage

See merge request idf/esp-idf!2986

6 years agoMerge branch 'bugfix/btdm_security_vulnerability' into 'master'
Jiang Jiang Jian [Thu, 30 Aug 2018 18:02:59 +0000 (02:02 +0800)]
Merge branch 'bugfix/btdm_security_vulnerability' into 'master'

fix bluetooth security vulnerability of ECDH public key checking

See merge request idf/esp-idf!3089

6 years agoMerge branch 'bugfix/wifi_reorder_mpdu_as_ampdu' into 'master'
Jiang Jiang Jian [Thu, 30 Aug 2018 17:59:50 +0000 (01:59 +0800)]
Merge branch 'bugfix/wifi_reorder_mpdu_as_ampdu' into 'master'

esp32: reorder MPDU as AMPDU

See merge request idf/esp-idf!3108

6 years agoesp32: reorder MPDU as AMPDU
XiaXiaotian [Mon, 27 Aug 2018 09:17:34 +0000 (17:17 +0800)]
esp32: reorder MPDU as AMPDU

    Some APs transmit AMPDU and MPDU by turns. Moreover, the sequence
    numbers of AMPDU and MPDU are out of order, e.g. MPDU(1253) -
    AMPDU(1251, 1252) - MPDU(1254) - AMPDU(1255, 1256). In order to
    receive both AMPDU and MPDU in order, MPDU must be reordered with
    AMPDU.

6 years agoAdd basic support for termios.h
Roland Dobai [Tue, 14 Aug 2018 11:39:30 +0000 (13:39 +0200)]
Add basic support for termios.h

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

6 years agoMerge branch 'bugfix/py3_error_code_generator_from_docs' into 'master'
Ivan Grokhotkov [Thu, 30 Aug 2018 12:25:09 +0000 (20:25 +0800)]
Merge branch 'bugfix/py3_error_code_generator_from_docs' into 'master'

Docs: Check Python packages

See merge request idf/esp-idf!3135

6 years agomodify static variables and README file
zhangyanjiao [Wed, 29 Aug 2018 12:48:16 +0000 (20:48 +0800)]
modify static variables and README file

6 years agoDocs: Check Python packages
Roland Dobai [Tue, 28 Aug 2018 18:01:25 +0000 (20:01 +0200)]
Docs: Check Python packages

6 years agoMerge branch 'feature/emmc_ddr' into 'master'
Angus Gratton [Thu, 30 Aug 2018 10:14:35 +0000 (18:14 +0800)]
Merge branch 'feature/emmc_ddr' into 'master'

sdmmc: eMMC support, command layer refactoring

See merge request idf/esp-idf!3062

6 years agoMerge branch 'feature/py3_idf_size' into 'master'
Angus Gratton [Thu, 30 Aug 2018 10:12:17 +0000 (18:12 +0800)]
Merge branch 'feature/py3_idf_size' into 'master'

tools: Support Python 3 in idf_size.py

See merge request idf/esp-idf!2849

6 years agowhen brownout reset occurs,set the phy TX Power to the lowest
zhangyanjiao [Wed, 25 Jul 2018 09:28:56 +0000 (17:28 +0800)]
when brownout reset occurs,set the phy TX Power to the lowest

6 years agoheap: Drop priority of DMA reserved memory pool
Angus Gratton [Mon, 20 Aug 2018 06:14:13 +0000 (16:14 +1000)]
heap: Drop priority of DMA reserved memory pool

Ensures that non-reserved memory should be used up first, before allocating from this pool.

6 years agoheap: When adding a new heap, allocate its metadata block from internal memory only
Angus Gratton [Mon, 20 Aug 2018 06:12:14 +0000 (16:12 +1000)]
heap: When adding a new heap, allocate its metadata block from internal memory only

6 years agoci: Add 'check' stage, move all check-related jobs to this stage
Angus Gratton [Mon, 13 Aug 2018 02:35:11 +0000 (12:35 +1000)]
ci: Add 'check' stage, move all check-related jobs to this stage

Allows us to prevent pushing to GitHub if a check fails on master/release branch.

6 years agosdmmc: document eMMC support, host features
Ivan Grokhotkov [Mon, 13 Aug 2018 17:01:12 +0000 (20:01 +0300)]
sdmmc: document eMMC support, host features

6 years agosdmmc: update unit tests for ESP_eMMC_TestBoard_V1
Ivan Grokhotkov [Mon, 4 Jun 2018 14:00:26 +0000 (22:00 +0800)]
sdmmc: update unit tests for ESP_eMMC_TestBoard_V1

1. New tests for SD card on slot 0. Currently frequency for 4-bit mode
has to be reduced in the test.

2. Change pin for CD/WP tests, re-enable CD tests.

6 years agosdmmc: implement partial DDR support
Ivan Grokhotkov [Wed, 22 Aug 2018 10:16:32 +0000 (18:16 +0800)]
sdmmc: implement partial DDR support

Works for 3.3V eMMC in 4 line mode.
Not implemented:
- DDR mode for SD cards (UHS-I) also need voltage to be switched to 1.8V.
- 8-line DDR mode for eMMC to be implemented later.

6 years agosdmmc: command layer refactoring
Ivan Grokhotkov [Wed, 20 Jun 2018 11:59:11 +0000 (19:59 +0800)]
sdmmc: command layer refactoring

6 years agoMerge branch 'bugfix/http_server_example_tests' into 'master'
Angus Gratton [Thu, 30 Aug 2018 04:46:29 +0000 (12:46 +0800)]
Merge branch 'bugfix/http_server_example_tests' into 'master'

http_server : Fix and enable example tests

See merge request idf/esp-idf!2960

6 years agofix bluetooth security vulnerability of ECDH publick key checking
Tian Hao [Fri, 24 Aug 2018 12:01:01 +0000 (20:01 +0800)]
fix bluetooth security vulnerability of ECDH publick key checking

6 years agoeMMC/MMC support for ESP32
sergiu2014 [Wed, 9 May 2018 17:12:00 +0000 (13:12 -0400)]
eMMC/MMC support for ESP32

Merges https://github.com/espressif/esp-idf/pull/1941
Previous work in https://github.com/espressif/esp-idf/pull/590

6 years agosdmmc host: minor cleanup
Ivan Grokhotkov [Fri, 22 Jun 2018 12:11:30 +0000 (20:11 +0800)]
sdmmc host: minor cleanup

Code style, comments

6 years agoMerge branch 'fix/spi_example_wait_gpio' into 'master'
Angus Gratton [Thu, 30 Aug 2018 03:29:38 +0000 (11:29 +0800)]
Merge branch 'fix/spi_example_wait_gpio' into 'master'

spi: fix the misleading example, letting the master wait until slave is ready

See merge request idf/esp-idf!3136

6 years agoMerge branch 'test/bugfix_BTSTK_GATT_25007' into 'master'
He Yin Ling [Thu, 30 Aug 2018 03:19:04 +0000 (11:19 +0800)]
Merge branch 'test/bugfix_BTSTK_GATT_25007' into 'master'

test: fix bug of BTSTK_GATT_25007

See merge request idf/esp-idf!3096

6 years agoMerge branch 'bugfix/btdm_get_acl_num' into 'master'
Jiang Jiang Jian [Thu, 30 Aug 2018 03:12:46 +0000 (11:12 +0800)]
Merge branch 'bugfix/btdm_get_acl_num' into 'master'

component/bt : fix get acl number incorrect due to memory release

See merge request idf/esp-idf!3090

6 years agoMerge branch 'doc/python_sphinx_build' into 'master'
Angus Gratton [Thu, 30 Aug 2018 03:02:35 +0000 (11:02 +0800)]
Merge branch 'doc/python_sphinx_build' into 'master'

docs: Call 'python -m sphinx' instead of sphinx-build

See merge request idf/esp-idf!3127

6 years agoMerge branch 'bugfix/hwcrypto_mpi_ecp' into 'master'
Angus Gratton [Thu, 30 Aug 2018 02:00:07 +0000 (10:00 +0800)]
Merge branch 'bugfix/hwcrypto_mpi_ecp' into 'master'

mbedtls: Don't unnecessarily grow the result of a hardware bignum operation

See merge request idf/esp-idf!3041

6 years agoTemporary : Disable leak tests
Anurag Kar [Wed, 29 Aug 2018 21:00:41 +0000 (02:30 +0530)]
Temporary : Disable leak tests

6 years agohttp_server : Fix and enable example tests
Anurag Kar [Fri, 10 Aug 2018 18:28:38 +0000 (23:58 +0530)]
http_server : Fix and enable example tests
This introduces the following changes in the example test scripts :
* Dependency on python requests library removed in favor of httplib
* Bug fixed in the logic responsible for receiving and processing http chunked responses
* Default timeouts increased Note : Due to connectivity issues (between runner host and DUT) in the runner environment, some of the advanced_tests are being ignored. These tests are intended for verifying the expected limits of the http_server capabilities, and implement sending and receiving of large HTTP packets and malformed requests, running multiple parallel sessions, etc. It is advised that all these tests be run locally, when making changes or adding new features to this component.

6 years agoMerge branch 'bugfix/mesh_fix_hard_to_find_parent' into 'master'
Jiang Jiang Jian [Wed, 29 Aug 2018 15:05:32 +0000 (23:05 +0800)]
Merge branch 'bugfix/mesh_fix_hard_to_find_parent' into 'master'

mesh: bugfix and add two APIs

See merge request idf/esp-idf!3107

6 years agospi_flash: fix erase_range for block erase check
Mahavir Jain [Mon, 27 Aug 2018 16:24:20 +0000 (21:54 +0530)]
spi_flash: fix erase_range for block erase check

Erase in block (64k) as much as possible, before falling back
to sector (4k) erase.

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
6 years agobootloader: add API for erasing flash region
Mahavir Jain [Fri, 24 Aug 2018 12:28:04 +0000 (17:58 +0530)]
bootloader: add API for erasing flash region

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
6 years agobootloader: keep bootloader_common code to retention region
Mahavir Jain [Fri, 24 Aug 2018 12:26:38 +0000 (17:56 +0530)]
bootloader: keep bootloader_common code to retention region

It is possible to utilize some of the routines related to otadata
partition validation, after firmware image is downloaded to RAM. Hence
these routines should be part of app cpu cache, so that they do not
get overwritten by firmware.

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
6 years agospi: fix the misleading example, letting the master wait until slave is ready
Michael (XIAO Xufeng) [Wed, 29 Aug 2018 10:40:21 +0000 (18:40 +0800)]
spi: fix the misleading example, letting the master wait until slave is ready

6 years agodocs/en/security: Add documentation for signed apps without hardware secure boot...
Jitin George [Tue, 14 Aug 2018 13:25:11 +0000 (18:55 +0530)]
docs/en/security: Add documentation for signed apps without hardware secure boot feature

6 years agosecure boot: Support secure boot signatures without hardware secure boot
Angus Gratton [Thu, 19 Jul 2018 05:15:37 +0000 (15:15 +1000)]
secure boot: Support secure boot signatures without hardware secure boot

Allows OTA updates to be secured via signature checks, without requiring the overhead or complexity
of a full secure boot implementation.

Uses same signing mechanisms (build system and/or espsecure.py as Secure Boot).

Requires:
* [ ] More testing
* [ ] Documentation

6 years agoMerge branch 'bugfix/gcc8_warnings' into 'master'
Ivan Grokhotkov [Wed, 29 Aug 2018 07:53:28 +0000 (15:53 +0800)]
Merge branch 'bugfix/gcc8_warnings' into 'master'

Fix or silence warnings found by GCC 8

See merge request idf/esp-idf!3130

6 years agodocs: Call 'python -m sphinx' instead of sphinx-build
Angus Gratton [Wed, 29 Aug 2018 04:00:41 +0000 (12:00 +0800)]
docs: Call 'python -m sphinx' instead of sphinx-build

Fixes mismatches where default Python interpreter may not match the most recently
installed sphinx-build wrapper script (if sphinx 2 & 3 both installed, pip will
clobber any previous copy of /bin/sphinx-build when it installs the new one.)

6 years agoexamples/bluetooth: add fallthrough annotations
Ivan Grokhotkov [Wed, 29 Aug 2018 04:59:30 +0000 (12:59 +0800)]
examples/bluetooth: add fallthrough annotations

6 years agobluetooth: fix format overflow warnings
Anton Maklakov [Wed, 29 Aug 2018 04:55:28 +0000 (12:55 +0800)]
bluetooth: fix format overflow warnings

6 years agobluetooth: fix incorrect memset size
Anton Maklakov [Wed, 29 Aug 2018 04:55:07 +0000 (12:55 +0800)]
bluetooth: fix incorrect memset size

6 years agobluetooth: fix missing braces and indentation
Anton Maklakov [Wed, 29 Aug 2018 04:54:29 +0000 (12:54 +0800)]
bluetooth: fix missing braces and indentation

6 years agoheap: test: don’t warn about oversized mallocs
Ivan Grokhotkov [Wed, 29 Aug 2018 04:52:03 +0000 (12:52 +0800)]
heap: test: don’t warn about oversized mallocs

6 years agobt/a2dp: fix incorrect return type
Ivan Grokhotkov [Tue, 28 Aug 2018 09:31:18 +0000 (17:31 +0800)]
bt/a2dp: fix incorrect return type

res was declared as “bool” so expression

((count == 0) ? A2D_SET_ONE_BIT : A2D_SET_MULTL_BIT)

always evaluated to “true”, and was implicitly converted to
A2D_SET_ONE_BIT.

6 years agobt/bta: fix returning value from function returning void
Ivan Grokhotkov [Tue, 28 Aug 2018 10:18:31 +0000 (18:18 +0800)]
bt/bta: fix returning value from function returning void

6 years agobt/btm: fix misplaced debug statement
Ivan Grokhotkov [Tue, 28 Aug 2018 10:21:44 +0000 (18:21 +0800)]
bt/btm: fix misplaced debug statement

6 years agoexamples/bluetooth: Fix incompatible cast
Anton Maklakov [Tue, 28 Aug 2018 17:54:41 +0000 (00:54 +0700)]
examples/bluetooth: Fix incompatible cast

6 years agoexamples/spi_slave: check for truncation in snprintf call
Ivan Grokhotkov [Tue, 28 Aug 2018 13:34:44 +0000 (21:34 +0800)]
examples/spi_slave: check for truncation in snprintf call

Also fix character array initializer

6 years agospiffs: test: check for truncation in snprintf call
Ivan Grokhotkov [Tue, 28 Aug 2018 04:23:27 +0000 (12:23 +0800)]
spiffs: test: check for truncation in snprintf call

6 years agodriver, ethernet: fix non-static inline functions
Ivan Grokhotkov [Wed, 29 Aug 2018 03:26:44 +0000 (11:26 +0800)]
driver, ethernet: fix non-static inline functions

See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81734

6 years agodriver: test: fix memset out of bounds in spi_master test
Ivan Grokhotkov [Tue, 28 Aug 2018 04:22:40 +0000 (12:22 +0800)]
driver: test: fix memset out of bounds in spi_master test

6 years agosyscalls: fix type conversion for _raise_r stub
Ivan Grokhotkov [Tue, 7 Aug 2018 20:26:05 +0000 (23:26 +0300)]
syscalls: fix type conversion for _raise_r stub

6 years agoapp_trace: Fix tmo initialization
Alexey Gerenkov [Thu, 14 Jun 2018 16:11:21 +0000 (19:11 +0300)]
app_trace: Fix tmo initialization

6 years agoMerge branch 'feature/add_deinit_to_emac_driver' into 'master'
Angus Gratton [Tue, 28 Aug 2018 10:09:55 +0000 (18:09 +0800)]
Merge branch 'feature/add_deinit_to_emac_driver' into 'master'

ethernet: support esp_eth_deinit

See merge request idf/esp-idf!3059

6 years agombedtls: Don't unnecessarily grow the result of a hardware bignum operation
Angus Gratton [Thu, 9 Aug 2018 05:13:43 +0000 (15:13 +1000)]
mbedtls: Don't unnecessarily grow the result of a hardware bignum operation

Avoids growing the result of hardware bignum operations
(particularly for multiplication)

Fixes bugs where some Elliptic Curve operations fail or corrupt memory,
as they assume length of the number is never greater than the number of
non-zero limbs.

Includes some general refactoring to standardize terminology.

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

Fixes TW12984

Adds test cases for both these issues.

6 years agocomponent/bt : fix get acl number incorrect due to memory release
Tian Hao [Fri, 24 Aug 2018 12:09:54 +0000 (20:09 +0800)]
component/bt : fix get acl number incorrect due to memory release

1. after memory release MR merged, due to the get acl number condition is not completed, it will cause get acl number value incorrect
2. It may cause set Security Mode (BR/EDR) enable failed

6 years agoMerge branch 'bugfix/btdm_fix_crash_when_BLE_do_SMP_con_discon_stress_test' into...
Jiang Jiang Jian [Tue, 28 Aug 2018 05:40:20 +0000 (13:40 +0800)]
Merge branch 'bugfix/btdm_fix_crash_when_BLE_do_SMP_con_discon_stress_test' into 'master'

component/bt: fix crash when BLE do SMP connect and disconnect stress test

See merge request idf/esp-idf!3077

6 years agoethernet: support esp_eth_deinit
morris [Wed, 22 Aug 2018 09:46:14 +0000 (17:46 +0800)]
ethernet: support esp_eth_deinit

1. change static emac-dma memory to dynamic
2. add esp_eth_deinit
3. modify ethernet example
4. add testcase for ethernet deinit function
5. GPIO0 could not output the 50MHz clock to PHY, so remove this configuration

6 years agoMerge branch 'bugfix/rtc_wdt_interval_overflow' into 'master'
Angus Gratton [Tue, 28 Aug 2018 04:12:21 +0000 (12:12 +0800)]
Merge branch 'bugfix/rtc_wdt_interval_overflow' into 'master'

rtc_wdt: fix overflow issue with setting wdt interval

See merge request idf/esp-idf!3110

6 years agotest: fix bug of BTSTK_GATT_25007
chensheng [Sun, 26 Aug 2018 05:03:11 +0000 (13:03 +0800)]
test: fix bug of BTSTK_GATT_25007

6 years agoMerge branch 'bugfix/deep_sleep_stub_ptr_check' into 'master'
Ivan Grokhotkov [Tue, 28 Aug 2018 03:01:22 +0000 (11:01 +0800)]
Merge branch 'bugfix/deep_sleep_stub_ptr_check' into 'master'

reset_reason: fix setting wake stub entry point to 0x80000000

See merge request idf/esp-idf!3101