]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoMerge branch 'bugfix/btdm_osi' into 'master'
Jiang Jiang Jian [Fri, 28 Jul 2017 03:35:04 +0000 (11:35 +0800)]
Merge branch 'bugfix/btdm_osi' into 'master'

component/bt : add osi_is_in_isr && fix vhci delay

See merge request !1054

7 years agoMerge branch 'feature/tw13968_optimize_for_tcp_close' into 'master'
Jiang Jiang Jian [Fri, 28 Jul 2017 03:34:12 +0000 (11:34 +0800)]
Merge branch 'feature/tw13968_optimize_for_tcp_close' into 'master'

lwip: optimize TCP close

See merge request !1022

7 years agoMerge branch 'feature/docs_jtag_debugging' into 'master'
Ivan Grokhotkov [Thu, 27 Jul 2017 14:03:45 +0000 (22:03 +0800)]
Merge branch 'feature/docs_jtag_debugging' into 'master'

Update and extension of Debugging documentation

See merge request !850

7 years agodocs: add OpenOCD/JTAG instructions for macOS
Ivan Grokhotkov [Wed, 26 Jul 2017 08:09:36 +0000 (16:09 +0800)]
docs: add OpenOCD/JTAG instructions for macOS

7 years agolwip: optimize TCP close
Liu Zhi Fu [Wed, 19 Jul 2017 01:15:11 +0000 (09:15 +0800)]
lwip: optimize TCP close

Optimize TCP close:
1. Not remove TCP pcb when IP address is changed since the lwip netconn still need the pcb
2. If the TCP connection is in TCP_FIN_WAIT_1 for too long time, remove it

7 years agoMerge branch 'feature/add_menuconfig_option_for_ba_window' into 'master'
Jiang Jiang Jian [Thu, 27 Jul 2017 02:46:04 +0000 (10:46 +0800)]
Merge branch 'feature/add_menuconfig_option_for_ba_window' into 'master'

esp32: add menuconfig options to configure BA window

See merge request !915

7 years agoMerge branch 'feature/esp-wrover-kit-rvb_note' into 'master'
Jeroen Domburg [Wed, 26 Jul 2017 08:12:58 +0000 (16:12 +0800)]
Merge branch 'feature/esp-wrover-kit-rvb_note' into 'master'

Add a note what is different about ESP-WROVER-KIT RVB

See merge request !1008

7 years agoUpdated links to binary distributions of OpenOCD
krzychb [Tue, 25 Jul 2017 19:07:20 +0000 (21:07 +0200)]
Updated links to binary distributions of OpenOCD

7 years agodocs: Flashing over JTAG was added
Alexey Gerenkov [Sat, 15 Jul 2017 14:59:11 +0000 (17:59 +0300)]
docs: Flashing over JTAG was added

7 years agoJTAG Debugging - revamping of Debugging documentation
krzychb [Sun, 11 Jun 2017 19:12:30 +0000 (21:12 +0200)]
JTAG Debugging - revamping of Debugging documentation

7 years agoMerge branch 'feature/sdspi_driver' into 'master'
Ivan Grokhotkov [Wed, 26 Jul 2017 05:51:37 +0000 (13:51 +0800)]
Merge branch 'feature/sdspi_driver' into 'master'

SD SPI mode driver

This MR adds functionality to support SD cards connected via SPI interface.
Additionally, two bugs are fixed:
- Definition of `SPI_TRANS_MODE_DIOQIO_ADDR` in spi_master driver
- SD card probing frequency was 4000kHz instead of 400kHz as required by the standard

See merge request !727

7 years agoMerge branch 'feature/make_tcp_udp_receive_mbox_configurable' into 'master'
Jiang Jiang Jian [Tue, 25 Jul 2017 12:45:38 +0000 (20:45 +0800)]
Merge branch 'feature/make_tcp_udp_receive_mbox_configurable' into 'master'

lwip: Make UDP/TCP receive mail box configurable

See merge request !1051

7 years agoMerge branch 'bugfix/tw14130_fix_emac_rx_buf_err' into 'master'
Jiang Jiang Jian [Tue, 25 Jul 2017 12:41:22 +0000 (20:41 +0800)]
Merge branch 'bugfix/tw14130_fix_emac_rx_buf_err' into 'master'

lwip/ethernet: fix emac rx buf err

See merge request !1037

7 years agocomponent/bt : add osi_is_in_isr && fix vhci delay
Tian Hao [Tue, 25 Jul 2017 11:58:39 +0000 (19:58 +0800)]
component/bt : add osi_is_in_isr && fix vhci delay

7 years agolwip: Make UDP/TCP receive mail box configurable
Liu Zhi Fu [Tue, 25 Jul 2017 01:13:01 +0000 (09:13 +0800)]
lwip: Make UDP/TCP receive mail box configurable

