]> granicus.if.org Git - esp-idf/log
esp-idf
5 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

5 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.

5 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

5 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

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

5 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

5 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

5 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

5 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

5 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

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

5 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

5 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

5 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

5 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

5 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

5 years agoMerge branch 'bugfix/btdm_a2dp_sink_pcm_buf_size' into 'master'
Jiang Jiang Jian [Tue, 28 Aug 2018 02:42:36 +0000 (10:42 +0800)]
Merge branch 'bugfix/btdm_a2dp_sink_pcm_buf_size' into 'master'

bugfix/btdm_a2dp_sink_pcm_buffer_size

See merge request idf/esp-idf!3052

5 years agoMerge branch 'bugfix/idf_app_assert_print' into 'master'
Ivan Grokhotkov [Tue, 28 Aug 2018 02:00:44 +0000 (10:00 +0800)]
Merge branch 'bugfix/idf_app_assert_print' into 'master'

tiny-test-fw: Print more useful info when download.config doesn't exist

See merge request idf/esp-idf!3112

5 years agoMerge branch 'doc/custom_app_flash_map_off' into 'master'
Ivan Grokhotkov [Tue, 28 Aug 2018 01:59:36 +0000 (09:59 +0800)]
Merge branch 'doc/custom_app_flash_map_off' into 'master'

docs: Adds description of OpenOCD command to configure custom app image location

See merge request idf/esp-idf!3030

5 years agoMerge branch 'bugfix/disable_fuzzer_host_test_by_default' into 'master'
He Yin Ling [Mon, 27 Aug 2018 14:28:44 +0000 (22:28 +0800)]
Merge branch 'bugfix/disable_fuzzer_host_test_by_default' into 'master'

CI: disable fuzzer host test by default

See merge request idf/esp-idf!3115

5 years agoCI: disable fuzzer host test by default:
He Yin Ling [Mon, 27 Aug 2018 13:41:52 +0000 (21:41 +0800)]
CI: disable fuzzer host test by default:

Same key in YAML file will overwrite the key introduced by anchor

5 years agodocs: Adds description of OpenOCD command to configure custom app image location
Alexey Gerenkov [Thu, 16 Aug 2018 18:33:23 +0000 (21:33 +0300)]
docs: Adds description of OpenOCD command to configure custom app image location

5 years agoreset_reason: fix setting wake stub entry point to 0x80000000
Ivan Grokhotkov [Mon, 27 Aug 2018 00:12:28 +0000 (08:12 +0800)]
reset_reason: fix setting wake stub entry point to 0x80000000

esp_reset_reason_init would check for reset reason hint, and
unconditionally set RTC_RESET_CAUSE_REG (which is also
RTC_ENTRY_ADDR_REG) to hint value 0, i.e. 0x80000000. However the ROM
code treats this value as valid deep sleep wake stub entry point, and
tries to jump to it.

Clear RTC_RESET_CAUSE_REG only if it contained a valid reset reason
hint, and simply set the register value to 0 when doing so. Also add
a check to esp_get_deep_sleep_wake_stub function that deep sleep wake
stub entry address must be in IRAM.

Reported in https://esp32.com/viewtopic.php?f=13&t=6919.

5 years agotiny-test-fw: Print more useful info when download.config doesn't exist
Roland Dobai [Mon, 27 Aug 2018 10:43:37 +0000 (12:43 +0200)]
tiny-test-fw: Print more useful info when download.config doesn't exist

5 years agoMerge branch 'feature/ci_fuzzer_tests_lwip' into 'master'
Angus Gratton [Mon, 27 Aug 2018 08:25:21 +0000 (16:25 +0800)]
Merge branch 'feature/ci_fuzzer_tests_lwip' into 'master'

ci jobs running fuzz tests on dns, dhcp, dhcps + removed unnecessary references (libexpat)

See merge request idf/esp-idf!2866

5 years agoMerge branch 'bugfix/fix_several_wifi_bugs' into 'master'
Jiang Jiang Jian [Mon, 27 Aug 2018 06:24:04 +0000 (14:24 +0800)]
Merge branch 'bugfix/fix_several_wifi_bugs' into 'master'

