]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agonvs: check that storage has at least one free page
Ivan Grokhotkov [Tue, 14 Mar 2017 13:24:56 +0000 (21:24 +0800)]
nvs: check that storage has at least one free page

This change adds a check for the free page count to nvs_flash_init.
Under normal operation, NVS keeps at least one free page available,
except for transient states such as freeing up new page. Due to external
factors (such as NVS partition size reduction) this free page could be
lost, making NVS operation impossible. Previously this would cause an
error when performing any nvs_set operation or opening a new namespace.
With this change, an error is returned from nvs_flash_init to indicate
that NVS partition is in such a state.

7 years agonvs: add missing error code descriptions
Ivan Grokhotkov [Tue, 14 Mar 2017 13:18:22 +0000 (21:18 +0800)]
nvs: add missing error code descriptions

7 years agoMerge branch 'bugfix/mdns_security_issues' into 'master'
Ivan Grokhotkov [Tue, 14 Mar 2017 13:42:06 +0000 (21:42 +0800)]
Merge branch 'bugfix/mdns_security_issues' into 'master'

Bugfix/mdns security issues

Fixes a series of security issues with MDNS.

STACK-SMASH: https://github.com/espressif/esp-idf/blob/dd3f18d2d88ee78909d4af2840dfdf0b9f715f28/components/mdns/mdns.c#L494:
The sprintf is not limited. We can execute the sprintf codeflow as
many times as we want, allowing arbitrary long data being written
into stack.

PACKET-OF-DEATH:
https://github.com/espressif/esp-idf/blob/dd3f18d2d88ee78909d4af2840dfdf0b9f715f28/components/mdns/mdns.c#L502.
The compare allows equal, and thus jumping back to it self infinite
recursion -> guaranteed crash

TXT-SMASH: https://github.com/espressif/esp-idf/blob/dd3f18d2d88ee78909d4af2840dfdf0b9f715f28/components/mdns/mdns.c#L1381
The loop does not check on reaching a->txt maximum size (1024),
resulting in stack overflow.

See merge request !576

7 years agoaddress security issues with mDNS
me-no-dev [Mon, 13 Mar 2017 09:56:50 +0000 (11:56 +0200)]
address security issues with mDNS

7 years agoMerge branch 'bugfix/make_test_components' into 'master'
Ivan Grokhotkov [Tue, 14 Mar 2017 07:16:51 +0000 (15:16 +0800)]
Merge branch 'bugfix/make_test_components' into 'master'

make: don’t override TEST_COMPONENTS

When idf_monitor is launched from make, it gets modified `TEST_COMPONENTS`
variable which contains full paths to the test components instead of the
names. This causes `TEST_COMPONENT_PATHS` to be empty and the unit test
app gets built without any test components.

This change introduces an internal `TEST_COMPONENTS_LIST` variable which
gets set either from `COMPONENTS` if `TESTS_ALL` is 1, or from
`TEST_COMOPONENTS` otherwise.
Bootloader makefile is also fixed to avoid propagating `TESTS_ALL` to the
bootloader build step.

See merge request !569

7 years agoMerge branch 'bugfix/fix_uart_stop_bit_2bit_error' into 'master'
Ivan Grokhotkov [Tue, 14 Mar 2017 06:17:55 +0000 (14:17 +0800)]
Merge branch 'bugfix/fix_uart_stop_bit_2bit_error' into 'master'

bug fix: fix uart data bug when stop-bit is set as 2-bit mode

This is a workaround for a hardware bug.
When we want to use 2-stop-bit mode, we need to set stop-bit-1 and set dl1_en in rs485 register.

See merge request !544

7 years agoMerge branch 'feature/aws_iot_sdk' into 'master'
Angus Gratton [Tue, 14 Mar 2017 02:21:08 +0000 (10:21 +0800)]
Merge branch 'feature/aws_iot_sdk' into 'master'

Amazon AWS IoT SDK

Amazon IoT SDK component, plus two examples derived from their Linux samples.

See merge request !132

7 years agoAWS IoT Device SDK Support
Angus Gratton [Wed, 5 Oct 2016 05:32:09 +0000 (16:32 +1100)]
AWS IoT Device SDK Support

Use device cert/key embedded in firmware, or loaded from filesystem.

7 years agoMerge branch 'bugfix/unit_test_app_print_tests_in_correct_order' into 'master'
Angus Gratton [Mon, 13 Mar 2017 07:43:01 +0000 (15:43 +0800)]
Merge branch 'bugfix/unit_test_app_print_tests_in_correct_order' into 'master'

Fix unit test app to print tests in the same order they are given in test file

This fixes the unit test app to print test cases in the same order they are given in test file.

See merge request !460

