Ivan Grokhotkov
292c2abd3b
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
2017-07-20 14:25:49 +08:00
Ivan Grokhotkov
b9f660524c
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
2017-07-20 12:13:12 +08:00
Angus Gratton
871ba41a09
bootloader: Remove unnecessary KEEP on data/bss sections, save static RAM
2017-07-19 18:31:59 +10:00
Angus Gratton
d1b66a08c1
bootloader: Add option to build with Link Time Optimisation enabled
2017-07-19 18:31:59 +10:00
Angus Gratton
17adb40ca8
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.)
2017-07-19 18:31:59 +10:00
Angus Gratton
caaa29c676
esp_image_format: ESP32 additional header does not contain an encrypt flag
2017-07-19 18:25:17 +10:00
Angus Gratton
43b99edf2b
bootloader: Calculate SHA-256 of image while loading/verifying
2017-07-19 18:25:17 +10:00
Angus Gratton
8f6134dd96
bootloader: Obfuscate loaded memory until verification is complete
2017-07-19 18:25:17 +10:00
Angus Gratton
0c8888d68f
bootloader: Combine loading from flash & verifying to save boot time
...
Still needs updating to account for secure boot.
2017-07-19 18:25:17 +10:00
Angus Gratton
105c4b7386
Merge branch 'feature/esptool_image_padding' into 'master'
...
esptool: Optimise app image size by using RAM-loaded data for padding
See merge request !1017
2017-07-19 15:52:22 +08:00
Angus Gratton
2d9770fd00
linker script: Add some comments about significance of 0x18 byte offset
2017-07-19 17:38:05 +10:00
Angus Gratton
0feb40833a
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
2017-07-19 17:24:24 +10:00
Angus Gratton
c230e4280c
linker scripts: Limit DROM/IROM section lengths correctly
2017-07-19 16:33:48 +10:00
Angus Gratton
d92c541b1a
esptool: Optimise generated image size by using RAM-loaded data for padding
...
Can save almost 128KB from some images.
2017-07-19 16:24:17 +10:00
Angus Gratton
ec64fa3416
bootloader flash QIO mode: Restore DIO/DOUT mode if enabling quad fails
...
Previously, flash was degraded to single I/O mode.
2017-07-19 15:04:09 +10:00
Angus Gratton
0715d1f8c1
bootloader: When customising SPI flash pins in efuse, set WP pin in menuconfig
...
Allows custom configurations for QIO/QOUT mode.
2017-07-19 15:04:08 +10:00
Angus Gratton
d664e32394
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.
2017-07-19 09:10:48 +10:00
Ivan Grokhotkov
aef5e90cce
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
2017-07-18 10:49:12 +08:00
Ivan Grokhotkov
0ae916d555
Merge branch 'feature/high_level_interrupts' into 'master'
...
Break out high-level interrupts so a component can override them
See merge request !675
2017-07-18 10:42:31 +08:00
Angus Gratton
4029ed1df4
Merge branch 'bugfix/rom_gpio_typo' into 'master'
...
bugfix(typo): fix typo in rom/gpio.h
See merge request !1009
2017-07-18 06:53:30 +08:00
Ivan Grokhotkov
979fce0df5
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.
2017-07-17 21:29:50 +08:00
Ivan Grokhotkov
fd2d53fca6
Merge branch 'bugfix/wl_write' into 'master'
...
wear_levelling: fix write and read length for single access was wrong.
See merge request !993
2017-07-17 18:31:27 +08:00
Dmitry Yakovlev
b36e580756
wear_levelling: fix write and read length for single access was wrong.
2017-07-17 12:00:40 +03:00
Wangjialin
10340d718f
bugfix(typo): fix typo in rom/gpio.h
2017-07-17 15:41:02 +08:00
Angus Gratton
c2e6e10dcc
Merge branch 'bugfix/nghttp2_build_submodules' into 'master'
...
nghttp2: Add submodule to COMPONENT_SUBMODULES, update to v1.24
See merge request !977
2017-07-17 14:14:28 +08:00
Angus Gratton
e50870c2dc
Merge branch 'bugfix/bootloader_stack_smash' into 'master'
...
Fix crashes when >approx 185KB of DRAM is statically allocated
See merge request !983
2017-07-17 14:11:35 +08:00
Angus Gratton
f824829a13
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
2017-07-17 14:10:12 +08:00
Jiang Jiang Jian
4ec2abbf23
Merge branch 'feature/some_refactor_for_tcpip_adapter' into 'master'
...
tcpip_adapter: not remove netif when tcpip adapter is stopped
See merge request !943
2017-07-13 22:16:00 +08:00
Jiang Jiang Jian
5ac0503ce7
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
2017-07-13 21:55:24 +08:00
Liu Zhi Fu
d724cc23d2
tcpip_adapter: not free netif when tcpip adapter is stopped
...
When tcpip adapter is stop, don't free the netif
2017-07-13 18:42:45 +08:00
Angus Gratton
399ec29a68
Merge branch 'feature/silent_assertions' into 'master'
...
Add "silent" assertion option
See merge request !984
2017-07-13 17:21:09 +08:00
zhiweijian
ca3bf570cd
Component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug
2017-07-13 16:22:44 +08:00
Angus Gratton
1ed4eadfab
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
2017-07-13 15:39:40 +08:00
Ivan Grokhotkov
0c28b3bc4c
Merge branch 'bugfix/btdm_update_connect_params_for_gattc' into 'master'
...
component/bt: bugfix update connect params for gattc
See merge request !991
2017-07-13 14:32:20 +08:00
Jiang Jiang Jian
fc4d3df890
Merge branch 'bugfix/tw13744_make_low_rate_work' into 'master'
...
esp32: update wifi lib to make low rate work
See merge request !965
2017-07-13 14:26:02 +08:00
Ivan Grokhotkov
7fc25f18d2
Merge branch 'feature/enable_brownout_detector' into 'master'
...
Enable brownout detector
See merge request !811
2017-07-13 11:40:37 +08:00
Angus Gratton
8cd03c84d0
Merge branch 'feature/ip_route_base_on_source_ip' into 'master'
...
Broadcast IP route based on source IP address.
See merge request !942
2017-07-12 17:31:24 +08:00
Angus Gratton
7b565e4b25
assertions: Add "silent" option
...
Reduces assertion codesize overhead by approximately 35%
2017-07-12 17:29:26 +08:00
Angus Gratton
d8d2933bde
Merge branch 'bugfix/gdbstub_handler_noreturn' into 'master'
...
gdbstub: Mark the panic handler entry as noreturn
See merge request !975
2017-07-12 17:23:59 +08:00
Angus Gratton
ffefeef5ea
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.
2017-07-12 16:34:26 +08:00
Angus Gratton
cfbb1a652b
Merge branch 'doc/esp_random' into 'master'
...
esp_random: Add some documentation about using before RF subsystem is on
See merge request !976
2017-07-12 16:18:43 +08:00
Angus Gratton
99fe61716c
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.)
2017-07-12 13:06:56 +08:00
Angus Gratton
2b0f623259
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
2017-07-12 13:06:56 +08:00
Angus Gratton
187b5fb888
ld: Remove unused .data sections at link time
...
Reduces static RAM, code size.
2017-07-12 13:05:54 +08:00
Angus Gratton
083f7d667b
nghttp2: Add submodule to COMPONENT_SUBMODULES, update to release v1.24
...
Removes need for -DNDEBUG hack in component.mk (fixed upstream).
2017-07-12 11:16:55 +08:00
Angus Gratton
d601bedb85
pvPortMalloc: Fix regression when changing to new heap implementation
2017-07-12 11:10:11 +08:00
Angus Gratton
7ae93f271c
Merge branch 'feature/multi_heap' into 'master'
...
Separate the heap implementation from FreeRTOS
See merge request !731
2017-07-12 10:53:37 +08:00
Angus Gratton
3ad163e644
freertos: Bump idle stack size to 1KB, min stack to 768 bytes, make configurable
...
Reverts regression mentioned at
3fe0022efa (commitcomment-23013504)
2017-07-11 14:48:15 +08:00
Angus Gratton
3bb90bab97
esp_random: Add some documentation about using before RF subsystem is on
2017-07-11 14:27:20 +08:00
zhiweijian
8460f1a972
Component/bt: bugfix update connect params for gattc
2017-07-11 11:27:36 +08:00