esp32: update wifi lib to fix several WiFi bugs

See merge request idf/esp-idf!3095

5 years agoMerge branch 'bugfix/fix_probable_mem_leak' into 'master'
Jiang Jiang Jian [Mon, 27 Aug 2018 06:10:22 +0000 (14:10 +0800)]
Merge branch 'bugfix/fix_probable_mem_leak' into 'master'

components/bt: Fix a probable memory leak for BTA_GATTS_CONF_EVT event

See merge request idf/esp-idf!2962

5 years agoMerge branch 'feature/py3_idf_monitor' into 'master'
Angus Gratton [Mon, 27 Aug 2018 04:29:38 +0000 (12:29 +0800)]
Merge branch 'feature/py3_idf_monitor' into 'master'

tools: Support Python3 in idf_monitor

See merge request idf/esp-idf!2930

5 years agoMerge branch 'feature/py3_for_gen_esp_err_to_name' into 'master'
Angus Gratton [Mon, 27 Aug 2018 04:29:03 +0000 (12:29 +0800)]
Merge branch 'feature/py3_for_gen_esp_err_to_name' into 'master'

tools: support python3 in gen_esp_err_to_name.py

See merge request idf/esp-idf!2827

5 years agoMerge branch 'doc/addition_translation_in_get_started' into 'master'
Angus Gratton [Mon, 27 Aug 2018 04:21:36 +0000 (12:21 +0800)]
Merge branch 'doc/addition_translation_in_get_started' into 'master'

doc: additional translation in get_started

See merge request idf/esp-idf!3087

5 years agoMerge branch 'bugfix/btdm_fix_get_error_adv_sometimes' into 'master'
Jiang Jiang Jian [Mon, 27 Aug 2018 04:17:23 +0000 (12:17 +0800)]
Merge branch 'bugfix/btdm_fix_get_error_adv_sometimes' into 'master'

Component/bt: fix get error adv packet sometimes

See merge request idf/esp-idf!3035

5 years agocomponent/bt: fix crash when BLE do SMP connect and disconnect stress test
zwj [Fri, 24 Aug 2018 04:54:20 +0000 (12:54 +0800)]
component/bt: fix crash when BLE do SMP connect and disconnect stress test

5 years agocomponent/bt: bugfix for incorrect computation of PCM data buffer size in A2DP sink
wangmengyang [Tue, 21 Aug 2018 11:27:04 +0000 (19:27 +0800)]
component/bt: bugfix for incorrect computation of PCM data buffer size in A2DP sink

5 years agodoc: additional translation in get_stated
morris [Fri, 24 Aug 2018 08:50:34 +0000 (16:50 +0800)]
doc: additional translation in get_stated

5 years agoMerge branch 'bugfix/btdm_fix_memory_leak_in_security_server' into 'master'
Jiang Jiang Jian [Mon, 27 Aug 2018 02:19:27 +0000 (10:19 +0800)]
Merge branch 'bugfix/btdm_fix_memory_leak_in_security_server' into 'master'

component/bt: fix memory leak in security server

See merge request idf/esp-idf!3014

5 years agoMerge branch 'doc/build_system_zh_CN' into 'master'
Angus Gratton [Mon, 27 Aug 2018 01:40:40 +0000 (09:40 +0800)]
Merge branch 'doc/build_system_zh_CN' into 'master'

doc: translate build-system from en to zh_CN

See merge request idf/esp-idf!3067

5 years agoMerge branch 'bugfix/app_update_test' into 'master'
Angus Gratton [Mon, 27 Aug 2018 00:46:02 +0000 (08:46 +0800)]
Merge branch 'bugfix/app_update_test' into 'master'

app_update: Change NUM_PIN_APP_TEST for unit test

See merge request idf/esp-idf!3050

5 years agoMerge branch 'bugfix/btdm_check_slave_feats_before_set_afh' into 'master'
Jiang Jiang Jian [Sun, 26 Aug 2018 08:19:48 +0000 (16:19 +0800)]
Merge branch 'bugfix/btdm_check_slave_feats_before_set_afh' into 'master'

bugfix/btdm_check_slave_feature_before_set_afh

See merge request idf/esp-idf!2972

