]> granicus.if.org Git - esp-idf/log
esp-idf
7 years agoAdded README.md to example category folders
krzychb [Wed, 18 Jan 2017 20:03:15 +0000 (21:03 +0100)]
Added README.md to example category folders

7 years agoMerge branch 'bugfix/docs_cleanup' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 16:33:31 +0000 (00:33 +0800)]
Merge branch 'bugfix/docs_cleanup' into 'master'

Organize examples and API documentation - supplement to !430

This supplement to !430, both intended to replace bulky  !421.

1. Fixed broken links
2. Added links to available examples in API documentation, where missing
3. Updated links to point directly to example folder (to show README.md with example description)
4. Added README.md in docs folder info to point reader to ReadTheDocs instead of doc sources, ref. https://github.com/espressif/esp-idf/issues/243
5. Fixed some typo errors / Sphinx warnings
6. Fixed memory leak in example, ref. https://github.com/espressif/esp-idf/issues/209

See merge request !440

7 years agoMerge branch 'bug/tw7809_sta_no_rewiring_softap' into 'master'
Jiang Jiang Jian [Wed, 18 Jan 2017 12:45:08 +0000 (20:45 +0800)]
Merge branch 'bug/tw7809_sta_no_rewiring_softap' into 'master'

tw7809: fix station no rewiring softap probability

See merge request !444

7 years agotw7809: fix station no rewiring softap probability
XiaXiaotian [Wed, 18 Jan 2017 12:17:03 +0000 (20:17 +0800)]
tw7809: fix station no rewiring softap probability

7 years agoMerge branch 'bugfix/partition_write_encrypted' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 10:32:03 +0000 (18:32 +0800)]
Merge branch 'bugfix/partition_write_encrypted' into 'master'

Allow writes to encrypted partitions

There is a size alignment requirement but it is checked by
spi_flash_write_encrypted. However, this check flat-out bans encrypted
writes.

Original PR on Github: https://github.com/espressif/esp-idf/pull/249

See merge request !432

7 years agoMerge branch 'bugfix/btdm_isr_cache' into 'master'
Jiang Jiang Jian [Wed, 18 Jan 2017 09:38:55 +0000 (17:38 +0800)]
Merge branch 'bugfix/btdm_isr_cache' into 'master'

component/bt : move some codes of controller to iram

1. mv codes which called by isr into iram
2. mv libcoexist.a into iram

See merge request !442

7 years agoMerge branch 'feature/parse_unit_test_cases_from_test_files' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 09:23:04 +0000 (17:23 +0800)]
Merge branch 'feature/parse_unit_test_cases_from_test_files' into 'master'

Parse unit test cases from test files

As of now, we need to sync three different places when adding new unit test cases. The plan is to add a python script in tools/unit-test-app. This script would parse unit test cases from the C files with tests and generate the needed YAML files in components/idf_test/unit_test. CI would run this script in build stage to create the files and unit-test stage would use the generated files to run tests.

To get the needed test metadata, we need to add some more tags in the test case functions. For example:

```
TEST_CASE("SYS_LIB_0102 test time functions", "[stdlib][fails][env=UT_T1_APC]")
{
    //...
}
```

Reason for this kind of implementation is that we need the YAML files for generating documents.

See merge request !275

7 years agoCI: add script for parsing unit test cases for CI from test files
antti [Wed, 7 Dec 2016 05:58:51 +0000 (13:58 +0800)]
CI: add script for parsing unit test cases for CI from test files

Add python script that parses list of unit test cases for CI from component test folder

Modify .gitlab-ci.yml to run this script as part of build unit tests stage

7 years agoesp32: add [ignore] tag to some unit test cases for CI
antti [Wed, 14 Dec 2016 08:38:45 +0000 (16:38 +0800)]
esp32: add [ignore] tag to some unit test cases for CI

Add ignore tag on unit test cases that are not supported in CI yet

7 years agoesp32: add unit testing doc
antti [Mon, 5 Dec 2016 09:29:12 +0000 (17:29 +0800)]
esp32: add unit testing doc

7 years agocomponent/bt : move some codes of controller to iram
Tian Hao [Wed, 18 Jan 2017 08:38:06 +0000 (16:38 +0800)]
component/bt : move some codes of controller to iram

1. mv codes which called by sir into iram
2. mv libcoexist.a into iram

7 years agoMerge branch 'bugfix/btdm_minor_misc' into 'master'
Jiang Jiang Jian [Wed, 18 Jan 2017 08:14:50 +0000 (16:14 +0800)]
Merge branch 'bugfix/btdm_minor_misc' into 'master'