Different application may require different TCP/UDP receiv mail box size,
so make them configurable.

7 years agoesp32: add menuconfig options to configure BA window
Liu Zhi Fu [Fri, 23 Jun 2017 14:46:10 +0000 (22:46 +0800)]
esp32: add menuconfig options to configure BA window

Make AMPDU Block Ack Window configurable in menuconfig because we need to configure it
in some special cases, such as iperf test etc

7 years agolwip/ethernet: fix emac rx buf err
Liu Zhi Fu [Thu, 20 Jul 2017 10:09:06 +0000 (18:09 +0800)]
lwip/ethernet: fix emac rx buf err

1. Lwip not free the ethernet buf in lwip layer
2. Fix emac counter error

7 years agoMerge branch 'bugfix/uart_tx_glitch' into 'master'
Ivan Grokhotkov [Mon, 24 Jul 2017 11:43:25 +0000 (19:43 +0800)]
Merge branch 'bugfix/uart_tx_glitch' into 'master'

bugfix(uart): fix signal glitch on tx pin

See merge request !1032

7 years agoMerge branch 'feature/tw12244_add_more_comments_for_wifi_api' into 'master'
Jiang Jiang Jian [Mon, 24 Jul 2017 06:11:24 +0000 (14:11 +0800)]
Merge branch 'feature/tw12244_add_more_comments_for_wifi_api' into 'master'

docs: add wifi.rst

See merge request !880

7 years agoMerge branch 'bugfix/btdm_blufi_aes_cfb128' into 'master'
Jiang Jiang Jian [Mon, 24 Jul 2017 06:08:11 +0000 (14:08 +0800)]
Merge branch 'bugfix/btdm_blufi_aes_cfb128' into 'master'

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

See merge request !971

7 years agoMerge branch 'bugfix/btdm_rx_losing' into 'master'
Jiang Jiang Jian [Mon, 24 Jul 2017 06:05:36 +0000 (14:05 +0800)]
Merge branch 'bugfix/btdm_rx_losing' into 'master'

Bugfix/btdm rx losing

See merge request !1034

7 years agodocs: add wifi.rst
Liu Zhi Fu [Wed, 3 May 2017 11:21:08 +0000 (19:21 +0800)]
docs: add wifi.rst

Add more documents about WiFi API/Event Mechanism/State Machine etc

7 years agoMerge branch 'bugfix/ci_examples_list_order' into 'master'
Anton Maklakov [Thu, 20 Jul 2017 10:32:56 +0000 (18:32 +0800)]
Merge branch 'bugfix/ci_examples_list_order' into 'master'

Make the list of examples permanent between jobs
because the results of the 'find' command are not sorted by name.

Fix the identified problem on master

See merge request !1036

7 years agoexamples: add missing nvs_flash.h include
Ivan Grokhotkov [Thu, 20 Jul 2017 08:40:03 +0000 (16:40 +0800)]
examples: add missing nvs_flash.h include

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 agocomponent/bt : fix RX packets losing bug
Tian Hao [Thu, 20 Jul 2017 07:53:01 +0000 (15:53 +0800)]
component/bt : fix RX packets losing bug

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 agobugfix(uart): fix signal glitch on tx pin
Wangjialin [Thu, 20 Jul 2017 06:34:11 +0000 (14:34 +0800)]
bugfix(uart): fix signal glitch on tx pin

gpio_matrix_out function will set output enable for GPIO, seems in gpio_matrix_out there will be a short moment that the chip will output GPIO level.
So we can set GPIO as high before gpio_matrix_out function.

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 agodriver: SD protocol driver for SPI peripheral
Dmitry Yakovlev [Tue, 4 Jul 2017 05:58:36 +0000 (13:58 +0800)]
driver: SD protocol driver for SPI peripheral

7 years agosdmmc: add support for SPI protocol commands
Ivan Grokhotkov [Tue, 4 Jul 2017 04:52:40 +0000 (12:52 +0800)]
sdmmc: add support for SPI protocol commands

7 years agosdmmc: fix probing clock frequency
Ivan Grokhotkov [Tue, 4 Jul 2017 04:50:22 +0000 (12:50 +0800)]
sdmmc: fix probing clock frequency

Probing clock frequency should be 400kHz, not 4MHz.

7 years agospi_master: fix duplicate bit mask for SPI_TRANS_MODE_DIOQIO_ADDR
Ivan Grokhotkov [Tue, 4 Jul 2017 04:49:20 +0000 (12:49 +0800)]
spi_master: fix duplicate bit mask for SPI_TRANS_MODE_DIOQIO_ADDR

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 agoAdd a note what is different about ESP-WROVER-KIT RVB
krzychb [Mon, 17 Jul 2017 05:16:31 +0000 (07:16 +0200)]
Add a note what is different about ESP-WROVER-KIT RVB

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