5 years agoesp32: update wifi lib to fix several WiFi bugs
Liu Zhi Fu [Sun, 26 Aug 2018 04:38:06 +0000 (12:38 +0800)]
esp32: update wifi lib to fix several WiFi bugs

Fix following WiFi bugs:
1. Shouldn't scan when connect
2. Check beacon length in modem sleep
3. Fix the bug that AP may deauth wrong station when inactivity timer expires
4. Fix the bug that WiFi assert the system when receiving empty MCS in association response frame

5 years agocomponents/bt: Fix a probable memory leak for BTA_GATTS_CONF_EVT event
Hrishikesh Dhayagude [Wed, 8 Aug 2018 08:46:03 +0000 (14:16 +0530)]
components/bt: Fix a probable memory leak for BTA_GATTS_CONF_EVT event

Multiple modules register their callback BTA_GATTS_AppRegister().

If any of the callbacks do not free the allocated pointer in
BTA_GATTS_CONF_EVT event, then this can result in memory leak.

So, free the pointer after the callback function is called and remove
the calls to free in the callback functions as it is now not required

Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
5 years agoComponent/bt: fix memory leak in security server
zhiweijian [Tue, 14 Aug 2018 12:35:43 +0000 (20:35 +0800)]
Component/bt: fix memory leak in security server

5 years agoMerge branch 'test/fix_test_summary_duplicate' into 'master'
He Yin Ling [Sat, 25 Aug 2018 02:22:40 +0000 (10:22 +0800)]
Merge branch 'test/fix_test_summary_duplicate' into 'master'

fix bug BTSTK_GAP_14007,BTSTK_GAP_14008,BTSTK_GAP_14009 duplicate summary

See merge request idf/esp-idf!3079

5 years agortc_wdt: fix overflow issue with setting wdt interval
Mahavir Jain [Fri, 24 Aug 2018 12:28:22 +0000 (17:58 +0530)]
rtc_wdt: fix overflow issue with setting wdt interval

Signed-off-by: Mahavir Jain <mahavir@espressif.com>
5 years agoMerge branch 'bugfix/multi_case_test' into 'master'
He Yin Ling [Fri, 24 Aug 2018 11:54:34 +0000 (19:54 +0800)]
Merge branch 'bugfix/multi_case_test' into 'master'

test: fix the multi device stop thread bug

See merge request idf/esp-idf!3039

5 years agocomponent/bt: check support of AFH in remote slave device's LM feature then determine...
wangmengyang [Tue, 21 Aug 2018 11:41:10 +0000 (19:41 +0800)]
component/bt: check support of AFH in remote slave device's LM feature then determine whether to send LMP_set_AFH

5 years agoComponent/bt: fix get error adv packet sometimes
zhiweijian [Fri, 17 Aug 2018 03:54:45 +0000 (11:54 +0800)]
Component/bt: fix get error adv packet sometimes

5 years agoapp_update: Change NUM_PIN_APP_TEST for unit test
Konstantin Kondrashov [Tue, 21 Aug 2018 09:55:49 +0000 (17:55 +0800)]
app_update: Change NUM_PIN_APP_TEST for unit test

Fixed error when `make TESTS_ALL=1`

5 years ago fix bug BTSTK_GAP_14007,BTSTK_GAP_14008,BTSTK_GAP_14009 duplicate summary
chensheng [Fri, 24 Aug 2018 06:25:24 +0000 (14:25 +0800)]
 fix bug BTSTK_GAP_14007,BTSTK_GAP_14008,BTSTK_GAP_14009 duplicate summary

5 years agotools: support python3 in gen_esp_err_to_name.py
Roland Dobai [Thu, 2 Aug 2018 09:01:04 +0000 (11:01 +0200)]
tools: support python3 in gen_esp_err_to_name.py

5 years agotools: Support Python3 in idf_monitor
Roland Dobai [Wed, 1 Aug 2018 09:47:05 +0000 (11:47 +0200)]
tools: Support Python3 in idf_monitor

Closes https://github.com/espressif/esp-idf/pull/1284

5 years agodoc: translate build_system from en to zh_CN
morris [Thu, 23 Aug 2018 10:06:46 +0000 (18:06 +0800)]
doc: translate build_system from en to zh_CN