component/bt : fix gatt server table bugs

1. fix gatt server table bugs
2. fix blufi a minor bugs
3. fix example minor mistakes

See merge request !438

7 years agoMerge branch 'feature/update_gitignore' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 02:32:14 +0000 (10:32 +0800)]
Merge branch 'feature/update_gitignore' into 'master'

Update gitignore for examples

Also ignore .settings since some of us use eclipse.

See merge request !437

7 years agoMerge branch 'bugfix/high_timer_int' into 'master'
Ivan Grokhotkov [Wed, 18 Jan 2017 02:31:03 +0000 (10:31 +0800)]
Merge branch 'bugfix/high_timer_int' into 'master'

Delete option to select core timer 2 as a FreeRTOS tick source

Core timer 2 is unusable for FreeRTOS ticks because it triggers a high-level interrupt. This MR deletes the option to select it.

Ref https://github.com/espressif/esp-idf/issues/234

See merge request !418

7 years agoMerge branch 'feature/add_get_idf_version_api' into 'master'
Wu Jian Gang [Wed, 18 Jan 2017 01:44:53 +0000 (09:44 +0800)]
Merge branch 'feature/add_get_idf_version_api' into 'master'

Add get idf version API

This is same as IDF_VER.

See merge request !435

7 years agoMerge branch 'feature/add_some_configurable_lwip_options' into 'master'
Wu Jian Gang [Wed, 18 Jan 2017 01:44:23 +0000 (09:44 +0800)]
Merge branch 'feature/add_some_configurable_lwip_options' into 'master'

Allow config TCP_MAXRTX & TCP_SYNMAXRTX in menuconfig

See merge request !436

7 years agoFixed memory leak in example, ref. https://github.com/espressif/esp-idf/issues/209
krzychb [Tue, 17 Jan 2017 20:20:24 +0000 (21:20 +0100)]
Fixed memory leak in example, ref. https://github.com/espressif/esp-idf/issues/209

7 years agoTypo corrections
krzychb [Tue, 17 Jan 2017 20:12:54 +0000 (21:12 +0100)]
Typo corrections

7 years agoDocs folder info, ref. https://github.com/espressif/esp-idf/issues/243; Doc title fix
krzychb [Tue, 17 Jan 2017 19:37:27 +0000 (20:37 +0100)]
Docs folder info, ref. https://github.com/espressif/esp-idf/issues/243; Doc title fix

7 years agoUpdated links to point directly to example folder, fixed names
krzychb [Tue, 17 Jan 2017 19:03:26 +0000 (20:03 +0100)]
Updated links to point directly to example folder, fixed names

7 years agoAdded links to examples in API documentation
krzychb [Tue, 17 Jan 2017 18:12:48 +0000 (19:12 +0100)]
Added links to examples in API documentation

7 years agoFixed broken links
krzychb [Tue, 17 Jan 2017 17:53:29 +0000 (18:53 +0100)]
Fixed broken links

7 years agocomponent/bt : fix gatts demo mistakes & unpeg notify bug
Tian Hao [Tue, 17 Jan 2017 12:13:25 +0000 (20:13 +0800)]
component/bt : fix gatts demo mistakes & unpeg notify bug

7 years agocomponent/bt : fix gatt server table bugs
Tian Hao [Tue, 17 Jan 2017 10:42:11 +0000 (18:42 +0800)]
component/bt : fix gatt server table bugs

1. fix gatt server table bugs
2. fix blufi a minor bug

7 years agogitignore: Update gitignore for examples
Wu Jian Gang [Tue, 17 Jan 2017 09:55:29 +0000 (17:55 +0800)]
gitignore: Update gitignore for examples

7 years agolwip: Allow config TCP_MAXRTX & TCP_SYNMAXRTX in menuconfig
Wu Jian Gang [Tue, 17 Jan 2017 09:44:25 +0000 (17:44 +0800)]
lwip: Allow config TCP_MAXRTX & TCP_SYNMAXRTX in menuconfig

7 years agoesp32: add get idf version api
Wu Jian Gang [Tue, 17 Jan 2017 08:52:42 +0000 (16:52 +0800)]
esp32: add get idf version api

7 years agoMerge branch 'feature/categorize_examples_doc_new' into 'master'
Ivan Grokhotkov [Tue, 17 Jan 2017 07:14:00 +0000 (15:14 +0800)]
Merge branch 'feature/categorize_examples_doc_new' into 'master'