7 years agofix unit test app to print tests in the same order they are given in files
antti [Mon, 23 Jan 2017 04:54:35 +0000 (12:54 +0800)]
fix unit test app to print tests in the same order they are given in files

7 years agobugfix: fix uart 2-stop-bit error
Wangjialin [Thu, 2 Mar 2017 05:41:32 +0000 (13:41 +0800)]
bugfix: fix uart 2-stop-bit error

Fix uart data bug when stop-bit is set as 2-bit mode.
This is just a software workaround.

7 years agoMerge branch 'bugfix/adv_type_error' into 'master'
Ivan Grokhotkov [Fri, 10 Mar 2017 06:16:33 +0000 (14:16 +0800)]
Merge branch 'bugfix/adv_type_error' into 'master'

component/bt: modify BLE advertising type error

fix BLE advertising type error

See merge request !568

7 years agoMerge branch 'feature/tighter_rom_memory_defines' into 'master'
Jeroen Domburg [Thu, 9 Mar 2017 12:25:07 +0000 (20:25 +0800)]
Merge branch 'feature/tighter_rom_memory_defines' into 'master'

Use more regions reserved for ROM routines/stack we don't use for heap.

This frees up about 28K of RAM.

See merge request !467

7 years agoMR things
Jeroen Domburg [Thu, 9 Mar 2017 11:59:09 +0000 (19:59 +0800)]
MR things

7 years agomake: don’t override TEST_COMPONENTS
Ivan Grokhotkov [Thu, 9 Mar 2017 11:42:46 +0000 (19:42 +0800)]
make: don’t override TEST_COMPONENTS

When idf_monitor is launched from make, it gets modified TEST_COMPONENTS
variable which contains full paths to the test components instead of the
names. This causes TEST_COMPONENT_PATHS to be empty and the unit test
app gets built without any test components.

This change introduces an internal TEST_COMPONENTS_LIST variable which
gets set either from $(COMPONENTS) if TESTS_ALL is 1, and from
TEST_COMOPONENTS otherwise.
Bootloader makefile is also fixed to avoid propagating TESTS_ALL to the
bootloader build step.

7 years agocomponent/bt: modify BLE advertising type error
island [Thu, 9 Mar 2017 07:36:22 +0000 (15:36 +0800)]
component/bt: modify BLE advertising type error

7 years agoMerge branch 'feature/wifi_deinit_2' into 'master'
Jiang Jiang Jian [Thu, 9 Mar 2017 07:35:36 +0000 (15:35 +0800)]
Merge branch 'feature/wifi_deinit_2' into 'master'

wifi deinit: update esp_wifi_deinit()

1. move ets_timer_deinit() to wifi_deinit()

2. delete wifi api mutex when wifi deinit

See merge request !563

7 years agoMerge branch 'bugfix/btdm_gatt_attribute_table_debug' into 'master'
Ivan Grokhotkov [Thu, 9 Mar 2017 05:28:11 +0000 (13:28 +0800)]
Merge branch 'bugfix/btdm_gatt_attribute_table_debug' into 'master'

bt component: fix bluetooth gatt packets process bugs

1. Add process of prepare write request packets
2. Add process of execute write request packets
3. Add process of reliable write request packets
4. Fix bug of processing read blob request packets
5. Fix bug of processing write request packets
6. Optimize error check and process in stack

See merge request !558

7 years agoMerge branch 'bugfix/wakeup_gpio_doc' into 'master'
Angus Gratton [Wed, 8 Mar 2017 23:34:33 +0000 (07:34 +0800)]
Merge branch 'bugfix/wakeup_gpio_doc' into 'master'

deep sleep: add notice that pads used for wakeup will be configured as RTC GPIOs

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

See merge request !431

7 years agodeep sleep: add notice that pads used for wakeup will be configured as RTC GPIOs
Ivan Grokhotkov [Tue, 17 Jan 2017 03:55:04 +0000 (11:55 +0800)]
deep sleep: add notice that pads used for wakeup will be configured as RTC GPIOs

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

7 years agoMerge branch 'bugfix/unit_test_parser_only_dirs' into 'master'
Angus Gratton [Wed, 8 Mar 2017 22:58:02 +0000 (06:58 +0800)]
Merge branch 'bugfix/unit_test_parser_only_dirs' into 'master'

unit tests: Make UnitTestParser ignore non-directories inside 'components' dirs

Tiny fix to UnitTestParser script behaviour, if you happen to have any stray files in your "components" directories.

See merge request !561

7 years agoMalloc test: tabs -> spaces, fix description
Jeroen Domburg [Wed, 8 Mar 2017 11:44:57 +0000 (19:44 +0800)]
Malloc test: tabs -> spaces, fix description

7 years agoMR suggestions
Jeroen Domburg [Wed, 8 Mar 2017 11:27:30 +0000 (19:27 +0800)]
MR suggestions