5 years agoMerge branch 'feature/python_future' into 'master'
Angus Gratton [Fri, 24 Aug 2018 00:04:18 +0000 (08:04 +0800)]
Merge branch 'feature/python_future' into 'master'

Add python-future by using python requirements file

See merge request idf/esp-idf!2973

5 years agoMerge branch 'fix/spi_dma_config_in_iram' into 'master'
Ivan Grokhotkov [Thu, 23 Aug 2018 14:03:28 +0000 (22:03 +0800)]
Merge branch 'fix/spi_dma_config_in_iram' into 'master'

SPI: put dma config and slave functions into IRAM

See merge request idf/esp-idf!3038

5 years agoMerge branch 'test/add_mesh_recreate_network_case_to_known_issue' into 'master'
He Yin Ling [Thu, 23 Aug 2018 11:12:08 +0000 (19:12 +0800)]
Merge branch 'test/add_mesh_recreate_network_case_to_known_issue' into 'master'

test: add mesh recreate network case as known issue

See merge request idf/esp-idf!3066

5 years agotest: disable mesh recreate network test:
He Yin Ling [Thu, 23 Aug 2018 09:49:59 +0000 (17:49 +0800)]
test: disable mesh recreate network test:

We have fixed a bug in test script. Before that, we didn't do strict check when generate the mesh tree, which makes the test pass.

Temp disable these cases, to let CI pass before bug fixed.

5 years agodocs: make the use of pip install clear
Roland Dobai [Thu, 23 Aug 2018 09:16:56 +0000 (11:16 +0200)]
docs: make the use of pip install clear

5 years agobootloader: Don't use check_python_dependencies in the bootloader command
Roland Dobai [Mon, 20 Aug 2018 09:07:27 +0000 (11:07 +0200)]
bootloader: Don't use check_python_dependencies in the bootloader command

5 years agobugfix:fix the multi device stop thread bug
houchenyao [Mon, 20 Aug 2018 11:21:10 +0000 (19:21 +0800)]
bugfix:fix the multi device stop thread bug

5 years agomake: Don't invoke check_python_dependencies in bootloader subproject
Angus Gratton [Mon, 20 Aug 2018 07:40:14 +0000 (17:40 +1000)]
make: Don't invoke check_python_dependencies in bootloader subproject

5 years agomake: Use order-only prereq to check python dependencies
Angus Gratton [Mon, 20 Aug 2018 07:39:56 +0000 (17:39 +1000)]
make: Use order-only prereq to check python dependencies

5 years agotranslated some parts in get-started section to zh_CN
morris [Thu, 16 Aug 2018 02:31:04 +0000 (10:31 +0800)]
translated some parts in get-started section to zh_CN

1. "install required python packages" in docs/zh_CN/get-started/index.rst
2. docs/zh_CN/get-started/linux-setup-scratch.rst
3. docs/zh_CN/get-started/linux-setup.rst
4. docs/zh_CN/get-started/macos-setup-scratch.rst
5. docs/zh_CN/get-started/macos-setup.rst

5 years agoAdd python-future by using python requirements file
Roland Dobai [Wed, 15 Aug 2018 07:52:07 +0000 (09:52 +0200)]
Add python-future by using python requirements file

5 years agospi_slave: add new menuconfig item to decide whether spi slave should be put into...
Michael (XIAO Xufeng) [Mon, 20 Aug 2018 10:30:40 +0000 (18:30 +0800)]
spi_slave: add new menuconfig item to decide whether spi slave should be put into IRAM

5 years agospi: fix the issue that spi cannot be used when flash is disabled
Michael (XIAO Xufeng) [Mon, 20 Aug 2018 10:27:38 +0000 (18:27 +0800)]
spi: fix the issue that spi cannot be used when flash is disabled

The dma configuration function called in the ISR should be put into the IRAM.

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

5 years agoMerge branch 'feature/rtc_slowclk_extra_options' into 'master'
Ivan Grokhotkov [Thu, 23 Aug 2018 03:27:14 +0000 (11:27 +0800)]
Merge branch 'feature/rtc_slowclk_extra_options' into 'master'