Organize examples and API documentation

Organize / categorize growing number of code examples and API documentation,  ref. https://gitlab.espressif.cn:6688/idf/esp-idf/issues/10

This merge request is intended to replace most of https://gitlab.espressif.cn:6688/idf/esp-idf/merge_requests/421. The rest of changes submitted in https://gitlab.espressif.cn:6688/idf/esp-idf/merge_requests/421 will follow.

1. Moved examples to category folders, removed numbers from example names
2. Modified `buid_examples.sh` script to handle new locations of examples
3. Moved api-name.rst files to category folders
4. Updated documentation TOC (`docs/index.rst`)
5. Updated links to examples in API documentation

See merge request !430

7 years agoMerge branch 'bugfix/docs' into 'master'
Ivan Grokhotkov [Tue, 17 Jan 2017 07:13:04 +0000 (15:13 +0800)]
Merge branch 'bugfix/docs' into 'master'

Minor documentation fixes

Two trivial fixes:
- fix link formatted as RST in an MD document
- fix DRAM size typo

See merge request !429

7 years agoMerge branch 'bugfix/btdm_flash_operation' into 'master'
Ivan Grokhotkov [Tue, 17 Jan 2017 07:12:23 +0000 (15:12 +0800)]
Merge branch 'bugfix/btdm_flash_operation' into 'master'

component/bt : update bt lib to fix flash operation bug

update bt lib to fix flash write bug when bt interrupt happened.

See merge request !434

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

Release build related fixes

- Fix (non-)inlining issue with `spi_flash_guards_` functions in release mode
- Fix assert-related warnings generated in release mode by changing assert definition

Fixes https://github.com/espressif/esp-idf/issues/233

See merge request !428

7 years agoMerge branch 'bugfix/time_syscalls' into 'master'
Ivan Grokhotkov [Tue, 17 Jan 2017 06:04:11 +0000 (14:04 +0800)]
Merge branch 'bugfix/time_syscalls' into 'master'

Fix issues with time syscalls

