]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoCI: Make the list of examples permanent between jobs
Anton Maklakov [Thu, 20 Jul 2017 08:46:30 +0000 (16:46 +0800)]
CI: Make the list of examples permanent between jobs

Because the results of the 'find' command are not sorted by name.

7 years agoMerge branch 'feature/btdm_ble_tx_power_new' into 'master'
Jiang Jiang Jian [Thu, 20 Jul 2017 07:16:13 +0000 (15:16 +0800)]
Merge branch 'feature/btdm_ble_tx_power_new' into 'master'

component/bt : add ble tx power && fix controller deinit mem leak

See merge request !1018

7 years agoMerge branch 'bugfix/init_nvs_in_bluetooth' into 'master'
Ivan Grokhotkov [Thu, 20 Jul 2017 06:25:49 +0000 (14:25 +0800)]
Merge branch 'bugfix/init_nvs_in_bluetooth' into 'master'

bt: call nvs_flash_init in examples, show error if NVS is not initialized

See merge request !1003

7 years agoMerge branch 'bugfix/example_adc_pin' into 'master'
Ivan Grokhotkov [Thu, 20 Jul 2017 04:15:43 +0000 (12:15 +0800)]
Merge branch 'bugfix/example_adc_pin' into 'master'

Changed adc GPIO pin 32, that is not jumped to header in ESP-WROVER-KIT,
to 34

See merge request !1020

7 years agoMerge branch 'bugfix/exception_lomem_heap_init' into 'master'
Ivan Grokhotkov [Thu, 20 Jul 2017 04:13:12 +0000 (12:13 +0800)]
Merge branch 'bugfix/exception_lomem_heap_init' into 'master'

heap_caps: Allow for possibility a region is too small to register a heap

See merge request !1024

7 years agoMerge branch 'bugfix/project_makefile_recompile' into 'master'
Angus Gratton [Thu, 20 Jul 2017 02:10:00 +0000 (10:10 +0800)]
Merge branch 'bugfix/project_makefile_recompile' into 'master'

build system: Updating project Makefile should trigger a full rebuild

See merge request !990

7 years agoMerge branch 'feature/boot_time_optimisation' into 'master'
Angus Gratton [Thu, 20 Jul 2017 02:00:19 +0000 (10:00 +0800)]
Merge branch 'feature/boot_time_optimisation' into 'master'

Optimise boot times, calculate SHA-256 hash of image during boot

See merge request !939

7 years agobootloader: Remove unnecessary KEEP on data/bss sections, save static RAM
Angus Gratton [Mon, 17 Jul 2017 04:37:06 +0000 (14:37 +1000)]
bootloader: Remove unnecessary KEEP on data/bss sections, save static RAM

7 years agobootloader: Add option to build with Link Time Optimisation enabled
Angus Gratton [Fri, 30 Jun 2017 07:14:50 +0000 (17:14 +1000)]
bootloader: Add option to build with Link Time Optimisation enabled

7 years agobootloader: Calculate SHA256 hash of image on every boot
Angus Gratton [Wed, 28 Jun 2017 06:46:34 +0000 (16:46 +1000)]
bootloader: Calculate SHA256 hash of image on every boot

Makes app image booting more reliable (256-bit rather than 8-bit verification.)

Some measurements, time to boot a 655KB app.bin file and run to app_main() execution.

(All for rev 1 silicon, ie no 340ms spurious WDT delay.)

80MHz QIO mode:
before = 300ms
after = 140ms

40MHz DIO mode:
before = 712ms
after = 577ms

40MHz DIO mode, secure boot enabled
before = 1380ms
after = 934ms

(Secure boot involves two ECC signature verifications (partition table, app) that take approx 300ms each with 80MHz CPU.)

7 years agoesp_image_format: ESP32 additional header does not contain an encrypt flag
Angus Gratton [Tue, 27 Jun 2017 07:25:44 +0000 (17:25 +1000)]
esp_image_format: ESP32 additional header does not contain an encrypt flag

7 years agobootloader: Calculate SHA-256 of image while loading/verifying
Angus Gratton [Tue, 27 Jun 2017 07:25:30 +0000 (17:25 +1000)]
bootloader: Calculate SHA-256 of image while loading/verifying

7 years agobootloader: Obfuscate loaded memory until verification is complete
Angus Gratton [Wed, 21 Jun 2017 07:39:15 +0000 (17:39 +1000)]
bootloader: Obfuscate loaded memory until verification is complete