Add more RTC_SLOW_CLK options

See merge request idf/esp-idf!2984

5 years agoMerge branch 'bugfix/esp_bt_controller_mem_release' into 'master'
Jiang Jiang Jian [Thu, 23 Aug 2018 03:02:17 +0000 (11:02 +0800)]
Merge branch 'bugfix/esp_bt_controller_mem_release' into 'master'

BT/BTDM memory release might fail if any of the memory regions is empty

See merge request idf/esp-idf!3031

5 years agoMerge branch 'bugfix/timer_oneshot_timeout_twice' into 'master'
Jiang Jiang Jian [Thu, 23 Aug 2018 02:41:53 +0000 (10:41 +0800)]
Merge branch 'bugfix/timer_oneshot_timeout_twice' into 'master'

component/bt: Some timer oneshot will timeout twice

See merge request idf/esp-idf!2979

5 years agoMerge branch 'bugfix/nvs_set_blob_bug' into 'master'
Ivan Grokhotkov [Thu, 23 Aug 2018 02:27:20 +0000 (10:27 +0800)]
Merge branch 'bugfix/nvs_set_blob_bug' into 'master'

nvs_flash: Fix nvs_set_blob hang when partition is near to FULL

See merge request idf/esp-idf!3051

5 years agoMerge branch 'bugfix/wrover-kit-camera-socket-pinout' into 'master'
Angus Gratton [Thu, 23 Aug 2018 01:06:04 +0000 (09:06 +0800)]
Merge branch 'bugfix/wrover-kit-camera-socket-pinout' into 'master'

Corrected pinout of the Camera / J4 connector

See merge request idf/esp-idf!3054

5 years agoMerge branch 'bugfix/freertos_task_delete' into 'master'
Angus Gratton [Wed, 22 Aug 2018 11:39:21 +0000 (19:39 +0800)]
Merge branch 'bugfix/freertos_task_delete' into 'master'

freertos: Expose TCB & Stack memory capabilities as macro, fix task delete test

See merge request idf/esp-idf!3040

5 years agolwip: removed ASSERT in dhcp as the error might occur in runtime if packet is altered
David Cermak [Wed, 22 Aug 2018 06:52:41 +0000 (08:52 +0200)]
lwip: removed ASSERT in dhcp as the error might occur in runtime if packet is altered

5 years agolwip: supported ci jobs running fuzz tests on dns, dhcp, dhcps
David Cermak [Fri, 27 Jul 2018 07:26:51 +0000 (09:26 +0200)]
lwip: supported ci jobs running fuzz tests on dns, dhcp, dhcps

5 years agoMerge branch 'bugfix/trace_mem_layout_pro_cpu' into 'master'
Ivan Grokhotkov [Wed, 22 Aug 2018 08:51:43 +0000 (16:51 +0800)]
Merge branch 'bugfix/trace_mem_layout_pro_cpu' into 'master'

soc: fix trace memory region for single core mode

See merge request idf/esp-idf!3029

5 years agoMerge branch 'feature/make-otadata' into 'master'
Ivan Grokhotkov [Wed, 22 Aug 2018 08:51:36 +0000 (16:51 +0800)]
Merge branch 'feature/make-otadata' into 'master'

make dump_otadata: Displays app ota_seq and crc on console

See merge request idf/esp-idf!2901

5 years agomake dump_otadata: Displays app ota_seq and crc on console
Sachin Parekh [Wed, 22 Aug 2018 08:51:36 +0000 (16:51 +0800)]
make dump_otadata: Displays app ota_seq and crc on console

5 years agoMerge branch 'bugfix/http_write_data' into 'master'
Ivan Grokhotkov [Wed, 22 Aug 2018 08:49:29 +0000 (16:49 +0800)]
Merge branch 'bugfix/http_write_data' into 'master'

esp_http_client: Fix minor bugs in `esp_http_client_write` and `esp_http_client_open` APIs

See merge request idf/esp-idf!2924

5 years agoMerge branch 'feature/esp_http_client_add_esp_tls' into 'master'
Ivan Grokhotkov [Wed, 22 Aug 2018 08:48:35 +0000 (16:48 +0800)]
Merge branch 'feature/esp_http_client_add_esp_tls' into 'master'