- fix compilation error when no time source is selected (https://github.com/espressif/esp-idf/issues/238)
- work around a bug that time speeds up when RTC registers are read on the APP CPU (https://github.com/espressif/arduino-esp32/issues/120)

See merge request !427

7 years agocomponent/bt : update bt lib to fix flash operation bug
Tian Hao [Tue, 17 Jan 2017 05:51:44 +0000 (13:51 +0800)]
component/bt : update bt lib to fix flash operation bug

7 years agoAllow writes to encrypted partitions
Deomid Ryabkov [Mon, 16 Jan 2017 22:03:58 +0000 (22:03 +0000)]
Allow writes to encrypted partitions

There is a size alignment requirement but it is checked by
spi_flash_write_encrypted. However, this check flat-out bans encrypted
writes.

7 years agotime: only define {get,set}_boot_time if FRC1 or RTC is used as time source
Ivan Grokhotkov [Mon, 16 Jan 2017 11:53:10 +0000 (19:53 +0800)]
time: only define {get,set}_boot_time if FRC1 or RTC is used as time source

Fixes https://github.com/espressif/esp-idf/issues/238

7 years agotime: workaround for FRC_TIMER_INT_REG write issue
Ivan Grokhotkov [Mon, 16 Jan 2017 11:52:23 +0000 (19:52 +0800)]
time: workaround for FRC_TIMER_INT_REG write issue

In some cases (when RTC register reads are performed from the APP CPU), a write to FRC_TIMER_INT_REG may be lost on the bus.
Writing to another DPORT register immediately before or after that works around the issue.
We write one dummy value to an address which doesn’t have any register associated with it.

Fixes https://github.com/espressif/arduino-esp32/issues/120

7 years agoUpdated links to examples in new folders / categories in api documentation
Krzysztof Budzynski [Mon, 16 Jan 2017 22:08:36 +0000 (23:08 +0100)]
Updated links to examples in new folders / categories in api documentation

7 years agoUpdated relative paths to included documents
Krzysztof Budzynski [Mon, 16 Jan 2017 22:08:35 +0000 (23:08 +0100)]
Updated relative paths to included documents

7 years agoMoved api documentation to new folders / categories
Krzysztof Budzynski [Mon, 16 Jan 2017 22:08:35 +0000 (23:08 +0100)]
Moved api documentation to new folders / categories

7 years agoModified buid_examples.sh to handle new locations of examples
Krzysztof Budzynski [Mon, 16 Jan 2017 22:08:35 +0000 (23:08 +0100)]
Modified buid_examples.sh to handle new locations of examples

7 years agoMoved examples to new folders / categories. Removed example numbers from example...
Krzysztof Budzynski [Mon, 16 Jan 2017 22:08:35 +0000 (23:08 +0100)]
Moved examples to new folders / categories. Removed example numbers from example names

7 years agodocs: fix data RAM size
Ivan Grokhotkov [Mon, 16 Jan 2017 17:18:23 +0000 (01:18 +0800)]
docs: fix data RAM size

Fixes https://github.com/espressif/esp-idf/issues/184

7 years agoreadme: fix link formatting
Ivan Grokhotkov [Mon, 16 Jan 2017 17:17:20 +0000 (01:17 +0800)]
readme: fix link formatting

7 years agonewlib: change definition of assert for release builds
Ivan Grokhotkov [Mon, 16 Jan 2017 16:49:38 +0000 (00:49 +0800)]
newlib: change definition of assert for release builds

One common pattern of using assert function looks as follows:
    int ret = do_foo();
    assert(ret == 0);   // which reads as: “do_foo should never fail here, by design”
The problem with such code is that if ‘assert’ is removed by the preprocessor in release build,
variable ret is no longer used, and the compiler issues a warning about this.
Changing assert definition in the way done here make the variable used, from language syntax perspective.
Semantically, the variable is still unused at run time (as sizeof can be evaluated at compile time), so the compiler
can optimize things away if possible.

7 years agospi_flash: define spi_flash_guard_{start,stop} with IRAM_ATTR
Ivan Grokhotkov [Mon, 16 Jan 2017 16:42:55 +0000 (00:42 +0800)]
spi_flash: define spi_flash_guard_{start,stop} with IRAM_ATTR

These functions are marked as inline and are called from functions which are in IRAM.
In release (-Os) builds, the compiler may decide not to inline these functions.
Placing these functions into IRAM explicitly works around this.

7 years agoMerge branch 'bugfix/osx_toolchain_detection' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 15:09:53 +0000 (23:09 +0800)]
Merge branch 'bugfix/osx_toolchain_detection' into 'master'

build: Use greedy match for toolchain version detection (fixes macOS)

See merge request !423

7 years agoMerge branch 'bug/fix_some_wifi_lib_bugs' into 'master'
Wu Jian Gang [Mon, 16 Jan 2017 10:57:02 +0000 (18:57 +0800)]
Merge branch 'bug/fix_some_wifi_lib_bugs' into 'master'

update wifi lib: fix some wifi lib bugs

1. net80211: fix get ap info error(a4614877)

2. tw9358: sta mac same with softap(ea38d32c)

3. tw9221: scan channel error when connected(183d469c)

See merge request !425

7 years agoMerge branch 'bugfix/event_stack_overflow' into 'master'
Wu Jian Gang [Mon, 16 Jan 2017 10:56:46 +0000 (18:56 +0800)]
Merge branch 'bugfix/event_stack_overflow' into 'master'

esp_event: event stack overflow

See merge request !424

7 years agoupdate wifi lib: fix some wifi lib bugs
XiaXiaotian [Mon, 16 Jan 2017 09:20:05 +0000 (17:20 +0800)]
update wifi lib: fix some wifi lib bugs

1. net80211: fix get ap info error(a4614877)

2. tw9358: sta mac same with softap(ea38d32c)

3. tw9221: scan channel error when connected(183d469c)

7 years agoesp_event: event stack overflow
shangke [Mon, 16 Jan 2017 09:06:12 +0000 (17:06 +0800)]
esp_event: event stack overflow

7 years agobuild: Use greedy match for toolchain version detection (fixes macOS)
Angus Gratton [Mon, 16 Jan 2017 04:01:25 +0000 (15:01 +1100)]
build: Use greedy match for toolchain version detection (fixes macOS)

7 years agoMerge branch 'feature/vfs_uart_read' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 04:08:22 +0000 (12:08 +0800)]
Merge branch 'feature/vfs_uart_read' into 'master'

vfs: implement reading from UART

This change adds support for reading from the UART FIFO via the `stdin`.

Useful for simple cases when handling lots of data is not a requirement (e.g. command prompts operated by humans).

`\r\n` -> `\n` conversion is guided by the existing `CONFIG_NEWLIB_STDOUT_ADDCR` configuration option.

See merge request !393

7 years agovfs: implement reading from UART
Ivan Grokhotkov [Mon, 9 Jan 2017 14:50:42 +0000 (22:50 +0800)]
vfs: implement reading from UART

