]>
granicus.if.org Git - esp-idf/log
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.)
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
Angus Gratton [Tue, 27 Jun 2017 07:25:30 +0000 (17:25 +1000)]
bootloader: Calculate SHA-256 of image while loading/verifying
Angus Gratton [Wed, 21 Jun 2017 07:39:15 +0000 (17:39 +1000)]
bootloader: Obfuscate loaded memory until verification is complete
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.
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
Angus Gratton [Wed, 19 Jul 2017 07:38:05 +0000 (17:38 +1000)]
linker script: Add some comments about significance of 0x18 byte offset
Angus Gratton [Wed, 19 Jul 2017 06:33:48 +0000 (16:33 +1000)]
linker scripts: Limit DROM/IROM section lengths correctly
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.
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
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.
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.
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
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
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
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.
Angus Gratton [Wed, 21 Jun 2017 05:13:15 +0000 (15:13 +1000)]
build system docs: Add some notes about project-level variables
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.
Angus Gratton [Wed, 21 Jun 2017 05:09:24 +0000 (15:09 +1000)]
build system: Add list-components target for debugging component discovery
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
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
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
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
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
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.
Wangjialin [Mon, 17 Jul 2017 07:41:02 +0000 (15:41 +0800)]
bugfix(typo): fix typo in rom/gpio.h
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
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
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
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
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
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
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
zhiweijian [Thu, 13 Jul 2017 03:19:54 +0000 (11:19 +0800)]
Component/bt: modify BTA_GATTC_KNOWN_SR_MAX for Multi-connection bug
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
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.
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
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
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
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
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
Angus Gratton [Wed, 12 Jul 2017 04:57:44 +0000 (12:57 +0800)]
assertions: Add "silent" option
Reduces assertion codesize overhead by approximately 35%
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
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.
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
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
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.)
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
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.
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).
Angus Gratton [Wed, 12 Jul 2017 03:10:11 +0000 (11:10 +0800)]
pvPortMalloc: Fix regression when changing to new heap implementation
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
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
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
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
zhiweijian [Tue, 11 Jul 2017 03:27:36 +0000 (11:27 +0800)]
Component/bt: bugfix update connect params for gattc
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.
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
Angus Gratton [Thu, 4 May 2017 03:31:28 +0000 (13:31 +1000)]
gitignore: Add gcov files
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
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.
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
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)
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.
Ivan Grokhotkov [Fri, 2 Jun 2017 09:47:23 +0000 (17:47 +0800)]
driver/rtc: add support for attaching handlers to RTC_CNTL interrupts
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
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
Tian Hao [Fri, 7 Jul 2017 11:10:02 +0000 (19:10 +0800)]
fix reg operation missing
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
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
Jeroen Domburg [Tue, 18 Apr 2017 09:14:32 +0000 (17:14 +0800)]
Break out high-level interrupts so a component can override them
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
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
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
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.
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
Anton Maklakov [Thu, 6 Jul 2017 10:52:08 +0000 (18:52 +0800)]
CI: Fix the unbound variables in scripts
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
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
Jeroen Domburg [Thu, 6 Jul 2017 10:22:43 +0000 (18:22 +0800)]
Add test for partition mmap straddling 64K page issue
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
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.
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...
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
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
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
Ivan Grokhotkov [Thu, 6 Jul 2017 04:36:06 +0000 (12:36 +0800)]
soc: fix typo in register name
Ivan Grokhotkov [Thu, 6 Jul 2017 03:25:40 +0000 (11:25 +0800)]
Merge branch 'bugfix/i2s_return_err_code' into 'master'
i2s driver: return error code if register isr error
See merge request !829
Ivan Grokhotkov [Thu, 6 Jul 2017 03:01:40 +0000 (11:01 +0800)]
esp_chip_info: populate ‘model’ field
Ivan Grokhotkov [Wed, 5 Jul 2017 03:47:02 +0000 (11:47 +0800)]
docs: update general notes section on IRAM/ISRs
- Remove outdated note that all ISRs should be in IRAM
- Replace “ISR handler” with “ISR” or “interrupt handler”
Ivan Grokhotkov [Wed, 5 Jul 2017 03:35:01 +0000 (11:35 +0800)]
docs: fix flash encryption key storage block, use same names as in TRM
Angus Gratton [Thu, 6 Jul 2017 02:47:07 +0000 (10:47 +0800)]
Merge branch 'feature/split_compiler_optimisations' into 'master'
build system: Split setting of compiler optimisation level from assertions on/off
See merge request !886
krzychb [Tue, 27 Jun 2017 22:04:24 +0000 (00:04 +0200)]
Layout of esp-wrover-kit updated to v3
Angus Gratton [Wed, 5 Jul 2017 04:03:00 +0000 (12:03 +0800)]
mbedtls: Temporarily disable hardware acceleration in dual-core mode
Temporary fix, until DPORT bugs in crypto accelerators are completely fixed.
Angus Gratton [Wed, 5 Jul 2017 03:56:41 +0000 (11:56 +0800)]
build system: Order private include directories before public ones
This allows the component to override a header in a public include
directory, when only its own source files are being compiled.
Ivan Grokhotkov [Wed, 5 Jul 2017 03:29:53 +0000 (11:29 +0800)]
phy_init: fix log level for "PHY data partition validated" message
Ivan Grokhotkov [Wed, 5 Jul 2017 02:41:24 +0000 (10:41 +0800)]
Merge branch 'bugfix/ci_push_master_to_github_err' into 'master'
Fix error in the push_master_to_github job when using the fetch strategy
See merge request !951
Anton Maklakov [Tue, 4 Jul 2017 03:52:57 +0000 (11:52 +0800)]
CI: Fix error in the push_master_to_github job when using the fetch strategy
zhiweijian [Tue, 4 Jul 2017 02:57:36 +0000 (10:57 +0800)]
Component/bt: fix bug for error length unit
Jeroen Domburg [Mon, 3 Jul 2017 12:05:50 +0000 (20:05 +0800)]
Merge branch 'docs/romconsole_docs' into 'master'
Some documentation for the undocumented ROM console.
See merge request !936