7 years agoAdd small testcase
Jeroen Domburg [Fri, 27 Jan 2017 07:01:51 +0000 (15:01 +0800)]
Add small testcase

7 years agoValidate more GPIO ROM functions for non-use of static RAM
Jeroen Domburg [Wed, 25 Jan 2017 09:46:26 +0000 (17:46 +0800)]
Validate more GPIO ROM functions for non-use of static RAM

7 years agotight 28k
Jeroen Domburg [Wed, 25 Jan 2017 09:25:50 +0000 (17:25 +0800)]
tight 28k

7 years agoMerge branch 'bugfix/fix_ulp_unit_test' into 'master'
Ivan Grokhotkov [Wed, 8 Mar 2017 09:37:09 +0000 (17:37 +0800)]
Merge branch 'bugfix/fix_ulp_unit_test' into 'master'

ulp: ignore unit tests which use deep sleep

See merge request !566

7 years agobt component: code style update
island [Wed, 8 Mar 2017 09:09:05 +0000 (17:09 +0800)]
bt component: code style update

7 years agobt component: update if…else code style
island [Wed, 8 Mar 2017 09:00:56 +0000 (17:00 +0800)]
bt component: update if…else code style

7 years agoulp: ignore tests which use deep sleep
Ivan Grokhotkov [Wed, 8 Mar 2017 08:19:58 +0000 (16:19 +0800)]
ulp: ignore tests which use deep sleep

7 years agoMerge branch 'feature/deep_sleep_wakeup_from_touch' into 'master'
Ivan Grokhotkov [Wed, 8 Mar 2017 06:27:58 +0000 (14:27 +0800)]
Merge branch 'feature/deep_sleep_wakeup_from_touch' into 'master'

add wakeup from touch sensor, and deep sleep example

- add new deep sleep wakeup mode
- change documentation to explain incompatibilities between different wakeup mode, add error checks
- add new ULP instructions necessary for ULP wakeup scenario
- fix issues with I_WR_REG, I_SLEEP, I_END instructions
- add deep sleep example, illustrating the use of timer, gpio, touch, and ULP wakeup triggers

See merge request !461

7 years agowifi deinit: update esp_wifi_deinit()
XiaXiaotian [Wed, 8 Mar 2017 02:55:40 +0000 (10:55 +0800)]
wifi deinit: update esp_wifi_deinit()

1. move ets_timer_deinit() to wifi_deinit()

2. delete wifi api mutex when wifi deinit

7 years agombedtls: Enable filesystem support
Angus Gratton [Mon, 6 Feb 2017 04:33:31 +0000 (15:33 +1100)]
mbedtls: Enable filesystem support

7 years agofatfs: Support for Long Filenames
Angus Gratton [Mon, 6 Feb 2017 04:32:52 +0000 (15:32 +1100)]
fatfs: Support for Long Filenames

7 years agobt component: optimize gatt debug information
island [Tue, 7 Mar 2017 11:55:21 +0000 (19:55 +0800)]
bt component: optimize gatt debug information

7 years agoMerge branch 'bugfix/btdm_host_init_flow' into 'master'
Ivan Grokhotkov [Tue, 7 Mar 2017 06:17:05 +0000 (14:17 +0800)]
Merge branch 'bugfix/btdm_host_init_flow' into 'master'

add extra check before bluedroid init and disable

add extra check before bluedroid init and disable to avoid the mixed call cause unexpected errors.

See merge request !553

7 years agoMerge branch 'feature/btdm_cfg_stack_size' into 'master'
Jiang Jiang Jian [Tue, 7 Mar 2017 03:21:07 +0000 (11:21 +0800)]
Merge branch 'feature/btdm_cfg_stack_size' into 'master'

component/bt: optimize stack size of Bluetooth Tasks and make them be configurab…

Bluetooth tasks' stack size are optimized and can be configured by the CONFIG_NEWLIB_NANO_FORMAT option.

See merge request !559

7 years agoMerge branch 'feature/touch_pad_examples' into 'master'
Angus Gratton [Tue, 7 Mar 2017 01:03:11 +0000 (09:03 +0800)]
Merge branch 'feature/touch_pad_examples' into 'master'

Examples on using capacitive touch sensors

- `touch_pad_read` - read sensor values  and show on terminal
- `touch_pad_interrupt` - perform simple calibration; trigger an interrupt when any pad is touched

See merge request !530

7 years agombedTLS: Add generic support for mbedTLS debug output via the esp_log functionality
Angus Gratton [Sat, 26 Nov 2016 00:58:50 +0000 (11:58 +1100)]
mbedTLS: Add generic support for mbedTLS debug output via the esp_log functionality

