]> granicus.if.org Git - esp-idf/log
esp-idf
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 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 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 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

7 years agoMerge branch 'feature/config_wifi_bt' into 'master'
Ivan Grokhotkov [Wed, 11 Jan 2017 10:38:30 +0000 (18:38 +0800)]
Merge branch 'feature/config_wifi_bt' into 'master'

Clean up WiFi & Bluetooth config options

* Splits "WiFi" configuration out from ESP32 configuration submenu to its own menu.
* Renames "BT" to "Bluetooth", enabling Bluetooth is now in this option not the ESP32 submenu.

* Also disables compiling/linking of BT stack if Bluetooth is disabled, saves some build time.

See merge request !397

7 years agoMerge branch 'feature/toolchain_update' into 'master'
Ivan Grokhotkov [Wed, 11 Jan 2017 10:37:45 +0000 (18:37 +0800)]
Merge branch 'feature/toolchain_update' into 'master'

update toolchain version, rebuild newlib

- This MR updates the toolchain version used in the ESP-IDF
- Compiler version check and warning is added to project.mk
- Newlib is rebuilt to include wcsftime function
- libstdc++ build uses correct newlib headers (so we won't get undefined reference to `__impure_ptr` anymore)

See merge request !387

7 years agoMerge branch 'bugfix/fix_remove_wifi_auto_reconnect' into 'master'
Wu Jian Gang [Wed, 11 Jan 2017 10:10:44 +0000 (18:10 +0800)]
Merge branch 'bugfix/fix_remove_wifi_auto_reconnect' into 'master'

esp32: fixs about auto-reconnect and ap ssid configuration

1. Remove auto-reconnect
2. Use strnlen instead strlen to calculate ssid len in wifi lib

See merge request !407

7 years agoesp32: fixs about auto-reconnect and ap ssid configuration
XiaXiaotian [Wed, 11 Jan 2017 09:21:10 +0000 (17:21 +0800)]
esp32: fixs about auto-reconnect and ap ssid configuration

1. Remove auto-reconnect
2. Use strnlen instead strlen to calculate ssid len in wifi lib

7 years agocomponent/bt : modify bluedroid task to core0
Tian Hao [Wed, 11 Jan 2017 09:19:25 +0000 (17:19 +0800)]
component/bt : modify bluedroid task to core0

7 years agoMerge branch 'bugfix/spi_inconsistencies' into 'master'
Jeroen Domburg [Wed, 11 Jan 2017 09:11:45 +0000 (17:11 +0800)]
Merge branch 'bugfix/spi_inconsistencies' into 'master'

SPI: Some fixes to docs and flag naming

Kolban noticed the flags for a transaction are not named like the documentation states. The flags as mentioned in the docs are more consistent, so this MR renames them to that. Also some additions to the docs wrt the SPI signals

Ref http://www.esp32.com/viewtopic.php?f=13&t=919&p=3976#p3976 and http://www.esp32.com/viewtopic.php?f=13&t=921&p=3975#p3975

See merge request !398

7 years agocomponent bt:Added the create attribute table method to the new API
Yulong [Fri, 23 Dec 2016 16:28:47 +0000 (11:28 -0500)]
component bt:Added the create attribute table method to the new API

7 years agoAdd test for spi clock, fix corner cases)
Jeroen Domburg [Wed, 11 Jan 2017 08:13:33 +0000 (16:13 +0800)]
Add test for spi clock, fix corner cases)

7 years agoMerge branch 'bugfix/id9562_unregistered_callback' into 'master'
Jiang Jiang Jian [Wed, 11 Jan 2017 07:57:03 +0000 (15:57 +0800)]
Merge branch 'bugfix/id9562_unregistered_callback' into 'master'

component/bt: check for registration status of callback function before using it

Add checking of NULL function pointers when calling bluetooth callbacks, especially before the callback functions are registered

See merge request !406

7 years agoMerge branch 'feature/add_wpa2_set_id_api' into 'master'
Jiang Jiang Jian [Wed, 11 Jan 2017 07:13:47 +0000 (15:13 +0800)]
Merge branch 'feature/add_wpa2_set_id_api' into 'master'

add wpa2 set id api and modify null data tx description

1. wpa2: add wpa2 set id api

2. low rate: modify null data tx description

See merge request !402

7 years agodocs: update toolchain version
Ivan Grokhotkov [Sun, 4 Dec 2016 07:02:02 +0000 (23:02 -0800)]
docs: update toolchain version

7 years agocxx: add iostreams test
Ivan Grokhotkov [Tue, 10 Jan 2017 15:45:44 +0000 (23:45 +0800)]
cxx: add iostreams test

Checks that libstdc++ can use newlib IO functions

7 years agonewlib: build with wcsftime function
Ivan Grokhotkov [Tue, 10 Jan 2017 15:43:18 +0000 (23:43 +0800)]
newlib: build with wcsftime function