7 years agoMerge branch 'bugfix/i2s_bootloader_random_disable' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 02:40:58 +0000 (10:40 +0800)]
Merge branch 'bugfix/i2s_bootloader_random_disable' into 'master'

bootloader_random_disable: Restore all SARADC/I2S registers to defaults

Fix for issue with I2S0 not being usable after bootloader_random_enable()

See merge request !415

7 years agoMerge branch 'bugfix/panic_reset_hangs' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 02:40:47 +0000 (10:40 +0800)]
Merge branch 'bugfix/panic_reset_hangs' into 'master'

Panic handler: Use same reset path as esp_restart(), disabling hardware

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

See merge request !417

7 years agoMerge branch 'bugfix/fixes_from_github' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 02:26:58 +0000 (10:26 +0800)]
Merge branch 'bugfix/fixes_from_github' into 'master'

fixes for github issues

This MR includes commits from several Github PRs, as well some fixes for issues reported on Github and on the forum.

- compile PHY-related code only when WiFi is enabled
- fix macOS setup instructions
- fix some of the Sphinx warnings
- update docs index, improve structure of the readme-
- wifi: fix typos, rename ESP_ERR_WIFI_NOT_START to ESP_ERR_WIFI_NOT_STARTED
- sdmmc: fix explanation of flash voltage regulator configuration efuses
- sdmmc: change idx num of example
- fix i2c_get_period name
- fix esp_log_level_set function name in docs

See merge request !420

7 years agoBuild: Handle WiFi & BT enabled/disabled combos gracefully as possible
Angus Gratton [Mon, 16 Jan 2017 00:52:15 +0000 (11:52 +1100)]
Build: Handle WiFi & BT enabled/disabled combos gracefully as possible

If using WIFI_INIT_CONFIG_DEFAULT, error message will point out lack
of WiFi. Otherwise linker errors on WiFi symbols should help give a
clue as to what is broken.

Piggy-backs on changes in !420, ref github #230 #237

7 years agoMerge branch 'bugfix/compact_panic' into 'master'
Ivan Grokhotkov [Mon, 16 Jan 2017 01:28:40 +0000 (09:28 +0800)]
Merge branch 'bugfix/compact_panic' into 'master'

Fix panic register dump format

Fix misplaced a printf somewhere causing an enter to be printed after every register in the panic regdump instead of every 4th register.

Fixes https://github.com/espressif/esp-idf/issues/236

See merge request !419

7 years agoMerge branch 'bugfix/toolchain_detection_windows' into 'master'
Angus Gratton [Sun, 15 Jan 2017 23:45:47 +0000 (07:45 +0800)]
Merge branch 'bugfix/toolchain_detection_windows' into 'master'

Toolchain detection: Allow for Windows executable name and not-yet-configured toolchain path

Windows executable name based on fix suggested by @krzysztof

See merge request !416

7 years agoesp32: compile PHY-related code only when WiFi is enabled
Ivan Grokhotkov [Sun, 15 Jan 2017 18:33:16 +0000 (02:33 +0800)]
esp32: compile PHY-related code only when WiFi is enabled

Fixes https://github.com/espressif/esp-idf/issues/230, https://github.com/espressif/esp-idf/issues/237

7 years agodocs: fix macOS setup instructions
Ivan Grokhotkov [Sun, 15 Jan 2017 18:18:42 +0000 (02:18 +0800)]
docs: fix macOS setup instructions

Most of the packages mentioned are only needed for building the toolchain using crosstool-NG, not for the normal ESP-IDF environment.
Mention that pyserial needs to be installed (fixes https://github.com/espressif/esp-idf/issues/229).

7 years agodocs: fix some of the Sphinx warnings
Ivan Grokhotkov [Sun, 15 Jan 2017 18:07:46 +0000 (02:07 +0800)]
docs: fix some of the Sphinx warnings

7 years agodocs: update index, improve structure of the readme
Ivan Grokhotkov [Sun, 15 Jan 2017 17:48:47 +0000 (01:48 +0800)]
docs: update index, improve structure of the readme

7 years agowifi: fix typos, rename ESP_ERR_WIFI_NOT_START to ESP_ERR_WIFI_NOT_STARTED
Neil Kolban [Mon, 2 Jan 2017 05:51:48 +0000 (23:51 -0600)]
wifi: fix typos, rename ESP_ERR_WIFI_NOT_START to ESP_ERR_WIFI_NOT_STARTED

7 years agosdmmc: fix explanation of flash voltage regulator configuration efuses
Ivan Grokhotkov [Sun, 15 Jan 2017 17:19:14 +0000 (01:19 +0800)]
sdmmc: fix explanation of flash voltage regulator configuration efuses

- low level on GPIO12 corresponds to 3.3V output, not 1.8V
- add espefuse.py commands to burn efuses
- add XPD_SDIO_REG to the list of efuses which must be set

Reported on the forum: http://esp32.com/viewtopic.php?f=2&t=849&start=10#p4170

7 years agosdmmc: change idx num of example
rudi ;-) [Wed, 11 Jan 2017 20:47:38 +0000 (21:47 +0100)]
sdmmc: change idx num of example