7 years agoEmbedding files: Don't use directory fragments in embed paths
Angus Gratton [Fri, 25 Nov 2016 06:29:36 +0000 (17:29 +1100)]
Embedding files: Don't use directory fragments in embed paths

7 years agoAdd jsmn JSON parser component
Angus Gratton [Wed, 5 Oct 2016 22:49:12 +0000 (09:49 +1100)]
Add jsmn JSON parser component

7 years agounit tests: Make UnitTestParser ignore non-directories inside 'components' dirs
Angus Gratton [Mon, 6 Mar 2017 23:16:52 +0000 (10:16 +1100)]
unit tests: Make UnitTestParser ignore non-directories inside 'components' dirs

7 years agoMerge branch 'feature/esptool_espefuse_set_flash_voltage' into 'master'
Angus Gratton [Mon, 6 Mar 2017 23:08:18 +0000 (07:08 +0800)]
Merge branch 'feature/esptool_espefuse_set_flash_voltage' into 'master'

esptool version bump and new "espefuse.py set_flash voltage" command

* New "espefuse.py set_flash_voltage" command to easily set a fix
  VDD_SDIO regulator voltage (1.8V, 3.3V or disabled).
* Fixes bugs when flashing files with non-4-byte aligned lengths
  (doesn't effect esp-idf image files)
* esptool README improvements
* Detect overlapping files in write_flash
* read_mac now works correctly on ESP32
* Integrates reset fix for older dev boards (formerly the "Windows ESP32R0 reset workaround")

See merge request !481

7 years ago- examples: add 'Capacitive touch sensor read' example
Krzysztof [Sun, 26 Feb 2017 07:45:50 +0000 (08:45 +0100)]
- examples: add 'Capacitive touch sensor read' example
- examples: add 'Capacitive touch sensor interrupts' example
- Code review comments implemented
- use only one image
- add external picture of ESP32 Demo Board V2

7 years agocomponent/bt: optimize stack size of Bluetooth Tasks and make them be configurable...
wangmengyang [Mon, 6 Mar 2017 13:50:54 +0000 (21:50 +0800)]
component/bt: optimize stack size of Bluetooth Tasks and make them be configurable according to the CONFIG_NEWLIB_NANO_FORMAT option

7 years agoMerge branch 'feature/lwip_numbers' into 'master'
Ivan Grokhotkov [Mon, 6 Mar 2017 14:37:12 +0000 (22:37 +0800)]
Merge branch 'feature/lwip_numbers' into 'master'

Change max number of open sockets

Change max number of open sockets from 16 to 32 because of MFI project need support 21 open sockets at least.

See merge request !532

7 years agoMerge branch 'feature/unit_tests_in_app' into 'master'
Ivan Grokhotkov [Mon, 6 Mar 2017 14:36:32 +0000 (22:36 +0800)]
Merge branch 'feature/unit_tests_in_app' into 'master'

make: look for TEST_COMPONENTS in all component directories

This change allows building unit tests found inside the project components directory.

fixes https://github.com/espressif/esp-idf/issues/354

See merge request !537

7 years agoMerge branch 'bugfix/soc_io_mux_h' into 'master'
Ivan Grokhotkov [Mon, 6 Mar 2017 14:36:19 +0000 (22:36 +0800)]
Merge branch 'bugfix/soc_io_mux_h' into 'master'

esp32: update io_mux_reg.h to latest version

fixes https://github.com/espressif/esp-idf/issues/349

See merge request !546

7 years agobt component: fix bluetooth gatt packets process bugs
island [Mon, 6 Mar 2017 09:20:45 +0000 (17:20 +0800)]
bt component: fix bluetooth gatt packets process bugs

1. Add process of prepare write request packets
2. Add process of execute write request packets
3. Add process of reliable write request packets
4. Fix bug of processing read blob request packets
5. Fix bug of processing write request packets
6. Optimize error check and process in stack

7 years agoMerge branch 'bugfix/partition_and_mmap_issues' into 'master'
Ivan Grokhotkov [Mon, 6 Mar 2017 07:59:28 +0000 (15:59 +0800)]
Merge branch 'bugfix/partition_and_mmap_issues' into 'master'

Fix partition- and mmap-related issues

- Fix unit tests failing to start up due to a mismatch between sdkconfig flash size and size required by partition table.
- Fix a bug that partition APIs loaded the partition table in reverse order. As such, `esp_partition_next` and `esp_partition_find_first` did not work as expected. Add a test.
- Update the workaround for stale cache reads issue: do Cache_Flush for non-encrypted flash as well. Add a test.

See merge request !555

7 years agoMerge branch 'bugfix/master_out_of_sync' into 'master'
Ivan Grokhotkov [Mon, 6 Mar 2017 06:22:11 +0000 (14:22 +0800)]
Merge branch 'bugfix/master_out_of_sync' into 'master'

Merge github master branch

We have set up auto-push from release branch, but the CI script had `git push github HEAD:master` command in it.
Normally remote would reject the push from release branch into master because remote would have commits which the release branch didn't have.
But unit tests have been failing in master, so master branch wasn't deployed to Github recently, and Github master branch was behind the release branch. So the push from release branch into Github master went okay and now Gitlab master is behind Github master.

This PR merges Github master (which is now equal to release/v2.0) into Gitlab master so that automatic push can work again.

The original issue with push to master is also fixed.

See merge request !556

7 years agoci: fix release branch being pushed into master
Ivan Grokhotkov [Sat, 4 Mar 2017 10:17:59 +0000 (18:17 +0800)]
ci: fix release branch being pushed into master

Also fix variable quoting issue in link check build.

7 years agospi_flash: fix stale data being read from mmaped region
Ivan Grokhotkov [Sat, 4 Mar 2017 09:48:44 +0000 (17:48 +0800)]
spi_flash: fix stale data being read from mmaped region

The issue that cache entries are not invalidated correctly sometimes
can also be reproduced for non-encrypted flash as well.
This change updates the workaround to do Cache_Flush, enabling it for
non-encrypted flash, and adds a unit test.

7 years agopartition_table: update unit test
Ivan Grokhotkov [Sat, 4 Mar 2017 07:34:51 +0000 (15:34 +0800)]
partition_table: update unit test

- change order of assert arguments to (expected, actual)
- set expected partition count to 3 to match the new partition table
- use the new get_test_partition facility
- check that partitions are listed in correct order
- remove leftover debugging printfs

7 years agospi_flash: fix partitions order
Ivan Grokhotkov [Sat, 4 Mar 2017 07:34:03 +0000 (15:34 +0800)]
spi_flash: fix partitions order

Pointer to the tail of linked list was never set, so partitions were
added to the head, instead of adding them to the tail.

7 years agoMerge branch 'feature/run_test_on_release_branches' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 09:41:58 +0000 (17:41 +0800)]
Merge branch 'feature/run_test_on_release_branches' into 'master'