esp_http_client: Add esp-tls in esp_http_client

See merge request idf/esp-idf!2740

5 years agoesp32: add support for 8MD256 and external 32k as slow clock options
Ivan Grokhotkov [Sun, 12 Aug 2018 22:12:01 +0000 (01:12 +0300)]
esp32: add support for 8MD256 and external 32k as slow clock options

5 years agosoc/rtc: Force power on 8M clock if it is used to derive RTC slow clock
Ivan Grokhotkov [Sun, 12 Aug 2018 22:11:32 +0000 (01:11 +0300)]
soc/rtc: Force power on 8M clock if it is used to derive RTC slow clock

5 years agosoc/rtc: add support for external 32k oscillator
Ivan Grokhotkov [Sun, 12 Aug 2018 22:10:29 +0000 (01:10 +0300)]
soc/rtc: add support for external 32k oscillator

Compared to external 32k XTAL, when active oscillator is used as input,
some parameters need to be set differently.

5 years agoesp32/clk: remove unused code
Ivan Grokhotkov [Sun, 12 Aug 2018 22:09:06 +0000 (01:09 +0300)]
esp32/clk: remove unused code

When 32k XTAL was selected as clock source, if the first calibration
attempt failed, the code would fall back to 150kHz internal clock.
Calibration with the internal clock will always succeed.
Therefore `wait` would always be either 0 or 1. Based on this, some
code in this routine can be eliminated.

5 years agoMerge branch 'feature/rtc_cpu_freq_config' into 'master'
Ivan Grokhotkov [Wed, 22 Aug 2018 03:32:08 +0000 (11:32 +0800)]
Merge branch 'feature/rtc_cpu_freq_config' into 'master'

soc/rtc: Refactoring, support CPU frequencies lower than XTAL

See merge request idf/esp-idf!2856

5 years agoCorrected pinout of the Camera / J4 connector
krzychb [Tue, 21 Aug 2018 20:01:28 +0000 (22:01 +0200)]
Corrected pinout of the Camera / J4 connector

5 years agonvs_flash: Fix nvs_set_blob hang when partition is near to FULL
Sagar Bijwe [Tue, 21 Aug 2018 11:36:17 +0000 (17:06 +0530)]
nvs_flash: Fix nvs_set_blob hang when partition is near to FULL

Marking a page full does not skip it from page selection process and the
same page might get returned if there is no other page with more unused
entries. Added a check for the same while storing blobs.

Fixes: https://github.com/espressif/esp-idf/issues/2313
5 years agoesp_http_client: Add esp-tls APIs in SSL transport of esp_http_client
Jitin George [Fri, 27 Jul 2018 12:48:26 +0000 (18:18 +0530)]
esp_http_client: Add esp-tls APIs in SSL transport of esp_http_client

esp-tls APIs and SSL transport layer of esp_http_client try to
achieve similar things, so this is an effort to remove code redundancy.

5 years agoesp-tls: Add support for network timeout
Jitin George [Fri, 27 Jul 2018 12:45:55 +0000 (18:15 +0530)]
esp-tls: Add support for network timeout

5 years agoMerge branch 'feature/spi_burst_desc' into 'master'
Jeroen Domburg [Tue, 21 Aug 2018 08:54:38 +0000 (16:54 +0800)]
Merge branch 'feature/spi_burst_desc' into 'master'

spi_master: change to DMA burst mode when access descriptors

See merge request idf/esp-idf!2824

5 years agoMerge branch 'feat/spi_non_dma_64byte' into 'master'
Jeroen Domburg [Tue, 21 Aug 2018 08:53:37 +0000 (16:53 +0800)]
Merge branch 'feat/spi_non_dma_64byte' into 'master'

spi_master: change high part config to allow transactions of 64 bytes

See merge request idf/esp-idf!3025

5 years agodocs: update power management section on esp_pm_configure
Ivan Grokhotkov [Sun, 29 Jul 2018 06:36:07 +0000 (09:36 +0300)]
docs: update power management section on esp_pm_configure