7 years agoi2c: fix i2c_get_period name
devsaurus [Sat, 7 Jan 2017 12:14:40 +0000 (13:14 +0100)]
i2c: fix i2c_get_period name

rename i2s_get_period to i2c_get_period

7 years agolog: fix esp_log_level_set function name in docs
Lourens Naudé [Sat, 31 Dec 2016 17:54:40 +0000 (17:54 +0000)]
log: fix esp_log_level_set function name in docs

Fix documentation and comments to reflect the new esp_log_level_set API (and not deprecated esp_log_set_level)

7 years agoMerge branch 'feature/new-mdns' into 'master'
Ivan Grokhotkov [Sun, 15 Jan 2017 16:15:59 +0000 (00:15 +0800)]
Merge branch 'feature/new-mdns' into 'master'

Feature/new mdns

This is a written from scratch mDNS implementation that supports compression, service and host lookups and service advertisement.

See merge request !365

7 years agoFix panic register dump format
Jeroen Domburg [Sun, 15 Jan 2017 08:49:18 +0000 (16:49 +0800)]
Fix panic register dump format

7 years agoCore timer 2 is unusable for FreeRTOS ticks because it triggers a high-level interrup...
Jeroen Domburg [Sun, 15 Jan 2017 03:11:58 +0000 (11:11 +0800)]
Core timer 2 is unusable for FreeRTOS ticks because it triggers a high-level interrupt. This commit deletes the option to select it.

7 years agoInitial mDNS component and example
me-no-dev [Wed, 4 Jan 2017 16:54:07 +0000 (18:54 +0200)]
Initial mDNS component and example

7 years agoMerge branch 'feature/esp32_core_dump' into 'master'
Ivan Grokhotkov [Fri, 13 Jan 2017 03:51:40 +0000 (11:51 +0800)]
Merge branch 'feature/esp32_core_dump' into 'master'

esp32 core dump to flash

1.  menuconfig option to select where to store core dump: flash, uart or disable
2. Saving of core dump to flash
3. Partition table definitions files with core dump partition
4. Python scripts to support core dump generation from GDB command line

See merge request !341

7 years agoPanic handler: Use same reset path as esp_restart(), disabling hardware
Angus Gratton [Fri, 13 Jan 2017 03:30:00 +0000 (14:30 +1100)]
Panic handler: Use same reset path as esp_restart(), disabling hardware

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

7 years agoToolchain detection: Fix issue when run in a clean project
Angus Gratton [Fri, 13 Jan 2017 03:09:01 +0000 (14:09 +1100)]
Toolchain detection: Fix issue when run in a clean project

If the makefile config entry hasn't been generated yet, don't test the toolchain.

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

7 years agoToolchain detection: Allow for Windows executable name and not-yet-configured toolcha...
Angus Gratton [Fri, 13 Jan 2017 02:48:33 +0000 (13:48 +1100)]
Toolchain detection: Allow for Windows executable name and not-yet-configured toolchain path

Windows executable name based on fix suggested by @krzysztof

7 years agobootloader_random: Restore all SARADC/I2S registers to reset values
Angus Gratton [Thu, 12 Jan 2017 23:26:58 +0000 (10:26 +1100)]
bootloader_random: Restore all SARADC/I2S registers to reset values

Fix for issue with I2S0 not being usable after bootloader_random_enable()

7 years agoesp32: Fixes issues discussed during code review of MR!341
Alexey Gerenkov [Tue, 10 Jan 2017 11:48:47 +0000 (14:48 +0300)]
esp32: Fixes issues discussed during code review of MR!341