CI: support running CI test on release branches

Patches will be cherry-picked to release branches after it's released. Therefore we need to run test jobs with the same strategy as master.

See merge request !551

7 years agoMerge branch 'bugfix/fix_mpdu_len_error' into 'master'
Wu Jian Gang [Fri, 3 Mar 2017 12:58:49 +0000 (20:58 +0800)]
Merge branch 'bugfix/fix_mpdu_len_error' into 'master'

esp32: update wifi lib to fix mpdu len error

Fix mpdu len error which impact espressif smartconfig

See merge request !552

7 years agounit-test-app: default to 4MB flash
Ivan Grokhotkov [Sat, 4 Mar 2017 06:56:41 +0000 (14:56 +0800)]
unit-test-app: default to 4MB flash

7 years agoMerge branch 'bugfix/fix_mpdu_len_error' into 'master'
Wu Jian Gang [Fri, 3 Mar 2017 12:58:49 +0000 (20:58 +0800)]
Merge branch 'bugfix/fix_mpdu_len_error' into 'master'

esp32: update wifi lib to fix mpdu len error

Fix mpdu len error which impact espressif smartconfig

See merge request !552

7 years agoadd extra check before bluedroid init and disable
Tian Hao [Fri, 3 Mar 2017 10:42:27 +0000 (18:42 +0800)]
add extra check before bluedroid init and disable

7 years agoesp32: update wifi lib to fix mpdu len error
Liu Zhi Fu [Fri, 3 Mar 2017 10:06:05 +0000 (18:06 +0800)]
esp32: update wifi lib to fix mpdu len error

Fix mpdu len error which impact espressif smartconfig

7 years agoMerge branch 'feature/run_test_on_release_branches' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 09:41:58 +0000 (17:41 +0800)]
Merge branch 'feature/run_test_on_release_branches' into 'master'

CI: support running CI test on release branches

Patches will be cherry-picked to release branches after it's released. Therefore we need to run test jobs with the same strategy as master.

See merge request !551

7 years agoMerge branch 'bugfix/free_iram' into 'master'
Angus Gratton [Fri, 3 Mar 2017 06:08:10 +0000 (14:08 +0800)]
Merge branch 'bugfix/free_iram' into 'master'

uart driver: Remove ISR from IRAM

See merge request !486

7 years agoCI: support running CI test on release branches
He Yin Ling [Fri, 3 Mar 2017 06:06:07 +0000 (14:06 +0800)]
CI: support running CI test on release branches

7 years agouart driver: Remove UART ISR handler from IRAM
Angus Gratton [Tue, 7 Feb 2017 04:05:18 +0000 (15:05 +1100)]
uart driver: Remove UART ISR handler from IRAM