7 years agobootloader: Combine loading from flash & verifying to save boot time
Angus Gratton [Fri, 16 Jun 2017 06:30:21 +0000 (16:30 +1000)]
bootloader: Combine loading from flash & verifying to save boot time

Still needs updating to account for secure boot.

7 years agoMerge branch 'feature/esptool_image_padding' into 'master'
Angus Gratton [Wed, 19 Jul 2017 07:52:22 +0000 (15:52 +0800)]
Merge branch 'feature/esptool_image_padding' into 'master'

esptool: Optimise app image size by using RAM-loaded data for padding

See merge request !1017

7 years agolinker script: Add some comments about significance of 0x18 byte offset
Angus Gratton [Wed, 19 Jul 2017 07:38:05 +0000 (17:38 +1000)]
linker script: Add some comments about significance of 0x18 byte offset

7 years agoheap_caps: Allow for possibility a region is too small to register a heap
Angus Gratton [Wed, 19 Jul 2017 07:10:33 +0000 (17:10 +1000)]
heap_caps: Allow for possibility a region is too small to register a heap

May happen due to sdkconfig, static allocation of RAM.

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

7 years agolinker scripts: Limit DROM/IROM section lengths correctly
Angus Gratton [Wed, 19 Jul 2017 06:33:48 +0000 (16:33 +1000)]
linker scripts: Limit DROM/IROM section lengths correctly

7 years agoesptool: Optimise generated image size by using RAM-loaded data for padding
Angus Gratton [Mon, 17 Jul 2017 23:56:23 +0000 (09:56 +1000)]
esptool: Optimise generated image size by using RAM-loaded data for padding

Can save almost 128KB from some images.

7 years agoMerge branch 'feature/flash_qio_wp_pin' into 'master'
Angus Gratton [Wed, 19 Jul 2017 05:55:05 +0000 (13:55 +0800)]
Merge branch 'feature/flash_qio_wp_pin' into 'master'

bootloader: Flash QIO configuration feature & fix

See merge request !895

7 years agobootloader flash QIO mode: Restore DIO/DOUT mode if enabling quad fails
Angus Gratton [Tue, 20 Jun 2017 00:56:29 +0000 (10:56 +1000)]
bootloader flash QIO mode: Restore DIO/DOUT mode if enabling quad fails

Previously, flash was degraded to single I/O mode.

7 years agobootloader: When customising SPI flash pins in efuse, set WP pin in menuconfig
Angus Gratton [Tue, 20 Jun 2017 00:47:46 +0000 (10:47 +1000)]
bootloader: When customising SPI flash pins in efuse, set WP pin in menuconfig

Allows custom configurations for QIO/QOUT mode.

7 years agoMerge branch 'feature/component_include_order' into 'master'
Angus Gratton [Wed, 19 Jul 2017 04:58:50 +0000 (12:58 +0800)]
Merge branch 'feature/component_include_order' into 'master'

build system: Order private include directories before public ones

See merge request !955

7 years agoMerge branch 'feature/component_discovery' into 'master'
Angus Gratton [Tue, 18 Jul 2017 23:28:15 +0000 (07:28 +0800)]
Merge branch 'feature/component_discovery' into 'master'

build system: Improvements to component discovery

See merge request !902

7 years agobuild system: Don't error out if an already-build project or IDF directory has moved
Angus Gratton [Fri, 14 Jul 2017 08:23:56 +0000 (16:23 +0800)]
build system: Don't error out if an already-build project or IDF directory has moved

7 years agobuild system: Use component.mk for all components, refactor bootloader build
Angus Gratton [Fri, 23 Jun 2017 04:08:01 +0000 (14:08 +1000)]
build system: Use component.mk for all components, refactor bootloader build

For config-only components, component.mk should now contain "COMPONENT_CONFIG_ONLY := 1"

Also refactored some of the generation of linker paths, library list. This required cleaning up the way the bootloader
project works, it's now mostly independent from the parent.

7 years agobuild system docs: Add some notes about project-level variables
Angus Gratton [Wed, 21 Jun 2017 05:13:15 +0000 (15:13 +1000)]
build system docs: Add some notes about project-level variables

7 years agobuild system: Make component searching more explicit, obsolete SRCDIRS
Angus Gratton [Wed, 21 Jun 2017 04:41:04 +0000 (14:41 +1000)]
build system: Make component searching more explicit, obsolete SRCDIRS