The following issues mentioned during MR!341 review were fixed:
1) Core dump test application description
2) Usage of CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH and CONFIG_ESP32_ENABLE_COREDUMP_TO_UART
3) FLASH_GUARD_START macro usage is fixed in flash API
4) Core dump module logging facility
5) cache util functions doc updated
6) interactive delay before print core dump to uart
7) core dump partion support in build system

7 years agoMerge branch 'bug/ets_timer_crash' into 'master'
Jiang Jiang Jian [Thu, 12 Jan 2017 13:33:28 +0000 (21:33 +0800)]
Merge branch 'bug/ets_timer_crash' into 'master'

tw9503: fix ets timer crash bug

1. tw9503: call ets_timer_disarm before calling ets_timer_setfn

2. change CHECK_AP_CONN to CHECK_STA_CONN

See merge request !414

7 years agotw9503: fix ets timer crash bug
XiaXiaotian [Thu, 12 Jan 2017 12:39:36 +0000 (20:39 +0800)]
tw9503: fix ets timer crash bug

1. tw9503: call ets_timer_disarm before calling ets_timer_setfn

2. change CHECK_AP_CONN to CHECK_STA_CONN

7 years agoMerge branch 'bugfix/btdm_adv_stop' into 'master'
Wu Jian Gang [Thu, 12 Jan 2017 09:32:09 +0000 (17:32 +0800)]
Merge branch 'bugfix/btdm_adv_stop' into 'master'

component/bt : fix adv stop bug

fix advertising cannot stop bug.

See merge request !412

7 years agoMerge branch 'feature/btdm_attr_table' into 'master'
Wu Jian Gang [Thu, 12 Jan 2017 09:31:39 +0000 (17:31 +0800)]
Merge branch 'feature/btdm_attr_table' into 'master'

component bt:Added the create attribute table method to the new API

GATT Server service table APIs.
Have already modify the style and other things as @jeroen  suggestion in other MR(the MR have been closed)

See merge request !399

7 years agocomponent/bt : fix adv stop bug
Tian Hao [Thu, 12 Jan 2017 08:29:07 +0000 (16:29 +0800)]
component/bt : fix adv stop bug

7 years agocomponent/bt : gatt server table fix uuid discovery bug
Tian Hao [Thu, 12 Jan 2017 08:25:09 +0000 (16:25 +0800)]
component/bt : gatt server table fix uuid discovery bug

7 years agoMerge branch 'bugfix/deep_sleep' into 'master'
Ivan Grokhotkov [Thu, 12 Jan 2017 07:53:09 +0000 (15:53 +0800)]
Merge branch 'bugfix/deep_sleep' into 'master'

deep sleep related fixes

A few fixes for deep sleep behavior:

- Fix a regression that deep sleep stub crashed if `ESP32_DEEP_SLEEP_WAKEUP_DELAY` option was enabled — the stub called `ets_update_cpu_frequency`, which was recently redefined to be an IRAM function, rather than a ROM one. Fixed by restoring the ROM definition as `ets_update_cpu_frequency_rom`, and using that in the deep sleep stub.

- By default, don't power down RTC_SLOW_MEM if there is any data in .rtc.data or .rtc.bss sections. This provides better out-of-the box experience, as variables attributed to .rtc.data are actually preserved during deep sleep.

- Store boot time in RTC_STORE registers instead of using a variable with RTC_DATA_ATTR. This allows RTC_SLOW_MEM to be powered down in deep sleep if no variables with RTC_DATA_ATTR are present in the program.

Fixes https://github.com/espressif/esp-idf/issues/182

See merge request !409

7 years agocomponent/bt : mv demo name
Tian Hao [Thu, 12 Jan 2017 06:44:26 +0000 (14:44 +0800)]
component/bt : mv demo name

1. mv demo name
2. fix a docs

7 years agonewlib: use RTC_STORE registers to keep boot time instead of RTC_SLOW_MEM
Ivan Grokhotkov [Wed, 11 Jan 2017 09:28:09 +0000 (17:28 +0800)]
newlib: use RTC_STORE registers to keep boot time instead of RTC_SLOW_MEM

This allows RTC_SLOW_MEM to be powered down in deep sleep if no other variables are placed into RTC_SLOW_MEM.

7 years agodeep sleep: keep RTC_SLOW_MEM powered on if data is placed into RTC slow memory
Ivan Grokhotkov [Wed, 11 Jan 2017 09:23:23 +0000 (17:23 +0800)]
deep sleep: keep RTC_SLOW_MEM powered on if data is placed into RTC slow memory