Doesn't change example behaviour, as ISR wasn't being registered as
ESP_INTR_FLAG_IRAM.

7 years agoMerge branch 'bugfix/github_small_fixes' into 'master'
Angus Gratton [Fri, 3 Mar 2017 04:58:22 +0000 (12:58 +0800)]
Merge branch 'bugfix/github_small_fixes' into 'master'

Merge small bugfix PRs from github

* https://github.com/espressif/esp-idf/pull/389
* https://github.com/espressif/esp-idf/pull/382
* https://github.com/espressif/esp-idf/pull/367
* https://github.com/espressif/esp-idf/pull/366
* https://github.com/espressif/esp-idf/pull/361
* https://github.com/espressif/esp-idf/pull/355
* https://github.com/espressif/esp-idf/pull/350
* https://github.com/espressif/esp-idf/pull/348
* https://github.com/espressif/esp-idf/pull/339
* https://github.com/espressif/esp-idf/pull/46
* https://github.com/espressif/esp-idf/pull/307

See merge request !541

7 years agoesptool: Update esptool.py to integrate reset fix for older dev boards
Angus Gratton [Fri, 3 Mar 2017 00:22:25 +0000 (11:22 +1100)]
esptool: Update esptool.py to integrate reset fix for older dev boards

Originally marked "Reset with ESP32R0 Windows workaround", but proven to be
necessary on some other platforms as well. This is now integrated into the
default esptool.py reset behaviour.

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

7 years agoesptool: Update to latest v2.0 beta version
Angus Gratton [Fri, 3 Feb 2017 05:08:17 +0000 (16:08 +1100)]
esptool: Update to latest v2.0 beta version

* New "espefuse.py set_flash_voltage" command to easily set a fix
  VDD_SDIO regulator voltage (1.8V, 3.3V or disabled).