Each COMPONENT_DIRS directory can now either be a component directory, or a parent directory containing component
subdirectories.

When searching for components, skip any directory which doesn't have component.mk, Kconfig.projbuild, or
Makefile.projbuild in it. This helps with debugging, list-components output, etc.

7 years agobuild system: Add list-components target for debugging component discovery
Angus Gratton [Wed, 21 Jun 2017 05:09:24 +0000 (15:09 +1000)]
build system: Add list-components target for debugging component discovery

7 years agoChanged adc GPIO pin 32, that is not broken out on header in ESP-WROVER-KIT, to 34
krzychb [Tue, 18 Jul 2017 19:10:06 +0000 (21:10 +0200)]
Changed adc GPIO pin 32, that is not broken out on header in ESP-WROVER-KIT, to 34

7 years agocomponent/bt : add ble tx power && fix controller deinit mem leak
Tian Hao [Tue, 11 Jul 2017 13:46:17 +0000 (21:46 +0800)]
component/bt : add ble tx power && fix controller deinit mem leak

1. add ble tx power functions
2. add more osi functions.
3. modify bluetooth controller task procedure
4. fix a memory leak when controller deinit
5. add controller disable return value.

7 years agoMerge branch 'feature/mmap_unordered_flash_pages' into 'master'
Ivan Grokhotkov [Tue, 18 Jul 2017 02:49:12 +0000 (10:49 +0800)]
Merge branch 'feature/mmap_unordered_flash_pages' into 'master'

Add function to map non-contiguous flash pages to contiguous memory space.

See merge request !873

7 years agoMerge branch 'feature/high_level_interrupts' into 'master'
Ivan Grokhotkov [Tue, 18 Jul 2017 02:42:31 +0000 (10:42 +0800)]
Merge branch 'feature/high_level_interrupts' into 'master'

Break out high-level interrupts so a component can override them

See merge request !675

7 years agoMerge branch 'bugfix/rom_gpio_typo' into 'master'
Angus Gratton [Mon, 17 Jul 2017 22:53:30 +0000 (06:53 +0800)]
Merge branch 'bugfix/rom_gpio_typo' into 'master'

bugfix(typo): fix typo in rom/gpio.h

See merge request !1009

7 years agobt: call nvs_flash_init in examples, show error if NVS is not initialized
Ivan Grokhotkov [Thu, 13 Jul 2017 15:46:19 +0000 (23:46 +0800)]
bt: call nvs_flash_init in examples, show error if NVS is not initialized

NVS is used to store PHY calibration data, WiFi configuration, and BT
configuration. Previously BT examples did not call nvs_flash_init,
relying on the fact that it is called during PHY init. However PHY init
did not handle possible NVS initialization errors.

This change moves PHY init procedure into the application, and adds
diagnostic messages to BT config management routines if NVS is not
initialized.

7 years agoMerge branch 'bugfix/rom_doc_toc' into 'master'
Ivan Grokhotkov [Mon, 17 Jul 2017 13:19:06 +0000 (21:19 +0800)]
Merge branch 'bugfix/rom_doc_toc' into 'master'

doc: Move romconsole doc sub-headings to sub-headings

See merge request !994

7 years agoMerge branch 'bugfix/wl_write' into 'master'
Ivan Grokhotkov [Mon, 17 Jul 2017 10:31:27 +0000 (18:31 +0800)]
Merge branch 'bugfix/wl_write' into 'master'

wear_levelling: fix write and read length for single access was wrong.

See merge request !993

7 years agowear_levelling: fix write and read length for single access was wrong.
Dmitry Yakovlev [Thu, 13 Jul 2017 05:24:15 +0000 (08:24 +0300)]
wear_levelling: fix write and read length for single access was wrong.

7 years agobugfix(typo): fix typo in rom/gpio.h
Wangjialin [Mon, 17 Jul 2017 07:41:02 +0000 (15:41 +0800)]
bugfix(typo): fix typo in rom/gpio.h

7 years agoMerge branch 'bugfix/nghttp2_build_submodules' into 'master'
Angus Gratton [Mon, 17 Jul 2017 06:14:28 +0000 (14:14 +0800)]
Merge branch 'bugfix/nghttp2_build_submodules' into 'master'

nghttp2: Add submodule to COMPONENT_SUBMODULES, update to v1.24

See merge request !977