7 years agoMerge branch 'feature/ethernet_support_flow_control' into 'master'
Jiang Jiang Jian [Wed, 11 Jan 2017 06:51:43 +0000 (14:51 +0800)]
Merge branch 'feature/ethernet_support_flow_control' into 'master'

ethernet: support flow control

(1) Only fullduplex mode support flow ctrl .

(2) Fix reboot exception which caused by not-reset EMAC hardware (such as DMA) when reset CPU.

See merge request !392

7 years agoMerge branch 'bugfix/id9561_bt_status_check' into 'master'
Jiang Jiang Jian [Wed, 11 Jan 2017 06:38:43 +0000 (14:38 +0800)]
Merge branch 'bugfix/id9561_bt_status_check' into 'master'

component/bt: bug fix of lack of checking bluetooth stack status inside API functions

Add an API function for checking bluetooth stack status: whether it is uninitialized, initialized or enabled.
The function is intended to be used by users to check the bluetooth stack status, also, it is used inside bluetooth API functions to ensure the stack is in valid state.

See merge request !405

7 years agon, h and l actually are 6-bit; they go from 1 to 64.
Jeroen Domburg [Wed, 11 Jan 2017 06:13:37 +0000 (14:13 +0800)]
n, h and l actually are 6-bit; they go from 1 to 64.

7 years agocomponent/bt: change MACRO to inline function when invoking callbacks
wangmengyang [Wed, 11 Jan 2017 06:08:16 +0000 (14:08 +0800)]
component/bt: change MACRO to inline function when invoking callbacks

7 years agocomponent/bt: fix typos in "if" condition espressions
wangmengyang [Wed, 11 Jan 2017 05:36:48 +0000 (13:36 +0800)]
component/bt: fix typos in "if" condition espressions

7 years agoFix clock divider calculation
Jeroen Domburg [Wed, 11 Jan 2017 05:01:48 +0000 (13:01 +0800)]
Fix clock divider calculation

7 years agoadd wpa2 set id api and modify null data tx description
XiaXiaotian [Tue, 10 Jan 2017 09:50:32 +0000 (17:50 +0800)]
add wpa2 set id api and modify null data tx description

1. wpa2: add wpa2 set id api

2. low rate: modify null data tx description

7 years agoMerge branch 'bugfix/crosscore_int_iram' into 'master'
Ivan Grokhotkov [Wed, 11 Jan 2017 04:07:43 +0000 (12:07 +0800)]
Merge branch 'bugfix/crosscore_int_iram' into 'master'

Place cross-core interrupt into IRAM, sanity check handler address passed into esp_intr_alloc

Cross-core interrupt handler was not marked with IRAM_ATTR.

The reason why this caused an exception is probably due to some tasks running at highest priority (these are not blocked by spi_flash_disable_caches_interrupts_and_other_cpu mechanism).

This change puts the interrupt handler into IRAM and adds a sanity check into `esp_intr_alloc`.

Reported on Github: https://github.com/espressif/esp-idf/issues/211

See merge request !404

7 years agoAlso update documentation to new conventions
Jeroen Domburg [Wed, 11 Jan 2017 03:55:23 +0000 (11:55 +0800)]
Also update documentation to new conventions

7 years agoesp32: sanity check ISR handler address passed into esp_intr_alloc
Ivan Grokhotkov [Tue, 10 Jan 2017 17:14:18 +0000 (01:14 +0800)]
esp32: sanity check ISR handler address passed into esp_intr_alloc

Return ESP_ERR_INVALID_ARG if the handler is not in IRAM (or RTC fast memory)

7 years agoMerge branch 'feature/idf_version' into 'master'
Ivan Grokhotkov [Wed, 11 Jan 2017 03:34:28 +0000 (11:34 +0800)]
Merge branch 'feature/idf_version' into 'master'

build system: add IDF_VER environment variable and preprocessor define

This adds an `IDF_VER` preprocessor define which is obtained from `git describe`.

Looks like `v1.0-275-g0efaa4f` for non-release version or `v2.0` for a tagged (release) version.

See merge request !403

7 years agocomponent/bt: check for registration status of callback function before using it
wangmengyang [Wed, 11 Jan 2017 03:31:35 +0000 (11:31 +0800)]
component/bt: check for registration status of callback function before using it

7 years agoRename SPI Master IO pins to more common terminology, add better explanation to queue...
Jeroen Domburg [Wed, 11 Jan 2017 03:25:56 +0000 (11:25 +0800)]
Rename SPI Master IO pins to more common terminology, add better explanation to queue_length initialization value

7 years agoMerge branch 'feature/ping_function' into 'master'
Wu Jian Gang [Wed, 11 Jan 2017 03:25:32 +0000 (11:25 +0800)]
Merge branch 'feature/ping_function' into 'master'

Add ping function

Add ping function, It's need enable LWIP_RAW.

See merge request !285