* Fixes bugs when flashing files with non-4-byte aligned lengths
  (doesn't effect esp-idf image files)
* README improvements

7 years agodocs/eclipse: Add considerations for PATH, PYTHONPATH
Angus Gratton [Fri, 3 Mar 2017 01:19:24 +0000 (12:19 +1100)]
docs/eclipse: Add considerations for PATH, PYTHONPATH

Thanks to @motla who mentioned these on github:
https://github.com/espressif/esp-idf/pull/157#issuecomment-271109920

7 years agoesp_err: Use separate code path for ESP_ERROR_CHECK assertion
Angus Gratton [Thu, 2 Mar 2017 06:22:22 +0000 (17:22 +1100)]
esp_err: Use separate code path for ESP_ERROR_CHECK assertion

* Minimum code size overhead
* Makes function safe to use when flash cache is disabled

Builds on #339 https://github.com/espressif/esp-idf/pull/339

7 years agospi_flash: Add spi_flash_cache_enabled() test function
Angus Gratton [Thu, 2 Mar 2017 04:21:03 +0000 (15:21 +1100)]
spi_flash: Add spi_flash_cache_enabled() test function

7 years agosdmmc: Use slot width as default slot_config width parameter, instead of 4
Angus Gratton [Thu, 2 Mar 2017 06:18:44 +0000 (17:18 +1100)]
sdmmc: Use slot width as default slot_config width parameter, instead of 4

Ref #361 https://github.com/espressif/esp-idf/pull/361

7 years agocomponent/bt: fix bug where uuid was not reset in btc_gatts_act_create_attr_tab.
Derek Gregory [Sat, 28 Jan 2017 08:47:09 +0000 (00:47 -0800)]
component/bt: fix bug where uuid was not reset in btc_gatts_act_create_attr_tab.

Merges #307 https://github.com/espressif/esp-idf/pull/307

7 years agoble: Fix ble_adv data truncation
lucashutchinson [Thu, 2 Mar 2017 03:41:03 +0000 (16:41 +1300)]
ble: Fix ble_adv data truncation

Fixed issue with ble_adv data being truncated after the 31st octet due to an incorrect length passed in a memcpy.

Merges #389 https://github.com/espressif/esp-idf/pull/389

7 years agodocs/*-setup: Use --enable-local instead of --prefix=$PWD for ct-ng
Angus Gratton [Thu, 2 Mar 2017 05:07:28 +0000 (16:07 +1100)]
docs/*-setup: Use --enable-local instead of --prefix=$PWD for ct-ng

7 years agodocs/linux-setup: Install dependencies for Ubuntu 16.04
Daniel Bovensiepen [Fri, 7 Oct 2016 15:31:24 +0000 (23:31 +0800)]
docs/linux-setup: Install dependencies for Ubuntu 16.04

Not sure which Ubuntu is used in the installation guide but for the latest LTS release 16.04 we need libtool-bin for
compiling crosstool-NG proper

Merges #46 https://github.com/espressif/esp-idf/pull/46

7 years agoesp_err: add NDEBUG guard, comment about flash cache
Angus Gratton [Thu, 2 Mar 2017 04:40:49 +0000 (15:40 +1100)]
esp_err: add NDEBUG guard, comment about flash cache

Follow-up to 316b040

7 years agoUpdate to ESP_ERROR_CHECK
Neil Kolban [Tue, 14 Feb 2017 05:03:04 +0000 (23:03 -0600)]
Update to ESP_ERROR_CHECK

See request from ESP_Angus here:
https://esp32.com/viewtopic.php?f=18&t=1179

Merges #339 https://github.com/espressif/esp-idf/pull/339

7 years agoAdded missing platform.h to mbedtls ssl.h
Anne Jan Brouwer [Fri, 17 Feb 2017 00:58:44 +0000 (01:58 +0100)]
Added missing platform.h to mbedtls ssl.h

There was a missing definition of mbedtls_time_t

See for example:
https://travis-ci.org/SHA2017-badge/Firmware/jobs/202459377

Merges #348 https://github.com/espressif/esp-idf/pull/348

7 years agolwip: Use strlcpy() instead of memcpy() to copy hostname to static buffer
Angus Gratton [Thu, 2 Mar 2017 03:50:58 +0000 (14:50 +1100)]
lwip: Use strlcpy() instead of memcpy() to copy hostname to static buffer

7 years agolwip: Fix hostname set in tcpip_adapter_lwip
alarruskain [Fri, 17 Feb 2017 10:02:00 +0000 (11:02 +0100)]
lwip: Fix hostname set in tcpip_adapter_lwip

Hostname for each interface is not correctly stored in "hostinfo" variable.

Merges #350 https://github.com/espressif/esp-idf/pull/350

7 years agodocs: Fix typo in build-system.rst
gbcwbz [Sun, 19 Feb 2017 11:33:08 +0000 (19:33 +0800)]
docs: Fix typo in build-system.rst

Merges #355 https://github.com/espressif/esp-idf/pull/355

7 years agosdmmc: Add width field to the slot config.
Daniel Campora [Mon, 20 Feb 2017 00:42:58 +0000 (00:42 +0000)]
sdmmc: Add width field to the slot config.

Therefore if the width is set to 1, you can choose to only
configure the CLK, DAT0 and CMD pins.

Merges #361 https://github.com/espressif/esp-idf/pull/361

7 years agoexamples/ethernet: Same sense of meaning SW_STRAP
rudi ;-) [Tue, 21 Feb 2017 01:52:27 +0000 (02:52 +0100)]
examples/ethernet: Same sense of meaning SW_STRAP

Merges #366 #367
https://github.com/espressif/esp-idf/pull/366
https://github.com/espressif/esp-idf/pull/367

7 years agoexamples/ethernet: typo, better named
rudi ;-) [Sun, 26 Feb 2017 03:13:39 +0000 (04:13 +0100)]
examples/ethernet: typo, better named

Merges #382 https://github.com/espressif/esp-idf/pull/382

7 years agoMerge branch 'bugfix/separate_ethernet_and_wifi' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:53:32 +0000 (11:53 +0800)]
Merge branch 'bugfix/separate_ethernet_and_wifi' into 'master'

Allow separate ethernet & wifi configuration

If only 1/2 of ethernet & WiFi are enabled in config, the other interface is no longer linked into the firmware.

* Fixes bug where enabling Ethernet but not WiFi would fail to compile.
* Also means that enabling WiFi but not Ethernet no longer links some unused ethernet interface functions.

See merge request !525

7 years agoMerge branch 'bugfix/freertos_event_groups' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:45:59 +0000 (11:45 +0800)]
Merge branch 'bugfix/freertos_event_groups' into 'master'

FreeRTOS: Fix cross-core event group sync

As above

Also includes fixes which allowed removing some semi-hacky bits from the event group unit tests - specifically, higher priority tasks will always be started immediately even if they run on the opposite core.

See merge request !535

7 years agoMerge branch 'bugfix/rsa4096' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:41:11 +0000 (11:41 +0800)]
Merge branch 'bugfix/rsa4096' into 'master'

mbedtls: Use two MPI multiplications when multiply operands too large

Allows RSA4096 via hardware crypto operations.

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

See merge request !477

7 years agoMerge branch 'feature/fatfs_dynamic_pdrv' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:40:37 +0000 (11:40 +0800)]
Merge branch 'feature/fatfs_dynamic_pdrv' into 'master'

FATFS enable support for multiple drives

Current implementation has drive numbers and paths hardcoded to support
only one FATFS drive. Arduino has it's own SPI driver to allow
compatibility and flexibility. With the MR it is possible to have up to
```_VOLUMES``` drives connected (SPI, SDMMC and others) at the same
time and accessed through VFS

See merge request !478

7 years agoMerge branch 'bugfix/openssl_debuging_error' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:29:37 +0000 (11:29 +0800)]
Merge branch 'bugfix/openssl_debuging_error' into 'master'

components/openssl : Fix compilation error when openssl debugging is enabled

See merge request !512

7 years agoMerge branch 'feature/freertos_kconfig' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:29:05 +0000 (11:29 +0800)]
Merge branch 'feature/freertos_kconfig' into 'master'

freertos kconfig: Add max task length name, move task stack overflow watchpoint

* Allow setting task name length via kconfig
* Move task stack overflow watchpoint out of internals debugging submenu, place next to other stack overflow checks.
* Thread local pointer feature should depend on Ethernet or WiFi

See merge request !531

7 years agoMerge branch 'feature/docs_partition_ota_flash' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:27:01 +0000 (11:27 +0800)]
Merge branch 'feature/docs_partition_ota_flash' into 'master'

Partition/SPI/OTA docs & OTA new functionality

* Update partition, SPI flash & OTA docs to reflect functionality changes
* Refactor OTA implementation to perform checks mentioned in API doc
* Add new functions to OTA API: esp_ota_get_running_partition() & esp_ota_get_next_update_partition() functions
* Add spi_flash_cache2phys() & spi_flash_phys2cache() functions to support esp_ota_get_running_partition()

See merge request !513

7 years agoMerge branch 'feature/enable_qio_directly' into 'master'
Ivan Grokhotkov [Fri, 3 Mar 2017 03:25:52 +0000 (11:25 +0800)]
Merge branch 'feature/enable_qio_directly' into 'master'

Enable SPI flash Quad I/O in bootloader

Bootloader checks flash ID, enables Quad I/O mode based on flash type.

See merge request !479

7 years agoMerge branch 'feature/tw10306_menuconfig_adds_some_wifi_options' into 'master'
Jiang Jiang Jian [Thu, 2 Mar 2017 11:46:29 +0000 (19:46 +0800)]
Merge branch 'feature/tw10306_menuconfig_adds_some_wifi_options' into 'master'

menuconfig adds some WiFi options

menuconfig adds some WiFi options
 1. Add options to enable/disable AMPDU
  2. Add options to configure WiFi task stack size
  3. Add options to configure WiFi RX/TX buffer number

See merge request !519

7 years agoesp32: update io_mux_reg.h to latest version
Ivan Grokhotkov [Thu, 2 Mar 2017 11:35:28 +0000 (19:35 +0800)]
esp32: update io_mux_reg.h to latest version

fixes https://github.com/espressif/esp-idf/issues/349

7 years agoesp32: menuconfig adds some WiFi options
Liu Zhi Fu [Tue, 21 Feb 2017 06:52:25 +0000 (14:52 +0800)]
esp32: menuconfig adds some WiFi options

1. Add options to enable/disable AMPDU
2. Add options to enable/disable WIFI NVS
3. Add options to configure WiFi RX/TX buffer number

7 years agoMerge branch 'feature/add_user_set_mac' into 'master'
Jiang Jiang Jian [Thu, 2 Mar 2017 09:34:14 +0000 (17:34 +0800)]
Merge branch 'feature/add_user_set_mac' into 'master'

Feature/add user set mac

1. Add menuconfig for user to set mac address of wifi, bt and ethernet.
2. Add the number of MAC address generated from efuse for user to choose.
3. Add MAC address derive method.

See merge request !542

7 years agoMerge branch 'bugfix/tw10169_dhcp_release_cause_tcp_abort' into 'master'
Jiang Jiang Jian [Thu, 2 Mar 2017 09:28:11 +0000 (17:28 +0800)]
Merge branch 'bugfix/tw10169_dhcp_release_cause_tcp_abort' into 'master'

Bugfix/tw10169 dhcp release cause tcp abort

Modify the DHCP timer granularity from 1 minutes to 1 second.

See merge request !539

7 years agoMerge branch 'feature/in_isr_context' into 'master'
Jeroen Domburg [Thu, 2 Mar 2017 09:17:23 +0000 (17:17 +0800)]
Merge branch 'feature/in_isr_context' into 'master'

Add xPortInIsrContext function + unit test

As title states.

See merge request !533

7 years agoAdd xPortInIsrContext function + unit test. This function returns true when the curre...
Jeroen Domburg [Mon, 27 Feb 2017 08:34:19 +0000 (16:34 +0800)]
Add xPortInIsrContext function + unit test. This function returns true when the current CPU runs in an interrupt handler context.