7 years agoMerge branch 'bugfix/bootloader_stack_smash' into 'master'
Angus Gratton [Mon, 17 Jul 2017 06:11:35 +0000 (14:11 +0800)]
Merge branch 'bugfix/bootloader_stack_smash' into 'master'

Fix crashes when >approx 185KB of DRAM is statically allocated

See merge request !983

7 years agoMerge branch 'bugfix/dont_link_unused_data_sections' into 'master'
Angus Gratton [Mon, 17 Jul 2017 06:10:12 +0000 (14:10 +0800)]
Merge branch 'bugfix/dont_link_unused_data_sections' into 'master'

ld: Save RAM by removing unused .data sections at link time

See merge request !985

7 years agoMerge branch 'feature/some_refactor_for_tcpip_adapter' into 'master'
Jiang Jiang Jian [Thu, 13 Jul 2017 14:16:00 +0000 (22:16 +0800)]
Merge branch 'feature/some_refactor_for_tcpip_adapter' into 'master'

tcpip_adapter: not remove netif when tcpip adapter is stopped

See merge request !943

7 years agoMerge branch 'bugfix/btdm_modify_BTA_GATTC_KNOWN_SR_MAX_for_Multi-connection' into...
Jiang Jiang Jian [Thu, 13 Jul 2017 13:55:24 +0000 (21:55 +0800)]
Merge branch 'bugfix/btdm_modify_BTA_GATTC_KNOWN_SR_MAX_for_Multi-connection' into 'master'

component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug

See merge request !992

7 years agotcpip_adapter: not free netif when tcpip adapter is stopped
Liu Zhi Fu [Fri, 30 Jun 2017 08:49:42 +0000 (16:49 +0800)]
tcpip_adapter: not free netif when tcpip adapter is stopped

When tcpip adapter is stop, don't free the netif

7 years agoMerge branch 'feature/silent_assertions' into 'master'
Angus Gratton [Thu, 13 Jul 2017 09:21:09 +0000 (17:21 +0800)]
Merge branch 'feature/silent_assertions' into 'master'

Add "silent" assertion option

See merge request !984

7 years agoComponent/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug
zhiweijian [Thu, 13 Jul 2017 03:19:54 +0000 (11:19 +0800)]
Component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug

7 years agoMerge branch 'bugfix/mbedtls_ecp_failure_memory_leak' into 'master'
Angus Gratton [Thu, 13 Jul 2017 07:39:40 +0000 (15:39 +0800)]
Merge branch 'bugfix/mbedtls_ecp_failure_memory_leak' into 'master'

mbedtls: Fix memory leak in initial ECDH exchange if OOM/failure occurs

See merge request !987

7 years agodoc: Move romconsole doc sub-headings to sub-headings
Angus Gratton [Thu, 13 Jul 2017 06:33:29 +0000 (14:33 +0800)]
doc: Move romconsole doc sub-headings to sub-headings

Removes them from the API guides ToC.

7 years agoMerge branch 'bugfix/btdm_update_connect_params_for_gattc' into 'master'
Ivan Grokhotkov [Thu, 13 Jul 2017 06:32:20 +0000 (14:32 +0800)]
Merge branch 'bugfix/btdm_update_connect_params_for_gattc' into 'master'

component/bt: bugfix update connect params for gattc

See merge request !991

7 years agoMerge branch 'bugfix/tw13744_make_low_rate_work' into 'master'
Jiang Jiang Jian [Thu, 13 Jul 2017 06:26:02 +0000 (14:26 +0800)]
Merge branch 'bugfix/tw13744_make_low_rate_work' into 'master'

esp32: update wifi lib to make low rate work

See merge request !965

7 years agoMerge branch 'feature/enable_brownout_detector' into 'master'
Ivan Grokhotkov [Thu, 13 Jul 2017 03:40:37 +0000 (11:40 +0800)]
Merge branch 'feature/enable_brownout_detector' into 'master'

Enable brownout detector

See merge request !811

7 years agobuild system: Updating project Makefile should trigger a full rebuild
Angus Gratton [Thu, 13 Jul 2017 02:51:24 +0000 (10:51 +0800)]
build system: Updating project Makefile should trigger a full rebuild

Project Makefile can set CFLAGS, macro defines, etc.

7 years agoMerge branch 'bugfix/make_size_windows' into 'master'
Angus Gratton [Wed, 12 Jul 2017 09:31:49 +0000 (17:31 +0800)]
Merge branch 'bugfix/make_size_windows' into 'master'