7 years agodeep sleep: fix regression due to moving ets_update_cpu_frequency into IRAM
Ivan Grokhotkov [Wed, 11 Jan 2017 09:17:13 +0000 (17:17 +0800)]
deep sleep: fix regression due to moving ets_update_cpu_frequency into IRAM

Deep sleep stub may call ets_update_cpu_frequency, which has been moved from ROM to IRAM.
Restore the ROM version in the linker script, call it ets_update_cpu_frequency_rom, use it in the deep sleep stub.

7 years agoMerge branch 'bugfix/btdm_dualcore_tmp_solution' into 'master'
Jiang Jiang Jian [Thu, 12 Jan 2017 03:50:18 +0000 (11:50 +0800)]
Merge branch 'bugfix/btdm_dualcore_tmp_solution' into 'master'

component/bt : modify bluedroid task to core0

use tmp solution to resolve the dual core bug.

Run bluedroid all task on core0.

See merge request !408

7 years agoMerge branch 'feature/wpa2_example' into 'master'
Jiang Jiang Jian [Thu, 12 Jan 2017 03:49:52 +0000 (11:49 +0800)]
Merge branch 'feature/wpa2_example' into 'master'

wpa2 enterprise: add example for wpa2 enterprise

See merge request !410

7 years agocomponent/bt : Optimize Gatt attr table and fix some bugs
Island [Wed, 11 Jan 2017 16:48:48 +0000 (00:48 +0800)]
component/bt : Optimize Gatt attr table and fix some bugs

1. Optimize GATT attribute table structure
2. fix read/write bugs
3. add docs

7 years agoMerge branch 'bugfix/mbedtls_tests' into 'master'
Ivan Grokhotkov [Thu, 12 Jan 2017 01:47:15 +0000 (09:47 +0800)]
Merge branch 'bugfix/mbedtls_tests' into 'master'

fix mbedtls unit tests, fix IDF_VER when building a project outside ESP-IDF tree

- mbedTLS test needs about 5% more time to run (in debug mode) when building with 5.2.0, compared to 4.8.5. Increase the timeout to let the test pass.
- when doing `git describe` in IDF_VER definition, `-C $(IDF_PATH)` is needed to get the version of ESP-IDF, and not the project being built (which may not even be in git)

See merge request !411

7 years agoesp32: Adds documentation and comments to core dump feature files
Alexey Gerenkov [Fri, 6 Jan 2017 10:06:43 +0000 (13:06 +0300)]
esp32: Adds documentation and comments to core dump feature files

7 years agoesp32: Fixes several issues in core dump feature
Alexey Gerenkov [Tue, 3 Jan 2017 19:01:40 +0000 (22:01 +0300)]
esp32: Fixes several issues in core dump feature

1) PS is fixed up to allow GDB backtrace to work properly
2) MR!341 discussion: in core dump module: esp_panicPutXXX was replaced by ets_printf.
3) MR!341 discussion: core dump flash magic number was changed.
4) MR!341 discussion: SPI flash access API was redesigned to allow flexible critical section management.
5) test app for core dump feature was added
6) fixed base64 file reading issues on Windows platform
7) now raw bin core file is deleted upon core loader failure by epscoredump.py

7 years agoesp32: Add core dump printing to UART feature
Alexey Gerenkov [Tue, 3 Jan 2017 11:16:41 +0000 (14:16 +0300)]
esp32: Add core dump printing to UART feature

7 years agoesp32: Add core dump saving to flash feature
Alexey Gerenkov [Wed, 21 Dec 2016 23:56:23 +0000 (02:56 +0300)]
esp32: Add core dump saving to flash feature

Complimentary changes:
1) Partition table definitions files with core dump partition
2) Special sub-type for core dump partition
3) Special version of spi_flash_xxx
4) espcoredump.py is script to get core dump from flash and print useful info
5) FreeRTOS API was extended to get tasks snapshots

7 years agobuild system: fix IDF_VER for projects outside of ESP-IDF tree
Ivan Grokhotkov [Wed, 11 Jan 2017 14:47:44 +0000 (22:47 +0800)]
build system: fix IDF_VER for projects outside of ESP-IDF tree

7 years agowpa2 enterprise: add example for wpa2 enterprise
XiaXiaotian [Wed, 11 Jan 2017 10:20:01 +0000 (18:20 +0800)]
wpa2 enterprise: add example for wpa2 enterprise

7 years agombedtls: give SHA test slightly more time to run
Ivan Grokhotkov [Wed, 11 Jan 2017 13:30:23 +0000 (21:30 +0800)]
mbedtls: give SHA test slightly more time to run