5 years agosoc/rtc_clk: reduce data size by disabling CSWTCH generation
Ivan Grokhotkov [Sun, 29 Jul 2018 05:27:06 +0000 (08:27 +0300)]
soc/rtc_clk: reduce data size by disabling CSWTCH generation

Saves about 200 bytes of DRAM at the expense of 4 bytes in IRAM.

5 years agosoc/rtc_clk: split rtc_clk_init into separate object file
Ivan Grokhotkov [Sun, 29 Jul 2018 05:24:20 +0000 (08:24 +0300)]
soc/rtc_clk: split rtc_clk_init into separate object file

rtc_clk_init and related functions don’t need to be in IRAM/DRAM.

5 years agoexamples/power_save: set CPU frequencies in sdkconfig
Ivan Grokhotkov [Wed, 25 Jul 2018 23:02:31 +0000 (02:02 +0300)]
examples/power_save: set CPU frequencies in sdkconfig

5 years agotests: use new CPU frequency setting API
Ivan Grokhotkov [Sun, 29 Jul 2018 07:51:19 +0000 (10:51 +0300)]
tests: use new CPU frequency setting API

5 years agobootloader: use new CPU frequency setting API
Ivan Grokhotkov [Sun, 29 Jul 2018 07:51:02 +0000 (10:51 +0300)]
bootloader: use new CPU frequency setting API

5 years agoesp32: use new CPU frequency setting API
Ivan Grokhotkov [Sun, 29 Jul 2018 07:50:49 +0000 (10:50 +0300)]
esp32: use new CPU frequency setting API

5 years agosoc/rtc: CPU frequency settings refactoring
Ivan Grokhotkov [Sun, 29 Jul 2018 07:47:58 +0000 (10:47 +0300)]
soc/rtc: CPU frequency settings refactoring

Previous APIs used to set CPU frequency used CPU frequencies listed in
rtc_cpu_freq_t enumeration. This was problematic for two reasons.
First, supporting many possible frequency values obtained by dividing
XTAL frequency was hard, as every value would have to be listed in
the enumeration. Since different base XTAL frequencies are supported,
this further complicated things, since not all of these divided
frequencies would be valid for any given XTAL frequency. Second,
having to deal with enumeration values often involved switch
statements to convert between enumeration and MHz values, handle
PLL/XTAL frequencies separately, etc.

This change introduces rtc_cpu_freq_config_t structure, which contains
CPU frequency (in MHz) and information on how this frequency has to
be generated: clock source (XTAL/PLL), source frequency, clock
divider value. More fields can be added to this structure in the
future. This structure simplifies many parts of the code, since both
frequency value and frequency generation settings can be accessed in
any place in code without the need for conversions.

Additionally, this change adds setting of REF_TICK dividers to support
frequencies lower then XTAL with DFS.

5 years agoesp_clk.h: add esp_clk_xtal_freq
Ivan Grokhotkov [Sun, 29 Jul 2018 06:34:49 +0000 (09:34 +0300)]
esp_clk.h: add esp_clk_xtal_freq

This adds a user API for getting the XTAL frequency

5 years agoMerge branch 'feature/move_CONFIG_TCPIP_LWIP_to_menuconfig' into 'master'
Ivan Grokhotkov [Tue, 21 Aug 2018 03:37:15 +0000 (11:37 +0800)]
Merge branch 'feature/move_CONFIG_TCPIP_LWIP_to_menuconfig' into 'master'

tcpip_adapter: optimise tcpip_adapter and fix a bug in emac_dev.c

See merge request idf/esp-idf!3017

5 years agoMerge branch 'feature/reset_reason' into 'master'
Ivan Grokhotkov [Tue, 21 Aug 2018 03:34:12 +0000 (11:34 +0800)]
Merge branch 'feature/reset_reason' into 'master'

Add API to get reset reason

See merge request idf/esp-idf!2871

5 years agofreertos: Expose TCB & Stack memory capabilities as macro, fix task delete test
Angus Gratton [Mon, 20 Aug 2018 06:11:35 +0000 (16:11 +1000)]
freertos: Expose TCB & Stack memory capabilities as macro, fix task delete test

Test was failing if task was allocating TCB & Stack memory from DMA only pool
which is not MALLOC_CAP_DEFAULT.