make size: Fix map file parsing error on Windows

See merge request !932

7 years agoMerge branch 'feature/ip_route_base_on_source_ip' into 'master'
Angus Gratton [Wed, 12 Jul 2017 09:31:24 +0000 (17:31 +0800)]
Merge branch 'feature/ip_route_base_on_source_ip' into 'master'

Broadcast IP route based on source IP address.

See merge request !942

7 years agoassertions: Add "silent" option
Angus Gratton [Wed, 12 Jul 2017 04:57:44 +0000 (12:57 +0800)]
assertions: Add "silent" option

Reduces assertion codesize overhead by approximately 35%

7 years agoMerge branch 'bugfix/gdbstub_handler_noreturn' into 'master'
Angus Gratton [Wed, 12 Jul 2017 09:23:59 +0000 (17:23 +0800)]
Merge branch 'bugfix/gdbstub_handler_noreturn' into 'master'

gdbstub: Mark the panic handler entry as noreturn

See merge request !975

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 'doc/esp_random' into 'master'
Angus Gratton [Wed, 12 Jul 2017 08:18:43 +0000 (16:18 +0800)]
Merge branch 'doc/esp_random' into 'master'

esp_random: Add some documentation about using before RF subsystem is on

See merge request !976

7 years agoMerge branch 'bugfix/freertos_malloc_regression' into 'master'
Angus Gratton [Wed, 12 Jul 2017 08:18:12 +0000 (16:18 +0800)]
Merge branch 'bugfix/freertos_malloc_regression' into 'master'

pvPortMalloc: Fix regression when changing to new heap implementation

See merge request !982

7 years agostartup: Add assertion checks around various initialisation sequences
Angus Gratton [Wed, 12 Jul 2017 03:33:51 +0000 (11:33 +0800)]
startup: Add assertion checks around various initialisation sequences

These may fail if close to 192KB of static RAM is allocated (remaining early heap RAM is too small.)

7 years agobootloader/early boot: Error out if >192KB of static DRAM is allocated (temporary...
Angus Gratton [Wed, 12 Jul 2017 02:25:13 +0000 (10:25 +0800)]
bootloader/early boot: Error out if >192KB of static DRAM is allocated (temporary fix)

Currently the last 128KB of DRAM is reserved for the bootloader & early boot stacks. This means if >192KB of static DRAM
is allocated, the only available heap is this region - which is disabled until the scheduler starts. As a result, you
get either heap corruption on early boot if the static data overlaps startup heap (leading to very weird errors), or
FreeRTOS will fail to start when it can't malloc() anything.

Long term fix is to move the stacks & bootloader data to the very end of RAM, and only reserve that part for early
boot. This is a little fiddly because of also wanting to make sure this memory is not preemptively fragmented when it
gets reintroduced to the heap. This will become more important if/when we have more static allocation options in the
future.

For now, these errors make it clear why the boot has failed.

Ref TW13909

7 years agold: Remove unused .data sections at link time
Angus Gratton [Wed, 12 Jul 2017 05:04:07 +0000 (13:04 +0800)]
ld: Remove unused .data sections at link time

Reduces static RAM, code size.

7 years agonghttp2: Add submodule to COMPONENT_SUBMODULES, update to release v1.24
Angus Gratton [Tue, 11 Jul 2017 03:49:55 +0000 (11:49 +0800)]
nghttp2: Add submodule to COMPONENT_SUBMODULES, update to release v1.24

Removes need for -DNDEBUG hack in component.mk (fixed upstream).

7 years agopvPortMalloc: Fix regression when changing to new heap implementation
Angus Gratton [Wed, 12 Jul 2017 03:10:11 +0000 (11:10 +0800)]
pvPortMalloc: Fix regression when changing to new heap implementation

7 years agoMerge branch 'feature/multi_heap' into 'master'
Angus Gratton [Wed, 12 Jul 2017 02:53:37 +0000 (10:53 +0800)]
Merge branch 'feature/multi_heap' into 'master'

Separate the heap implementation from FreeRTOS

See merge request !731

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 agofreertos: Bump idle stack size to 1KB, min stack to 768 bytes, make configurable
Angus Gratton [Tue, 11 Jul 2017 04:02:09 +0000 (12:02 +0800)]
freertos: Bump idle stack size to 1KB, min stack to 768 bytes, make configurable

Reverts regression mentioned at
https://github.com/espressif/esp-idf/commit/3fe0022efafb4c11dd6e3dc24b92ff9976e59a77#commitcomment-23013504

7 years agoesp_random: Add some documentation about using before RF subsystem is on
Angus Gratton [Tue, 11 Jul 2017 03:23:33 +0000 (11:23 +0800)]
esp_random: Add some documentation about using before RF subsystem is on

7 years agoComponent/bt: bugfix update connect params for gattc
zhiweijian [Tue, 11 Jul 2017 03:27:36 +0000 (11:27 +0800)]
Component/bt: bugfix update connect params for gattc

7 years agogdbstub: Mark the panic handler entry as noreturn
Angus Gratton [Tue, 11 Jul 2017 02:18:08 +0000 (10:18 +0800)]
gdbstub: Mark the panic handler entry as noreturn

Fixes a warning in panic.c when this panic mode is enabled.

7 years agoheap: Rename memory "tags" to "types" to avoid confusion w/ old tag allocator API
Angus Gratton [Tue, 4 Jul 2017 04:46:39 +0000 (12:46 +0800)]
heap: Rename memory "tags" to "types" to avoid confusion w/ old tag allocator API

7 years agogitignore: Add gcov files
Angus Gratton [Thu, 4 May 2017 03:31:28 +0000 (13:31 +1000)]
gitignore: Add gcov files

7 years agosoc: Move esp_ptr_dma_capable() function to soc_memory_layout.h
Angus Gratton [Fri, 5 May 2017 04:16:02 +0000 (14:16 +1000)]
soc: Move esp_ptr_dma_capable() function to soc_memory_layout.h

7 years agoheap: Refactor heap regions/capabilities out of FreeRTOS
Angus Gratton [Wed, 3 May 2017 08:03:28 +0000 (18:03 +1000)]
heap: Refactor heap regions/capabilities out of FreeRTOS

Remove tagged heap API, rename caps_xxx to heap_caps_xxx

Also includes additional heap_caps_xxx inspection functions.

7 years agoheap: Add new multi_heap heap implementation to replace FreeRTOS-based tagged heaps
Angus Gratton [Fri, 28 Apr 2017 04:08:58 +0000 (14:08 +1000)]
heap: Add new multi_heap heap implementation to replace FreeRTOS-based tagged heaps

7 years agobrownout detector: enable by default
Ivan Grokhotkov [Fri, 2 Jun 2017 09:50:19 +0000 (17:50 +0800)]
brownout detector: enable by default

Because of errata related to BOD reset function, brownout is handled as follows:

- attach an ISR to brownout interrupt
- when ISR happens, print a message and do a software restart
- esp_restart_nonos enables RTC watchdog, so if restart fails,
  there will be  one more attempt to restart (using the RTC
  watchdog)

7 years agoesp32: fix RTC watchdog configuration in esp_restart
Ivan Grokhotkov [Mon, 10 Jul 2017 08:36:56 +0000 (16:36 +0800)]
esp32: fix RTC watchdog configuration in esp_restart

RTC watchdog didn’t have any actions configured for any of the stages.
This change configures it to use SW_SYSTEM_RESET at stage 0 and a
full reset at stage 1. The timeout is now calculated based on
RTC_SLOW_CLK frequency.

7 years agodriver/rtc: add support for attaching handlers to RTC_CNTL interrupts
Ivan Grokhotkov [Fri, 2 Jun 2017 09:47:23 +0000 (17:47 +0800)]
driver/rtc: add support for attaching handlers to RTC_CNTL interrupts

7 years agoMerge branch 'bugfix/reg_op' into 'master'
Jiang Jiang Jian [Sat, 8 Jul 2017 04:59:12 +0000 (12:59 +0800)]
Merge branch 'bugfix/reg_op' into 'master'

fix reg operation missing

See merge request !963

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

Make low rate 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 'feature/update_wrover_v3' into 'master'
Jeroen Domburg [Fri, 7 Jul 2017 06:16:36 +0000 (14:16 +0800)]
Merge branch 'feature/update_wrover_v3' into 'master'

docs: layout of esp-wrover-kit updated to v3

See merge request !929

7 years agoMerge panic and dport high level interrupt code to both use int level 4
Jeroen Domburg [Fri, 26 May 2017 09:41:18 +0000 (17:41 +0800)]
Merge panic and dport high level interrupt code to both use int level 4

7 years agoBreak out high-level interrupts so a component can override them
Jeroen Domburg [Tue, 18 Apr 2017 09:14:32 +0000 (17:14 +0800)]
Break out high-level interrupts so a component can override them

7 years agoMerge branch 'bugfix/build_fix_tests_and_warnings' into 'master'
Anton Maklakov [Fri, 7 Jul 2017 03:16:44 +0000 (11:16 +0800)]
Merge branch 'bugfix/build_fix_tests_and_warnings' into 'master'

Minor fix of some tests and warnings

Now, the build_examples have the correct diagnostics

See merge request !944

7 years agobuild: Fix the warnings that break the tests
Anton Maklakov [Fri, 30 Jun 2017 07:46:31 +0000 (15:46 +0800)]
build: Fix the warnings that break the tests

    unused variable 'lfn'
    'isr_handler' defined but not used
    'servo_set_angle' defined but not used
    'gpio_test_signal' defined but not used
    'change_duty' defined but not used

7 years agoCI: Work around problem with running the initial 'make clean' in parallel (#18)
Anton Maklakov [Fri, 30 Jun 2017 07:14:02 +0000 (15:14 +0800)]
CI: Work around problem with running the initial 'make clean' in parallel  (#18)

    Just don't pass '-j' to the 'make clean' command

7 years agobuild: Fix test for the first time 'make clean' and error handling in build_examples
Anton Maklakov [Wed, 28 Jun 2017 03:40:54 +0000 (11:40 +0800)]
build: Fix test for the first time 'make clean' and error handling in build_examples

    Now the tests do not pass

    Before we had incorrect code of the error code checking
    in build_examples.sh for that case and did nothing in test_build_system.sh.

7 years agoMerge branch 'bugfix/ci_bound_some_vars' into 'master'
Anton Maklakov [Thu, 6 Jul 2017 11:35:10 +0000 (19:35 +0800)]
Merge branch 'bugfix/ci_bound_some_vars' into 'master'

Fix the unbound variables in scripts

See merge request !962

7 years agoCI: Fix the unbound variables in scripts
Anton Maklakov [Thu, 6 Jul 2017 10:52:08 +0000 (18:52 +0800)]
CI: Fix the unbound variables in scripts

7 years agoMerge branch 'bugfix/partition_mmap_size' into 'master'
Jeroen Domburg [Thu, 6 Jul 2017 10:44:59 +0000 (18:44 +0800)]
Merge branch 'bugfix/partition_mmap_size' into 'master'

esp_partition_mmap size calculation fix

See merge request !947

7 years agoMerge branch 'bugfix/ci_wrong_getting_sources' into 'master'
Anton Maklakov [Thu, 6 Jul 2017 10:43:53 +0000 (18:43 +0800)]
Merge branch 'bugfix/ci_wrong_getting_sources' into 'master'

Fix the getting sources

See merge request !953

7 years agoAdd test for partition mmap straddling 64K page issue
Jeroen Domburg [Thu, 6 Jul 2017 10:22:43 +0000 (18:22 +0800)]
Add test for partition mmap straddling 64K page issue

7 years agoMerge branch 'bugfix/mbedtls_unit_tests' into 'master'
Ivan Grokhotkov [Thu, 6 Jul 2017 10:08:53 +0000 (18:08 +0800)]
Merge branch 'bugfix/mbedtls_unit_tests' into 'master'

mbedtls unit tests: Allow for longer timeout using software SHA

See merge request !961

7 years agoCI: Fix the getting sources
Anton Maklakov [Mon, 3 Jul 2017 08:28:58 +0000 (16:28 +0800)]
CI: Fix the getting sources

    Fix the getting sources for a case if the required commit is missed
    in the remote submodule repository.

    Also add more diagnostic.

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 agoMerge branch 'bugfix/small_typos' into 'master'
Ivan Grokhotkov [Thu, 6 Jul 2017 06:27:22 +0000 (14:27 +0800)]
Merge branch 'bugfix/small_typos' into 'master'

Fix a few minor typos in docs

See merge request !954

7 years agoMerge branch 'bugfix/disable_crypto_acceleration' into 'master'
Ivan Grokhotkov [Thu, 6 Jul 2017 06:26:41 +0000 (14:26 +0800)]
Merge branch 'bugfix/disable_crypto_acceleration' into 'master'

mbedtls: Temporarily disable hardware acceleration in dual-core mode

See merge request !956